File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed
build/evergreen_config_lib Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -752,12 +752,12 @@ functions:
752
752
working_dir: mongoc
753
753
shell: bash
754
754
script: |-
755
- set -o errexit
756
755
set -o errexit
757
756
# Export the variables we need to construct URIs
758
757
set +o xtrace
759
758
export IAM_AUTH_ECS_ACCOUNT=${iam_auth_ecs_account}
760
759
export IAM_AUTH_ECS_SECRET_ACCESS_KEY=${iam_auth_ecs_secret_access_key}
760
+ . ../drivers-evergreen-tools/.evergreen/auth_aws/activate_venv.sh
761
761
sh ./.evergreen/run-aws-tests.sh ${TESTCASE}
762
762
clone drivers-evergreen-tools:
763
763
- command: shell.exec
Original file line number Diff line number Diff line change @@ -33,8 +33,12 @@ TestData = {};
33
33
const smoke = runMongoProgram ( program , uri ) ;
34
34
assert . eq ( smoke , 0 , "Could not auth" ) ;
35
35
36
- // Try the auth function
37
- assert ( external . auth ( { mechanism : 'MONGODB-AWS' } ) ) ;
36
+ // Try the auth function on a new client.
37
+ ( function ( ) {
38
+ const conn = Mongo ( "mongodb://127.0.0.1:20000" ) ;
39
+ const external = conn . getDB ( "$external" ) ;
40
+ assert ( external . auth ( { mechanism : 'MONGODB-AWS' } ) ) ;
41
+ } ( ) ) ;
38
42
39
43
MongoRunner . stopMongod ( conn ) ;
40
44
} ( ) ) ;
Original file line number Diff line number Diff line change 542
542
EOF
543
543
''' , silent = True ),
544
544
shell_mongoc (r'''
545
- set -o errexit
546
545
# Export the variables we need to construct URIs
547
546
set +o xtrace
548
547
export IAM_AUTH_ECS_ACCOUNT=${iam_auth_ecs_account}
549
548
export IAM_AUTH_ECS_SECRET_ACCESS_KEY=${iam_auth_ecs_secret_access_key}
549
+ . ../drivers-evergreen-tools/.evergreen/auth_aws/activate_venv.sh
550
550
sh ./.evergreen/run-aws-tests.sh ${TESTCASE}
551
551
''' )
552
552
)),
You can’t perform that action at this time.
0 commit comments