Skip to content

Commit 3a4578a

Browse files
committed
tests: query the SkyScanK8sJobs coll (fr) - 2
1 parent 9453aca commit 3a4578a

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.github/workflows/wipac-cicd.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ env:
2020
S3_SECRET_KEY: 8dea68a1
2121
S3_SECRET_KEY__K8S_SECRET_KEY: cdf7c60b
2222
S3_BUCKET: 72017610
23+
K8S_SECRET_NAME: super-secrets
2324
MIN_SKYMAP_SCANNER_TAG: "v3.21.2" # TODO: remove once skyscan v4 is out (that's the real min)
2425

2526

tests/integration/test_rest_routes.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -248,17 +248,21 @@ async def _launch_scan(
248248
"name": "S3_ACCESS_KEY_ID",
249249
"valueFrom": {
250250
"secretKeyRef": {
251-
"key": os.environ["S3_ACCESS_KEY_ID"],
252-
"name": None,
251+
"key": os.environ[
252+
"S3_ACCESS_KEY_ID__K8S_SECRET_KEY"
253+
],
254+
"name": os.environ["K8S_SECRET_NAME"],
253255
}
254256
},
255257
},
256258
{
257259
"name": "S3_SECRET_KEY",
258260
"valueFrom": {
259261
"secretKeyRef": {
260-
"key": os.environ["S3_SECRET_KEY"],
261-
"name": None,
262+
"key": os.environ[
263+
"S3_SECRET_KEY__K8S_SECRET_KEY"
264+
],
265+
"name": os.environ["K8S_SECRET_NAME"],
262266
}
263267
},
264268
},

0 commit comments

Comments
 (0)