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 @@ -757,12 +757,12 @@ functions:
757
757
working_dir: mongoc
758
758
shell: bash
759
759
script: |-
760
- set -o errexit
761
760
set -o errexit
762
761
# Export the variables we need to construct URIs
763
762
set +o xtrace
764
763
export IAM_AUTH_ECS_ACCOUNT=${iam_auth_ecs_account}
765
764
export IAM_AUTH_ECS_SECRET_ACCESS_KEY=${iam_auth_ecs_secret_access_key}
765
+ . ../drivers-evergreen-tools/.evergreen/auth_aws/activate_venv.sh
766
766
sh ./.evergreen/run-aws-tests.sh ${TESTCASE}
767
767
clone drivers-evergreen-tools:
768
768
- 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 547
547
EOF
548
548
''' , silent = True ),
549
549
shell_mongoc (r'''
550
- set -o errexit
551
550
# Export the variables we need to construct URIs
552
551
set +o xtrace
553
552
export IAM_AUTH_ECS_ACCOUNT=${iam_auth_ecs_account}
554
553
export IAM_AUTH_ECS_SECRET_ACCESS_KEY=${iam_auth_ecs_secret_access_key}
554
+ . ../drivers-evergreen-tools/.evergreen/auth_aws/activate_venv.sh
555
555
sh ./.evergreen/run-aws-tests.sh ${TESTCASE}
556
556
''' )
557
557
)),
You can’t perform that action at this time.
0 commit comments