File tree Expand file tree Collapse file tree 2 files changed +7
-38
lines changed Expand file tree Collapse file tree 2 files changed +7
-38
lines changed Original file line number Diff line number Diff line change 48
48
# show test output
49
49
set -x
50
50
51
- # Workaround macOS python 3.9 incompatibility with system virtualenv.
52
- # if [ "$(uname -s)" = "Darwin" ]; then
53
- # VIRTUALENV="/Library/Frameworks/Python.framework/Versions/3.9/bin/python3 -m virtualenv"
54
- # else
51
+ Workaround macOS python 3.9 incompatibility with system virtualenv.
52
+ if [ " $( uname -s) " = " Darwin" ]; then
53
+ VIRTUALENV=" /Library/Frameworks/Python.framework/Versions/3.9/bin/python3 -m virtualenv"
54
+ else
55
55
VIRTUALENV=$( command -v virtualenv)
56
- # fi
56
+ fi
57
57
58
58
authtest () {
59
59
if [ " Windows_NT" = " $OS " ]; then
@@ -71,7 +71,7 @@ authtest () {
71
71
fi
72
72
python -m pip install -U pip setuptools
73
73
python -m pip install ' .[aws]'
74
- pytest -v test/auth_aws/test_auth_oidc.py
74
+ python test/auth_aws/test_auth_oidc.py -v
75
75
deactivate
76
76
rm -rf venvoidc
77
77
}
Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ commands =
142
142
143
143
[testenv:test-atlas]
144
144
deps =
145
- pytest>=7
145
+ {[testenv:test]deps}
146
146
passenv = *
147
147
commands =
148
148
python -m pytest -v {posargs} ./test/atlas/test_connection.py
@@ -165,34 +165,3 @@ allowlist_externals =
165
165
bash
166
166
commands =
167
167
python {env:DRIVERS_TOOLS}/.evergreen/auth_aws/setup_secrets.py {posargs}
168
-
169
- [testenv:test-aws-secrets]
170
- deps =
171
- PyYAML
172
- boto3
173
- pyjwkest
174
- pyop~=3.4.0
175
- azure-identity
176
- azure-keyvault-secrets
177
- pytest
178
- passenv = *
179
- setenv =
180
- OIDC_TOKEN_DIR =/tmp/tokens
181
- PYTHON_BINARY =python
182
- MONGODB_URI =mongodb+srv://oidc-rapid.oztdp.mongodb-dev.net
183
- MONGODB_URI_SINGLE =" mongodb+srv://oidc-rapid.oztdp.mongodb-dev.net/?authMechanism=MONGODB-OIDC"
184
- MONGODB_URI_MULTIPLE =" mongodb+srv://oidc-rapid.oztdp.mongodb-dev.net:27018/?authMechanism=MONGODB-OIDC&directConnection=true"
185
- allowlist_externals =
186
- bash
187
- source
188
- echo
189
- commands =
190
- ; git clone -b DRIVERS-2585 https://github.com/NoahStapp/drivers-evergreen-tools.git
191
- python ./drivers-evergreen-tools/.evergreen/auth_aws/setup_secrets.py drivers/test
192
- bash ./secrets-export.sh
193
-
194
- bash ./drivers-evergreen-tools/.evergreen/auth_oidc/activate-authoidcvenv.sh
195
- python ./drivers-evergreen-tools/.evergreen/auth_oidc/oidc_write_orchestration.py
196
- python ./drivers-evergreen-tools/.evergreen/auth_oidc/oidc_get_tokens.py
197
-
198
- bash .evergreen/run-mongodb-oidc-test.sh
You can’t perform that action at this time.
0 commit comments