Skip to content

Commit ffd02ab

Browse files
authoredSep 26, 2024··
fix: use another headless user x1 to run func tests against prod (#3208)
1 parent 216e2c5 commit ffd02ab

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed
 

‎package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@
1010
"start": "./bin/server",
1111
"debug": "node --nolazy ./bin/server",
1212
"profile": "node --prof ./bin/server",
13-
"functional": "cucumber-js --format=progress --tags '(not @ignore) and (not @beta) and (not @parallel)' --retry 2 --fail-fast --exit",
14-
"functional-parallel": "cucumber-js --format=progress --tags '(not @ignore) and (not @beta) and @parallel' --retry 2 --fail-fast --exit --parallel 7",
13+
"functional": "cucumber-js --format=progress --tags '(not @ignore) and (not @beta) and (not @x1) and (not @parallel)' --retry 2 --fail-fast --exit",
14+
"functional-parallel": "cucumber-js --format=progress --tags '(not @ignore) and (not @beta) and (not @x1) and @parallel' --retry 2 --fail-fast --exit --parallel 7",
15+
"functional-x1-parallel": "cucumber-js --format=progress --tags '(not @ignore) and (not @beta) and @x1 and @parallel' --retry 2 --fail-fast --exit --parallel 7",
1516
"functional-beta": "cucumber-js --format=progress --tags '(not @ignore) and (not @prod) and (not @x1) and (not @parallel)' --retry 2 --fail-fast --exit",
1617
"functional-beta-parallel": "cucumber-js --format=progress --tags '(not @ignore) and (not @prod) and (not @x1) and @parallel' --retry 2 --fail-fast --exit --parallel 7",
1718
"functional-beta-x1-parallel": "cucumber-js --format=progress --tags '(not @ignore) and (not @prod) and @x1 and @parallel' --retry 2 --fail-fast --exit --parallel 7",

‎screwdriver.yaml

+10-4
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
K8S_ENV_KEY: DATASTORE_DYNAMODB_PREFIX
6565
K8S_ENV_VALUE: beta_rc2_
6666
TEST_USERNAME: sd-buildbot-functional
67-
TEST_USERNAME_X1: sd-buildbot-functional-beta-X1
67+
TEST_USERNAME_X1: sd-buildbot-functional-X1
6868
TEST_ORG: screwdriver-cd-test
6969
secrets:
7070
# Access key for functional tests
@@ -74,7 +74,7 @@ jobs:
7474
# Access key for functional tests
7575
- SD_API_TOKEN_BETA_X1
7676
# Git access token
77-
- GIT_TOKEN_BETA_X1
77+
- GIT_TOKEN_X1
7878
# Talking to Kubernetes
7979
- K8S_TOKEN
8080
steps:
@@ -84,7 +84,7 @@ jobs:
8484
- npm-install: npm install
8585
- test: GIT_TOKEN=${GIT_TOKEN_BETA} SD_API_TOKEN=${SD_API_TOKEN_BETA} npm run functional-beta
8686
- test-parallel: GIT_TOKEN=${GIT_TOKEN_BETA} SD_API_TOKEN=${SD_API_TOKEN_BETA} npm run functional-beta-parallel
87-
- test-x1-parallel: TEST_USERNAME=${TEST_USERNAME_X1} GIT_TOKEN=${GIT_TOKEN_BETA_X1} SD_API_TOKEN=${SD_API_TOKEN_BETA_X1} npm run functional-beta-x1-parallel
87+
- test-x1-parallel: TEST_USERNAME=${TEST_USERNAME_X1} GIT_TOKEN=${GIT_TOKEN_X1} SD_API_TOKEN=${SD_API_TOKEN_BETA_X1} npm run functional-beta-x1-parallel
8888

8989
# Deploy to our prod environment and run tests
9090
prod:
@@ -97,6 +97,7 @@ jobs:
9797
- npm-install: npm install
9898
- test: GIT_TOKEN=${GIT_TOKEN_PROD} SD_API_TOKEN=${SD_API_TOKEN_PROD} npm run functional
9999
- test-parallel: GIT_TOKEN=${GIT_TOKEN_PROD} SD_API_TOKEN=${SD_API_TOKEN_PROD} npm run functional-parallel
100+
- test-x1-parallel: TEST_USERNAME=${TEST_USERNAME_X1} GIT_TOKEN=${GIT_TOKEN_X1} SD_API_TOKEN=${SD_API_TOKEN_PROD_X1} npm run functional-x1-parallel
100101
environment:
101102
K8S_CONTAINER: screwdriver-api
102103
K8S_IMAGE: screwdrivercd/screwdriver
@@ -106,11 +107,16 @@ jobs:
106107
K8S_ENV_KEY: DATASTORE_DYNAMODB_PREFIX
107108
K8S_ENV_VALUE: rc2_
108109
TEST_USERNAME: sd-buildbot-functional
110+
TEST_USERNAME_X1: sd-buildbot-functional-X1
109111
TEST_ORG: screwdriver-cd-test
110112
secrets:
111113
# Access key for functional tests
112114
- SD_API_TOKEN_PROD
113115
# Git access token
114116
- GIT_TOKEN_PROD
115117
# Talking to Kubernetes
116-
- K8S_TOKEN
118+
- K8S_TOKEN
119+
# Access key for functional tests
120+
- SD_API_TOKEN_PROD_X1
121+
# Git access token
122+
- GIT_TOKEN_X1

0 commit comments

Comments
 (0)
Please sign in to comment.