Skip to content

Commit 4eea15a

Browse files
committed
test: use same unified script
1 parent af88641 commit 4eea15a

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

.evergreen/run-oidc-auth-tests.sh

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,15 @@ if [ "$PROVIDER_NAME" = "azure" ]; then
2222
MONGODB_URI="${MONGODB_URI}&authMechanismProperties=PROVIDER_NAME:azure"
2323
MONGODB_URI="${MONGODB_URI},TOKEN_AUDIENCE:api%3A%2F%2F${AZUREOIDC_CLIENTID}"
2424
export MONGODB_URI="${MONGODB_URI},TOKEN_CLIENT_ID:${AZUREOIDC_TOKENCLIENT}"
25-
export UTIL_CLIENT_USER="bob"
26-
export UTIL_CLIENT_PASSWORD="pwd123"
27-
npm run check:oidc-auth-azure
2825
else
2926
if [ -z "${OIDC_TOKEN_DIR}" ]; then
3027
echo "Must specify OIDC_TOKEN_DIR"
3128
exit 1
3229
fi
3330

3431
export MONGODB_URI="${MONGODB_URI}/test?authMechanism=MONGODB-OIDC&authMechanismProperties=PROVIDER_NAME:aws"
35-
export UTIL_CLIENT_USER="bob"
36-
export UTIL_CLIENT_PASSWORD="pwd123"
37-
npm run check:oidc-auth-aws
38-
fi
32+
fi
33+
34+
export UTIL_CLIENT_USER="bob"
35+
export UTIL_CLIENT_PASSWORD="pwd123"
36+
npm run check:oidc-auth

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
"check:adl": "mocha --config test/mocha_mongodb.json test/manual/atlas-data-lake-testing",
149149
"check:aws": "nyc mocha --config test/mocha_mongodb.json test/integration/auth/mongodb_aws.test.ts",
150150
"check:oidc": "mocha --config test/mocha_mongodb.json test/manual/mongodb_oidc.prose.test.ts",
151-
"check:oidc-auth-aws": "mocha --config test/mocha_mongodb.json test/integration/auth/auth.spec.test.ts",
151+
"check:oidc-auth": "mocha --config test/mocha_mongodb.json test/integration/auth/auth.spec.test.ts",
152152
"check:oidc-azure": "mocha --config test/mocha_mongodb.json test/integration/auth/mongodb_oidc_azure.prose.test.ts",
153153
"check:ocsp": "mocha --config test/manual/mocharc.json test/manual/ocsp_support.test.js",
154154
"check:kerberos": "nyc mocha --config test/manual/mocharc.json test/manual/kerberos.test.ts",

0 commit comments

Comments
 (0)