File tree Expand file tree Collapse file tree 3 files changed +15
-5
lines changed Expand file tree Collapse file tree 3 files changed +15
-5
lines changed Original file line number Diff line number Diff line change 2
2
set -o errexit # Exit the script with error if any of the commands fail
3
3
set -o xtrace # Write all commands first to stderr
4
4
5
+ PROVIDER_NAME=${PROVIDER_NAME:- " aws" }
6
+ PROJECT_DIRECTORY=${PROJECT_DIRECTORY:- " ." }
5
7
source " ${PROJECT_DIRECTORY} /.evergreen/init-nvm.sh"
6
8
7
9
MONGODB_URI=${MONGODB_URI:- " mongodb://127.0.0.1:27017" }
8
- MONGODB_URI_SINGLE=" ${MONGODB_URI} /?authMechanism=MONGODB-OIDC&authMechanismProperties=DEVICE_NAME:aws"
9
10
10
- echo $MONGODB_URI_SINGLE
11
-
12
- export MONGODB_URI=" $MONGODB_URI_SINGLE "
13
11
export OIDC_TOKEN_DIR=${OIDC_TOKEN_DIR}
14
12
15
- npm run check:oidc
13
+ if [ " $PROVIDER_NAME " = " azure" ]; then
14
+ npm run check:oidc-azure
15
+ else
16
+ npm run check:oidc
17
+ fi
Original file line number Diff line number Diff line change 127
127
"check:adl" : " mocha --config test/mocha_mongodb.json test/manual/atlas-data-lake-testing" ,
128
128
"check:aws" : " nyc mocha --config test/mocha_mongodb.json test/integration/auth/mongodb_aws.test.ts" ,
129
129
"check:oidc" : " mocha --config test/mocha_mongodb.json test/manual/mongodb_oidc.prose.test.ts" ,
130
+ "check:oidc-azure" : " mocha --config test/mocha_mongodb.json test/manual/mongodb_oidc_azure.prose.test.ts" ,
130
131
"check:ocsp" : " mocha --config test/manual/mocharc.json test/manual/ocsp_support.test.js" ,
131
132
"check:kerberos" : " nyc mocha --config test/manual/mocharc.json test/manual/kerberos.test.ts" ,
132
133
"check:tls" : " mocha --config test/manual/mocharc.json test/manual/tls_support.test.js" ,
Original file line number Diff line number Diff line change
1
+ import { expect } from 'chai' ;
2
+
3
+ describe ( 'MONGODB-OIDC (Azure)' , function ( ) {
4
+ it ( 'passes' , function ( ) {
5
+ expect ( true ) . to . be . true ;
6
+ } ) ;
7
+ } ) ;
You can’t perform that action at this time.
0 commit comments