@@ -520,6 +520,18 @@ functions:
520
520
args :
521
521
- .evergreen/run-mongodb-oidc-test.sh
522
522
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
+
523
535
" run aws auth test with aws credentials as environment variables " :
524
536
- command : shell.exec
525
537
type : test
@@ -873,6 +885,32 @@ task_groups:
873
885
tasks :
874
886
- oidc-auth-test-gcp
875
887
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
+
876
914
- name : testoidc_task_group
877
915
setup_group :
878
916
- func : fetch source
@@ -1548,40 +1586,41 @@ tasks:
1548
1586
1549
1587
- name : " oidc-auth-test-azure"
1550
1588
commands :
1551
- - command : shell .exec
1589
+ - command : subprocess .exec
1552
1590
type : test
1553
1591
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
1565
1599
1566
1600
- name : " oidc-auth-test-gcp"
1567
1601
commands :
1568
- - command : shell .exec
1602
+ - command : subprocess .exec
1569
1603
type : test
1570
1604
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
1585
1624
# }}}
1586
1625
- name : " coverage-report"
1587
1626
tags : ["coverage"]
@@ -1727,7 +1766,7 @@ tasks:
1727
1766
1728
1767
buildvariants :
1729
1768
- name : " no-server"
1730
- display_name : " No server test "
1769
+ display_name : " No server"
1731
1770
run_on :
1732
1771
- rhel84-small
1733
1772
tasks :
@@ -1740,45 +1779,26 @@ buildvariants:
1740
1779
tasks :
1741
1780
- name : " coverage-report"
1742
1781
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"
1759
1784
run_on :
1760
1785
- debian11-small
1761
1786
tasks :
1762
1787
- name : testgcpkms_task_group
1763
1788
batchtime : 20160 # Use a batchtime of 14 days as suggested by the CSFLE test README
1764
1789
- testgcpkms-fail-task
1765
-
1766
- - name : testazurekms-variant
1767
- display_name : " Azure KMS"
1768
- run_on : debian11-small
1769
- tasks :
1770
1790
- name : testazurekms_task_group
1771
1791
batchtime : 20160 # Use a batchtime of 14 days as suggested by the CSFLE test README
1772
1792
- testazurekms-fail-task
1773
1793
1774
1794
- name : rhel8-test-lambda
1775
- display_name : AWS Lambda handler tests
1795
+ display_name : FaaS Lambda
1776
1796
run_on : rhel87-small
1777
1797
tasks :
1778
1798
- name : test_aws_lambda_task_group
1779
1799
1780
1800
- name : rhel8-import-time
1781
- display_name : Import Time Check
1801
+ display_name : Import Time
1782
1802
run_on : rhel87-small
1783
1803
tasks :
1784
1804
- name : " check-import-time"
@@ -1791,7 +1811,7 @@ buildvariants:
1791
1811
- name : " backport-pr"
1792
1812
1793
1813
- name : " perf-tests"
1794
- display_name : " Performance Benchmark Tests "
1814
+ display_name : " Performance Benchmarks "
1795
1815
batchtime : 10080 # 7 days
1796
1816
run_on : rhel90-dbx-perf-large
1797
1817
tasks :
0 commit comments