File tree Expand file tree Collapse file tree 2 files changed +18
-6
lines changed Expand file tree Collapse file tree 2 files changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -541,6 +541,7 @@ functions:
541
541
542
542
set -o errexit
543
543
set -o xtrace
544
+ source ./secrets-export.sh
544
545
# This is required for pypy3.7 UTF encoding
545
546
export LC_ALL=en_US.UTF-8
546
547
bash ${PROJECT_DIRECTORY}/.evergreen/tox.sh ${PYTHON_BINARY} -m test-atlas
@@ -772,18 +773,31 @@ functions:
772
773
- command : ec2.assume_role
773
774
params :
774
775
role_arn : ${aws_test_secrets_role}
776
+ - command : shell.exec
777
+ type : test
778
+ params :
779
+ working_dir : " src"
780
+ silent : true
781
+ script : |
782
+ # DO NOT ECHO WITH XTRACE (which PREPARE_SHELL does)
783
+ export AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
784
+ export AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
785
+ export AWS_SESSION_TOKEN=${AWS_SESSION_TOKEN}
775
786
- command : shell.exec
776
787
type : test
777
788
params :
778
789
working_dir : " src"
779
790
shell : bash
780
791
script : |
781
792
${PREPARE_SHELL}
782
- bash ${PROJECT_DIRECTORY}/.evergreen/tox.sh ${PYTHON_BINARY} -m aws-secrets
793
+
794
+ # This is required for pypy3.7 UTF encoding
795
+ export LC_ALL=en_US.UTF-8
796
+ bash ${PROJECT_DIRECTORY}/.evergreen/tox.sh ${PYTHON_BINARY} -m aws-secrets -- drivers/test
783
797
784
798
- command : expansions.update
785
799
params :
786
- file : secrets-expansion.yml
800
+ file : src/ secrets-expansion.yml
787
801
788
802
" run oidc auth test with aws credentials " :
789
803
- command : shell.exec
Original file line number Diff line number Diff line change @@ -144,10 +144,8 @@ commands =
144
144
deps =
145
145
pytest>=7
146
146
passenv = *
147
- allowlist_externals =
148
- bash
149
147
commands =
150
- bash -c ' source ./secrets-export.sh; python -m pytest -v {posargs} ./test/atlas/test_connection.py'
148
+ python -m pytest -v {posargs} ./test/atlas/test_connection.py
151
149
152
150
[testenv:test-mockupdb]
153
151
description = run mockupdb tests
@@ -166,7 +164,7 @@ passenv = *
166
164
allowlist_externals =
167
165
bash
168
166
commands =
169
- python {env:DRIVERS_TOOLS}/.evergreen/auth_aws/setup_secrets.py drivers/test
167
+ python {env:DRIVERS_TOOLS}/.evergreen/auth_aws/setup_secrets.py {posargs}
170
168
171
169
[testenv:test-aws-secrets]
172
170
deps =
You can’t perform that action at this time.
0 commit comments