@@ -359,48 +359,6 @@ functions:
359359 cd ${DRIVERS_TOOLS}/.evergreen
360360 DRIVERS_TOOLS=${DRIVERS_TOOLS} MONGODB_URI=${MONGODB_URI} bash ${DRIVERS_TOOLS}/.evergreen/run-load-balancer.sh stop
361361
362-
363- setup-x509-tests :
364- - command : shell.exec
365- params :
366- shell : " bash"
367- include_expansions_in_env :
368- - " AWS_ACCESS_KEY_ID"
369- - " AWS_SECRET_ACCESS_KEY"
370- - " AWS_SESSION_TOKEN"
371- script : |
372- ${DRIVERS_TOOLS}/.evergreen/secrets_handling/setup-secrets.sh drivers/atlas_connect
373- source secrets-export.sh
374-
375- echo $ATLAS_X509_DEV_CERT_BASE64 | base64 --decode > ${DRIVERS_TOOLS}/CLIENT_CERT.pem
376- echo $ATLAS_X509_DEV_CERT_NOUSER_BASE64 | base64 --decode > ${DRIVERS_TOOLS}/CLIENT_NO_USER_CERT.pem
377-
378- run-x509-tests :
379- - command : shell.exec
380- type : test
381- params :
382- shell : " bash"
383- working_dir : mongo-csharp-driver
384- script : |
385- source ../secrets-export.sh
386- ${PREPARE_SHELL}
387- OS=${OS} \
388- evergreen/add-ca-certs.sh
389- CLIENT_PEM_VAR_NAME="CLIENT_NO_USER_PEM" \
390- FRIENDLY_NAME="Drivers No-User Client Certificate" \
391- P12_FILENAME="client_no_user.p12" \
392- OUT_CLIENT_PASSWORD_VAR="MONGO_X509_CLIENT_NO_USER_CERTIFICATE_PASSWORD" \
393- OUT_CLIENT_PATH_VAR="MONGO_X509_CLIENT_NO_USER_CERTIFICATE_PATH" \
394- CLIENT_NO_USER_PEM=${DRIVERS_TOOLS}/CLIENT_NO_USER_CERT.pem \
395- source evergreen/convert-client-cert-to-pkcs12.sh
396- MONGODB_URI="$ATLAS_X509_DEV" \
397- CLIENT_PEM=${DRIVERS_TOOLS}/CLIENT_CERT.pem \
398- TOPOLOGY=${TOPOLOGY} \
399- OS=${OS} \
400- FRAMEWORK=${FRAMEWORK} \
401- TARGET="TestX509" \
402- evergreen/run-tests.sh
403-
404362 run-unit-tests :
405363 - command : shell.exec
406364 type : test
@@ -1071,6 +1029,46 @@ functions:
10711029 bash $DRIVERS_TOOLS/.evergreen/auth_oidc/k8s/run-driver-test.sh
10721030 bash $DRIVERS_TOOLS/.evergreen/auth_oidc/k8s/teardown-pod.sh
10731031
1032+ setup-x509-tests :
1033+ - command : shell.exec
1034+ params :
1035+ shell : " bash"
1036+ include_expansions_in_env :
1037+ - " AWS_ACCESS_KEY_ID"
1038+ - " AWS_SECRET_ACCESS_KEY"
1039+ - " AWS_SESSION_TOKEN"
1040+ script : |
1041+ ${DRIVERS_TOOLS}/.evergreen/secrets_handling/setup-secrets.sh drivers/atlas_connect
1042+ source secrets-export.sh
1043+
1044+ echo $ATLAS_X509_DEV_CERT_BASE64 | base64 --decode > ${DRIVERS_TOOLS}/CLIENT_CERT.pem
1045+ echo $ATLAS_X509_DEV_CERT_NOUSER_BASE64 | base64 --decode > ${DRIVERS_TOOLS}/CLIENT_NO_USER_CERT.pem
1046+
1047+ run-x509-tests :
1048+ - command : shell.exec
1049+ type : test
1050+ params :
1051+ shell : " bash"
1052+ working_dir : mongo-csharp-driver
1053+ script : |
1054+ source ../secrets-export.sh
1055+ ${PREPARE_SHELL}
1056+ OS=${OS} \
1057+ evergreen/add-ca-certs.sh
1058+ FRIENDLY_NAME="Drivers No-User Client Certificate" \
1059+ P12_FILENAME="client_no_user.p12" \
1060+ OUT_CLIENT_PASSWORD_VAR="MONGO_X509_CLIENT_NO_USER_CERTIFICATE_PASSWORD" \
1061+ OUT_CLIENT_PATH_VAR="MONGO_X509_CLIENT_NO_USER_CERTIFICATE_PATH" \
1062+ CLIENT_PEM=${DRIVERS_TOOLS}/CLIENT_NO_USER_CERT.pem \
1063+ source evergreen/convert-client-cert-to-pkcs12.sh
1064+ MONGODB_URI="$ATLAS_X509_DEV" \
1065+ CLIENT_PEM=${DRIVERS_TOOLS}/CLIENT_CERT.pem \
1066+ TOPOLOGY=${TOPOLOGY} \
1067+ OS=${OS} \
1068+ FRAMEWORK=${FRAMEWORK} \
1069+ TARGET="TestX509" \
1070+ evergreen/run-tests.sh
1071+
10741072pre :
10751073 - func : fetch-source
10761074 - func : prepare-resources
@@ -1261,12 +1259,6 @@ tasks:
12611259 - func : run-aws-auth-test-with-aws-ECS-credentials
12621260 - func : run-aws-auth-test-with-aws-web-identity-credentials
12631261
1264- - name : x509-auth-tests
1265- commands :
1266- - func : assume-ec2-role
1267- - func : setup-x509-tests
1268- - func : run-x509-tests
1269-
12701262 - name : stable-api-tests-net472
12711263 commands :
12721264 - func : setup-csfle-secrets
@@ -1768,6 +1760,14 @@ tasks:
17681760 ${PREPARE_SHELL}
17691761 CRYPT_SHARED_LIB_PATH="${CRYPT_SHARED_LIB_PATH}" DRIVER_VERSION="${PACKAGE_VERSION}" MONGODB_VERSION="${VERSION}" bash ./evergreen/run-tests.sh
17701762
1763+ - name : x509-auth-tests
1764+ commands :
1765+ - func : assume-ec2-role
1766+ - func : setup-x509-tests
1767+ - func : run-x509-tests
1768+ vars :
1769+ FRAMEWORK : net60
1770+
17711771axes :
17721772 - id : version
17731773 display_name : MongoDB Version
0 commit comments