Skip to content

Commit da1bfe4

Browse files
committed
Cleanup
1 parent a00e124 commit da1bfe4

File tree

2 files changed

+7
-38
lines changed

2 files changed

+7
-38
lines changed

.evergreen/run-mongodb-oidc-test.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@ fi
4848
# show test output
4949
set -x
5050

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
5555
VIRTUALENV=$(command -v virtualenv)
56-
#fi
56+
fi
5757

5858
authtest () {
5959
if [ "Windows_NT" = "$OS" ]; then
@@ -71,7 +71,7 @@ authtest () {
7171
fi
7272
python -m pip install -U pip setuptools
7373
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
7575
deactivate
7676
rm -rf venvoidc
7777
}

tox.ini

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ commands =
142142

143143
[testenv:test-atlas]
144144
deps =
145-
pytest>=7
145+
{[testenv:test]deps}
146146
passenv = *
147147
commands =
148148
python -m pytest -v {posargs} ./test/atlas/test_connection.py
@@ -165,34 +165,3 @@ allowlist_externals =
165165
bash
166166
commands =
167167
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

0 commit comments

Comments
 (0)