@@ -520,6 +520,18 @@ functions:
520520 args :
521521 - .evergreen/run-mongodb-oidc-test.sh
522522
523+ " run oidc k8s auth test " :
524+ - command : subprocess.exec
525+ type : test
526+ params :
527+ binary : bash
528+ working_dir : src
529+ env :
530+ OIDC_ENV : k8s
531+ include_expansions_in_env : ["DRIVERS_TOOLS", "AWS_ACCESS_KEY_ID", "AWS_SECRET_ACCESS_KEY", "AWS_SESSION_TOKEN", "K8S_VARIANT"]
532+ args :
533+ - ${PROJECT_DIRECTORY}/.evergreen/run-mongodb-oidc-remote-test.sh
534+
523535 " run aws auth test with aws credentials as environment variables " :
524536 - command : shell.exec
525537 type : test
@@ -873,6 +885,32 @@ task_groups:
873885 tasks :
874886 - oidc-auth-test-gcp
875887
888+ - name : testk8soidc_task_group
889+ setup_group :
890+ - func : fetch source
891+ - func : prepare resources
892+ - func : fix absolute paths
893+ - func : make files executable
894+ - command : ec2.assume_role
895+ params :
896+ role_arn : ${aws_test_secrets_role}
897+ duration_seconds : 1800
898+ - command : subprocess.exec
899+ params :
900+ binary : bash
901+ args :
902+ - ${DRIVERS_TOOLS}/.evergreen/auth_oidc/k8s/setup.sh
903+ teardown_task :
904+ - command : subprocess.exec
905+ params :
906+ binary : bash
907+ args :
908+ - ${DRIVERS_TOOLS}/.evergreen/auth_oidc/k8s/teardown.sh
909+ setup_group_can_fail_task : true
910+ setup_group_timeout_secs : 1800
911+ tasks :
912+ - oidc-auth-test-k8s
913+
876914 - name : testoidc_task_group
877915 setup_group :
878916 - func : fetch source
@@ -1548,40 +1586,41 @@ tasks:
15481586
15491587 - name : " oidc-auth-test-azure"
15501588 commands :
1551- - command : shell .exec
1589+ - command : subprocess .exec
15521590 type : test
15531591 params :
1554- shell : bash
1555- script : |-
1556- set -o errexit
1557- . src/.evergreen/scripts/env.sh
1558- cd src
1559- git add .
1560- git commit -m "add files"
1561- export AZUREOIDC_DRIVERS_TAR_FILE=/tmp/mongo-python-driver.tgz
1562- git archive -o $AZUREOIDC_DRIVERS_TAR_FILE HEAD
1563- export AZUREOIDC_TEST_CMD="OIDC_ENV=azure ./.evergreen/run-mongodb-oidc-test.sh"
1564- bash $DRIVERS_TOOLS/.evergreen/auth_oidc/azure/run-driver-test.sh
1592+ binary : bash
1593+ working_dir : src
1594+ env :
1595+ OIDC_ENV : azure
1596+ include_expansions_in_env : ["DRIVERS_TOOLS"]
1597+ args :
1598+ - ${PROJECT_DIRECTORY}/.evergreen/run-mongodb-oidc-remote-test.sh
15651599
15661600 - name : " oidc-auth-test-gcp"
15671601 commands :
1568- - command : shell .exec
1602+ - command : subprocess .exec
15691603 type : test
15701604 params :
1571- shell : bash
1572- script : |-
1573- set -o errexit
1574- . src/.evergreen/scripts/env.sh
1575- cd src
1576- git add .
1577- git commit -m "add files"
1578- export GCPOIDC_DRIVERS_TAR_FILE=/tmp/mongo-python-driver.tgz
1579- git archive -o $GCPOIDC_DRIVERS_TAR_FILE HEAD
1580- # Define the command to run on the VM.
1581- # Ensure that we source the environment file created for us, set up any other variables we need,
1582- # and then run our test suite on the vm.
1583- export GCPOIDC_TEST_CMD="OIDC_ENV=gcp ./.evergreen/run-mongodb-oidc-test.sh"
1584- bash $DRIVERS_TOOLS/.evergreen/auth_oidc/gcp/run-driver-test.sh
1605+ binary : bash
1606+ working_dir : src
1607+ env :
1608+ OIDC_ENV : gcp
1609+ include_expansions_in_env : ["DRIVERS_TOOLS"]
1610+ args :
1611+ - ${PROJECT_DIRECTORY}/.evergreen/run-mongodb-oidc-remote-test.sh
1612+
1613+ - name : " oidc-auth-test-k8s"
1614+ commands :
1615+ - func : " run oidc k8s auth test"
1616+ vars :
1617+ K8S_VARIANT : eks
1618+ - func : " run oidc k8s auth test"
1619+ vars :
1620+ K8S_VARIANT : gke
1621+ - func : " run oidc k8s auth test"
1622+ vars :
1623+ K8S_VARIANT : aks
15851624# }}}
15861625 - name : " coverage-report"
15871626 tags : ["coverage"]
@@ -1727,7 +1766,7 @@ tasks:
17271766
17281767buildvariants :
17291768- name : " no-server"
1730- display_name : " No server test "
1769+ display_name : " No server"
17311770 run_on :
17321771 - rhel84-small
17331772 tasks :
@@ -1740,45 +1779,26 @@ buildvariants:
17401779 tasks :
17411780 - name : " coverage-report"
17421781
1743- - name : testazureoidc-variant
1744- display_name : " OIDC Auth Azure"
1745- run_on : ubuntu2204-small
1746- tasks :
1747- - name : testazureoidc_task_group
1748- batchtime : 20160 # Use a batchtime of 14 days as suggested by the CSFLE test README
1749-
1750- - name : testgcpoidc-variant
1751- display_name : " OIDC Auth GCP"
1752- run_on : ubuntu2204-small
1753- tasks :
1754- - name : testgcpoidc_task_group
1755- batchtime : 20160 # Use a batchtime of 14 days as suggested by the CSFLE test README
1756-
1757- - name : testgcpkms-variant
1758- display_name : " GCP KMS"
1782+ - name : testkms-variant
1783+ display_name : " KMS"
17591784 run_on :
17601785 - debian11-small
17611786 tasks :
17621787 - name : testgcpkms_task_group
17631788 batchtime : 20160 # Use a batchtime of 14 days as suggested by the CSFLE test README
17641789 - testgcpkms-fail-task
1765-
1766- - name : testazurekms-variant
1767- display_name : " Azure KMS"
1768- run_on : debian11-small
1769- tasks :
17701790 - name : testazurekms_task_group
17711791 batchtime : 20160 # Use a batchtime of 14 days as suggested by the CSFLE test README
17721792 - testazurekms-fail-task
17731793
17741794- name : rhel8-test-lambda
1775- display_name : AWS Lambda handler tests
1795+ display_name : FaaS Lambda
17761796 run_on : rhel87-small
17771797 tasks :
17781798 - name : test_aws_lambda_task_group
17791799
17801800- name : rhel8-import-time
1781- display_name : Import Time Check
1801+ display_name : Import Time
17821802 run_on : rhel87-small
17831803 tasks :
17841804 - name : " check-import-time"
@@ -1791,7 +1811,7 @@ buildvariants:
17911811 - name : " backport-pr"
17921812
17931813- name : " perf-tests"
1794- display_name : " Performance Benchmark Tests "
1814+ display_name : " Performance Benchmarks "
17951815 batchtime : 10080 # 7 days
17961816 run_on : rhel90-dbx-perf-large
17971817 tasks :
0 commit comments