@@ -210,6 +210,12 @@ functions:
210
210
script : |
211
211
DRIVERS_TOOLS="${DRIVERS_TOOLS}" bash ${DRIVERS_TOOLS}/.evergreen/atlas_data_lake/run-mongohouse-image.sh
212
212
213
+ " assume-aws-role " :
214
+ - command : ec2.assume_role
215
+ params :
216
+ role_arn : ${aws_test_secrets_role}
217
+ duration_seconds : 1800
218
+
213
219
" run load-balancer " :
214
220
- command : shell.exec
215
221
params :
@@ -945,18 +951,23 @@ tasks:
945
951
export GCPOIDC_TEST_CMD="OIDC_ENV=gcp ./.evergreen/run-mongodb-oidc-test.sh"
946
952
bash $DRIVERS_TOOLS/.evergreen/auth_oidc/gcp/run-driver-test.sh
947
953
948
- - name : " oidc-auth-test-k8s"
954
+ - name : " oidc-auth-test-k8s-eks-task "
949
955
commands :
950
- - command : ec2.assume_role
951
- params :
952
- role_arn : ${aws_test_secrets_role}
953
- duration_seconds : 1800
956
+ - func : " assume-aws-role"
954
957
- func : " oidc-auth-test-k8s-func"
955
958
vars :
956
959
VARIANT : eks
960
+
961
+ - name : " oidc-auth-test-k8s-aks-task"
962
+ commands :
963
+ - func : " assume-aws-role"
957
964
- func : " oidc-auth-test-k8s-func"
958
965
vars :
959
966
VARIANT : aks
967
+
968
+ - name : " oidc-auth-test-k8s-gke-task"
969
+ commands :
970
+ - func : " assume-aws-role"
960
971
- func : " oidc-auth-test-k8s-func"
961
972
vars :
962
973
VARIANT : gke
@@ -2056,9 +2067,7 @@ task_groups:
2056
2067
- func : fetch source
2057
2068
- func : prepare resources
2058
2069
- func : fix absolute paths
2059
- - command : ec2.assume_role
2060
- params :
2061
- role_arn : ${aws_test_secrets_role}
2070
+ - func : " assume-aws-role"
2062
2071
- command : subprocess.exec
2063
2072
params :
2064
2073
binary : bash
@@ -2132,9 +2141,7 @@ task_groups:
2132
2141
- func : fetch source
2133
2142
- func : prepare resources
2134
2143
- func : fix absolute paths
2135
- - command : ec2.assume_role
2136
- params :
2137
- role_arn : ${aws_test_secrets_role}
2144
+ - func : " assume-aws-role"
2138
2145
- command : subprocess.exec
2139
2146
params :
2140
2147
binary : bash
@@ -2148,7 +2155,9 @@ task_groups:
2148
2155
args :
2149
2156
- ${DRIVERS_TOOLS}/.evergreen/auth_oidc/k8s/teardown.sh
2150
2157
tasks :
2151
- - oidc-auth-test-k8s
2158
+ - " oidc-auth-test-k8s-eks-task"
2159
+ - " oidc-auth-test-k8s-aks-task"
2160
+ - " oidc-auth-test-k8s-gke-task"
2152
2161
2153
2162
buildvariants :
2154
2163
0 commit comments