Skip to content

Commit db7a453

Browse files
- Added robot test Registry Pull Google Provider Advanced Version.
1 parent 8880df5 commit db7a453

File tree

7 files changed

+35
-3
lines changed

7 files changed

+35
-3
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ require (
1818
github.com/spf13/cobra v1.4.0
1919
github.com/spf13/pflag v1.0.5
2020
github.com/spf13/viper v1.10.1
21-
github.com/stackql/any-sdk v0.4.2-alpha07
21+
github.com/stackql/any-sdk v0.4.2-alpha08
2222
github.com/stackql/go-suffix-map v0.0.1-alpha01
2323
github.com/stackql/psql-wire v0.1.2-alpha01
2424
github.com/stackql/stackql-parser v0.0.16-alpha01

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -467,8 +467,8 @@ github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
467467
github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
468468
github.com/spf13/viper v1.10.1 h1:nuJZuYpG7gTj/XqiUwg8bA0cp1+M2mC3J4g5luUYBKk=
469469
github.com/spf13/viper v1.10.1/go.mod h1:IGlFPqhNAPKRxohIzWpI5QEy4kuI7tcl5WvR+8qy1rU=
470-
github.com/stackql/any-sdk v0.4.2-alpha07 h1:vnfC42rkqAvZafZbNigK3JZ4+HpFKWTaczqWGrqdPsI=
471-
github.com/stackql/any-sdk v0.4.2-alpha07/go.mod h1:KTVgzZ2jlvGET55T/vzM7J+yIqpDOxbYFkoydaCs2K0=
470+
github.com/stackql/any-sdk v0.4.2-alpha08 h1:v5Il3jgOjS7iC7tTub8il7Tv9Dc9epX4oSeHXD08Km4=
471+
github.com/stackql/any-sdk v0.4.2-alpha08/go.mod h1:KTVgzZ2jlvGET55T/vzM7J+yIqpDOxbYFkoydaCs2K0=
472472
github.com/stackql/go-suffix-map v0.0.1-alpha01 h1:TDUDS8bySu41Oo9p0eniUeCm43mnRM6zFEd6j6VUaz8=
473473
github.com/stackql/go-suffix-map v0.0.1-alpha01/go.mod h1:QAi+SKukOyf4dBtWy8UMy+hsXXV+yyEE4vmBkji2V7g=
474474
github.com/stackql/psql-wire v0.1.2-alpha01 h1:RMBRURGspmSNqm2/sgoEc+D6Sri2y/3drjl4nKlOOi4=

test/python/stackql_test_tooling/flask/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,4 +133,10 @@ There are some decent examples in vendor documentation, eg:
133133

134134
- [Azure vendor documenation](https://learn.microsoft.com/en-us/rest/api/azure/).
135135

136+
## Preparing mock registry entries
136137

138+
```bash
139+
140+
tar -czvf <name>.tgz <source dir>
141+
142+
```

test/python/stackql_test_tooling/flask/registry/expectations.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,18 @@
5050
"status": 200,
5151
"file": "google-v0.1.0.tgz"
5252
}
53+
},
54+
{
55+
"httpRequest": {
56+
"method": "GET",
57+
"path": "/gh/stackql/stackql-provider-registry/main/providers/dist/googleapis.com/v0.2.1.tgz"
58+
},
59+
"httpResponse": {
60+
"headers": {
61+
"Content-Type": "application/gzip"
62+
},
63+
"status": 200,
64+
"file": "google-v0.2.1.tgz"
65+
}
5366
}
5467
]
Binary file not shown.

test/python/stackql_test_tooling/flask/registry/templates/providers.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ providers:
1010
- v0.1.0
1111
- v0.1.1-alpha01
1212
- v0.1.2
13+
- v0.2.1
1314
netlify:
1415
versions:
1516
- v0.1.0

test/robot/functional/stackql_mocked_from_cmd_line.robot

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2000,6 +2000,18 @@ Registry Pull Google Provider Specific Version
20002000
... registry pull google v0.1.2 ;
20012001
... successfully installed
20022002

2003+
Registry Pull Google Provider Advanced Version
2004+
Should Stackql Exec Inline Contain Stderr
2005+
... ${STACKQL_EXE}
2006+
... ${OKTA_SECRET_STR}
2007+
... ${GITHUB_SECRET_STR}
2008+
... ${K8S_SECRET_STR}
2009+
... ${REGISTRY_MOCKED_CFG_STR}
2010+
... ${AUTH_CFG_STR}
2011+
... ${SQL_BACKEND_CFG_STR_CANONICAL}
2012+
... registry pull google v0.2.1 ;
2013+
... successfully installed
2014+
20032015
Basic Floating Point Projection Display Plus Bearer And User Password Auth Encoding
20042016
Should Stackql Exec Inline Contain
20052017
... ${STACKQL_EXE}

0 commit comments

Comments
 (0)