@@ -162,17 +162,18 @@ functions:
162
162
args :
163
163
- ${DRIVERS_TOOLS}/.evergreen/teardown.sh
164
164
165
- assume-ec2-role :
165
+ assume-test-secrets- ec2-role :
166
166
- command : ec2.assume_role
167
167
params :
168
168
role_arn : ${aws_test_secrets_role}
169
+ duration_seconds : 1800
169
170
170
171
run-oidc-auth-test-with-test-credentials :
171
172
- command : subprocess.exec
172
173
type : test
173
174
params :
174
175
binary : bash
175
- env :
176
+ env :
176
177
OIDC : oidc
177
178
include_expansions_in_env : [DRIVERS_TOOLS, AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN]
178
179
args : [*task-runner, test-oidc]
@@ -396,6 +397,16 @@ functions:
396
397
include_expansions_in_env : ["MONGODB_URI"]
397
398
args : [*task-runner, test-goleak]
398
399
400
+ " run oidc k8s test " :
401
+ - command : subprocess.exec
402
+ type : test
403
+ params :
404
+ binary : bash
405
+ include_expansions_in_env : [AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN, VARIANT, DRIVERS_TOOLS]
406
+ env :
407
+ OIDC_ENV : k8s
408
+ args : [*task-runner, test-oidc-remote]
409
+
399
410
run-ocsp-server :
400
411
- command : subprocess.exec
401
412
params :
@@ -1658,6 +1669,19 @@ tasks:
1658
1669
OIDC_ENV : gcp
1659
1670
args : [*task-runner, test-oidc-remote]
1660
1671
1672
+ - name : " oidc-auth-test-k8s"
1673
+ commands :
1674
+ - func : assume-test-secrets-ec2-role
1675
+ - func : " run oidc k8s test"
1676
+ vars :
1677
+ VARIANT : eks
1678
+ - func : " run oidc k8s test"
1679
+ vars :
1680
+ VARIANT : gke
1681
+ - func : " run oidc k8s test"
1682
+ vars :
1683
+ VARIANT : aks
1684
+
1661
1685
- name : " test-search-index"
1662
1686
commands :
1663
1687
- func : " bootstrap-mongo-orchestration"
@@ -1902,14 +1926,17 @@ task_groups:
1902
1926
- ${DRIVERS_TOOLS}/.evergreen/csfle/azurekms/teardown.sh
1903
1927
- func : teardown
1904
1928
- func : handle-test-artifacts
1905
-
1906
1929
tasks :
1907
1930
- testazurekms-task
1908
1931
1909
1932
- name : testoidc_task_group
1933
+ setup_group_can_fail_task : true
1934
+ setup_group_timeout_secs : 1800
1935
+ teardown_task_can_fail_task : true
1936
+ teardown_group_timeout_secs : 180 # 3 minutes (max allowed time)
1910
1937
setup_group :
1911
1938
- func : setup-system
1912
- - func : assume-ec2-role
1939
+ - func : assume-test-secrets- ec2-role
1913
1940
- command : subprocess.exec
1914
1941
params :
1915
1942
binary : bash
@@ -1926,12 +1953,14 @@ task_groups:
1926
1953
- ${DRIVERS_TOOLS}/.evergreen/auth_oidc/teardown.sh
1927
1954
- func : teardown
1928
1955
- func : handle-test-artifacts
1929
- setup_group_can_fail_task : true
1930
- setup_group_timeout_secs : 1800
1931
1956
tasks :
1932
1957
- oidc-auth-test
1933
1958
1934
1959
- name : testazureoidc_task_group
1960
+ setup_group_can_fail_task : true
1961
+ setup_group_timeout_secs : 1800
1962
+ teardown_task_can_fail_task : true
1963
+ teardown_group_timeout_secs : 180 # 3 minutes (max allowed time)
1935
1964
setup_group :
1936
1965
- func : setup-system
1937
1966
- command : subprocess.exec
@@ -1949,12 +1978,14 @@ task_groups:
1949
1978
- ${DRIVERS_TOOLS}/.evergreen/auth_oidc/azure/teardown.sh
1950
1979
- func : teardown
1951
1980
- func : handle-test-artifacts
1952
- setup_group_can_fail_task : true
1953
- setup_group_timeout_secs : 1800
1954
1981
tasks :
1955
1982
- oidc-auth-test-azure
1956
1983
1957
1984
- name : testgcpoidc_task_group
1985
+ setup_group_can_fail_task : true
1986
+ setup_group_timeout_secs : 1800
1987
+ teardown_task_can_fail_task : true
1988
+ teardown_group_timeout_secs : 180 # 3 minutes (max allowed time)
1958
1989
setup_group :
1959
1990
- func : setup-system
1960
1991
- command : subprocess.exec
@@ -1972,10 +2003,32 @@ task_groups:
1972
2003
- ${DRIVERS_TOOLS}/.evergreen/auth_oidc/gcp/teardown.sh
1973
2004
- func : teardown
1974
2005
- func : handle-test-artifacts
2006
+ tasks :
2007
+ - oidc-auth-test-gcp
2008
+
2009
+ - name : testk8soidc_task_group
1975
2010
setup_group_can_fail_task : true
1976
2011
setup_group_timeout_secs : 1800
2012
+ teardown_task_can_fail_task : true
2013
+ teardown_group_timeout_secs : 180 # 3 minutes (max allowed time)
2014
+ setup_group :
2015
+ - func : setup-system
2016
+ - command : subprocess.exec
2017
+ params :
2018
+ binary : bash
2019
+ include_expansions_in_env : ["AWS_ACCESS_KEY_ID", "AWS_SECRET_ACCESS_KEY", "AWS_SESSION_TOKEN"]
2020
+ args :
2021
+ - ${DRIVERS_TOOLS}/.evergreen/auth_oidc/k8s/setup.sh
2022
+ teardown_group :
2023
+ - command : subprocess.exec
2024
+ params :
2025
+ binary : bash
2026
+ args :
2027
+ - ${DRIVERS_TOOLS}/.evergreen/auth_oidc/k8s/teardown.sh
2028
+ - func : teardown
2029
+ - func : handle-test-artifacts
1977
2030
tasks :
1978
- - oidc-auth-test-gcp
2031
+ - oidc-auth-test-k8s
1979
2032
1980
2033
- name : test-aws-lambda-task-group
1981
2034
setup_group :
@@ -2322,8 +2375,6 @@ buildvariants:
2322
2375
GO_DIST : " /opt/golang/go1.22"
2323
2376
tasks :
2324
2377
- name : testoidc_task_group
2325
- batchtime : 20160 # Use a batchtime of 14 days as suggested by the CSFLE test README
2326
2378
- name : testazureoidc_task_group
2327
- batchtime : 20160 # Use a batchtime of 14 days as suggested by the CSFLE test README
2328
2379
- name : testgcpoidc_task_group
2329
- batchtime : 20160 # Use a batchtime of 14 days as suggested by the CSFLE test README
2380
+ - name : testk8soidc_task_group
0 commit comments