@@ -79,11 +79,6 @@ functions:
7979 shell : bash
8080 script : |
8181 ${PREPARE_SHELL}
82-
83- # TODO(NODE-5035): Remove when merged - need to replace with branch just for OIDC.
84- rm -rf "${DRIVERS_TOOLS}"
85- git clone --branch DRIVERS-2415 https://github.com/blink1073/drivers-evergreen-tools.git "${DRIVERS_TOOLS}"
86-
8782 cd "${DRIVERS_TOOLS}"/.evergreen/auth_oidc
8883
8984 # This is a bit confusing but the ec2.assume_role command before
@@ -94,9 +89,9 @@ functions:
9489 export AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
9590 export AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
9691 export AWS_SESSION_TOKEN=${AWS_SESSION_TOKEN}
97- export AWS_TOKEN_DIR =/tmp/tokens
92+ export OIDC_TOKEN_DIR =/tmp/tokens
9893
99- . ./activate_venv .sh
94+ . ./activate-authoidcvenv .sh
10095 python oidc_write_orchestration.py
10196 python oidc_get_tokens.py
10297 setup oidc roles :
@@ -118,6 +113,7 @@ functions:
118113 script : |
119114 ${PREPARE_SHELL}
120115
116+ OIDC_TOKEN_DIR="/tmp/tokens" \
121117 AWS_WEB_IDENTITY_TOKEN_FILE="/tmp/tokens/test1" \
122118 PROJECT_DIRECTORY="${PROJECT_DIRECTORY}" \
123119 bash ${PROJECT_DIRECTORY}/.evergreen/run-oidc-tests.sh
@@ -1478,6 +1474,22 @@ tasks:
14781474 commands :
14791475 - func : install dependencies
14801476 - func : run ldap tests
1477+ - name : test-auth-oidc
1478+ tags :
1479+ - latest
1480+ - replica_set
1481+ - oidc
1482+ commands :
1483+ - func : install dependencies
1484+ - func : bootstrap oidc
1485+ - func : bootstrap mongo-orchestration
1486+ vars :
1487+ VERSION : latest
1488+ TOPOLOGY : replica_set
1489+ AUTH : auth
1490+ ORCHESTRATION_FILE : auth-oidc.json
1491+ - func : setup oidc roles
1492+ - func : run oidc tests aws
14811493 - name : test-socks5
14821494 tags : []
14831495 commands :
@@ -3137,6 +3149,7 @@ buildvariants:
31373149 - test-latest-load-balanced
31383150 - test-auth-kerberos
31393151 - test-auth-ldap
3152+ - test-auth-oidc
31403153 - test-socks5
31413154 - test-socks5-csfle
31423155 - test-socks5-tls
@@ -3186,6 +3199,7 @@ buildvariants:
31863199 - test-latest-load-balanced
31873200 - test-auth-kerberos
31883201 - test-auth-ldap
3202+ - test-auth-oidc
31893203 - test-socks5
31903204 - test-socks5-csfle
31913205 - test-socks5-tls
@@ -3233,6 +3247,7 @@ buildvariants:
32333247 - test-latest-load-balanced
32343248 - test-auth-kerberos
32353249 - test-auth-ldap
3250+ - test-auth-oidc
32363251 - test-socks5
32373252 - test-socks5-csfle
32383253 - test-socks5-tls
@@ -3279,6 +3294,7 @@ buildvariants:
32793294 - test-6.0-load-balanced
32803295 - test-latest-load-balanced
32813296 - test-auth-ldap
3297+ - test-auth-oidc
32823298 - test-socks5-csfle
32833299 - test-socks5-tls
32843300 - test-tls-support-latest
0 commit comments