@@ -29,11 +29,15 @@ functions:
29
29
directory : " src"
30
30
31
31
" fetch secrets " :
32
+ - command : ec2.assume_role
33
+ params :
34
+ role_arn : ${drivers_test_secrets_role}
32
35
- command : subprocess.exec
33
36
type : setup
34
37
params :
35
38
working_dir : " src"
36
39
binary : bash
40
+ include_expansions_in_env : [AWS_SECRET_ACCESS_KEY, AWS_ACCESS_KEY_ID, AWS_SESSION_TOKEN]
37
41
args : [.evergreen/fetch-secrets.sh]
38
42
39
43
" fetch repo " :
@@ -48,7 +52,7 @@ functions:
48
52
" assume role " :
49
53
- command : ec2.assume_role
50
54
params :
51
- role_arn : ${assume_role_arn }
55
+ role_arn : ${drivers_test_secrets_role }
52
56
53
57
" execute tests " :
54
58
- command : subprocess.exec
@@ -64,7 +68,7 @@ functions:
64
68
type : test
65
69
retry_on_failure : true
66
70
params :
67
- include_expansions_in_env : [DIR]
71
+ include_expansions_in_env : [DIR, AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN ]
68
72
working_dir : " src"
69
73
binary : bash
70
74
args :
@@ -74,14 +78,15 @@ functions:
74
78
- command : subprocess.exec
75
79
type : test
76
80
params :
77
- include_expansions_in_env : [DIR]
81
+ include_expansions_in_env : [DIR, AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN ]
78
82
working_dir : " src"
79
83
binary : bash
80
84
args : [.evergreen/setup-remote.sh]
81
85
82
86
pre_error_fails_task : true
83
87
post_error_fails_task : true
84
88
pre :
89
+ - func : " assume role"
85
90
- func : " fetch source"
86
91
- func : " fetch secrets"
87
92
post :
@@ -201,15 +206,13 @@ tasks:
201
206
tags : [local]
202
207
commands :
203
208
- func : " fetch repo"
204
- - func : " assume role"
205
209
- func : " setup local atlas"
206
210
- func : " execute tests"
207
211
208
212
- name : test-pymongo-voyageai-remote
209
213
tags : [remote]
210
214
commands :
211
215
- func : " fetch repo"
212
- - func : " assume role"
213
216
- func : " setup remote atlas"
214
217
- func : " execute tests"
215
218
0 commit comments