@@ -175,6 +175,39 @@ functions:
175
175
args : ['-h', 'hosts.json']
176
176
env :
177
177
XDG_CONFIG_HOME : ${workdir}
178
+ " set-up cloud manager " :
179
+ - command : subprocess.exec
180
+ type : setup
181
+ params :
182
+ add_to_path :
183
+ - ${go_bin}
184
+ - ../../bin
185
+ working_dir : src/github.com/mongodb/mongocli/build/ci
186
+ include_expansions_in_env :
187
+ - cloud_manager_service
188
+ - revision
189
+ binary : ./set-up-cloud-manager.sh
190
+ args : ['-h', 'hosts.json']
191
+ env :
192
+ XDG_CONFIG_HOME : ${workdir}
193
+ MCLI_ORG_ID : ${cloud_manager_org_id}
194
+ MCLI_PROJECT_ID : ${cloud_manager_project_id}
195
+ MCLI_PRIVATE_API_KEY : ${cloud_manager_private_api_key}
196
+ MCLI_PUBLIC_API_KEY : ${cloud_manager_public_api_key}
197
+ MCLI_OPS_MANAGER_URL : ${mcli_ops_manager_url}
198
+ MCLI_SERVICE : cloud-manager
199
+ " clean-up cloud manager " :
200
+ - command : subprocess.exec
201
+ type : setup
202
+ params :
203
+ add_to_path :
204
+ - ${go_bin}
205
+ - ../../bin
206
+ working_dir : src/github.com/mongodb/mongocli/build/ci
207
+ binary : ./clean-up-cloud-manager.sh
208
+ args : ['-h', 'hosts.json']
209
+ env :
210
+ XDG_CONFIG_HOME : ${workdir}
178
211
" lint " :
179
212
- command : shell.exec
180
213
type : test
@@ -1073,18 +1106,15 @@ tasks:
1073
1106
commands :
1074
1107
- func : " clone"
1075
1108
- func : " install gotestsum"
1109
+ - func : " build"
1076
1110
- func : " deploy spawn host"
1077
1111
- func : ssh-ready
1112
+ - func : " set-up cloud manager"
1078
1113
- func : " install automation agent"
1079
1114
- func : " e2e test"
1080
1115
vars :
1081
- MCLI_ORG_ID : ${cloud_manager_org_id}
1082
- MCLI_PROJECT_ID : ${cloud_manager_project_id}
1083
- MCLI_PRIVATE_API_KEY : ${cloud_manager_private_api_key}
1084
- MCLI_PUBLIC_API_KEY : ${cloud_manager_public_api_key}
1085
- MCLI_OPS_MANAGER_URL : ${mcli_ops_manager_url}
1086
- MCLI_SERVICE : cloud-manager
1087
1116
E2E_TAGS : cloudmanager,remote,replica
1117
+ - func : " clean-up cloud manager"
1088
1118
# Deploy a sharded cluster, we need to be careful on running parallel modifications to the automation config
1089
1119
- name : cloud_manager_deploy_sharded_cluster_e2e
1090
1120
tags : ["e2e","clusters","cloudmanager"]
@@ -1098,18 +1128,15 @@ tasks:
1098
1128
commands :
1099
1129
- func : " clone"
1100
1130
- func : " install gotestsum"
1131
+ - func : " build"
1101
1132
- func : " deploy spawn host"
1102
1133
- func : ssh-ready
1134
+ - func : " set-up cloud manager"
1103
1135
- func : " install automation agent"
1104
1136
- func : " e2e test"
1105
1137
vars :
1106
- MCLI_ORG_ID : ${cloud_manager_org_id}
1107
- MCLI_PROJECT_ID : ${cloud_manager_project_id}
1108
- MCLI_PRIVATE_API_KEY : ${cloud_manager_private_api_key}
1109
- MCLI_PUBLIC_API_KEY : ${cloud_manager_public_api_key}
1110
- MCLI_OPS_MANAGER_URL : ${mcli_ops_manager_url}
1111
- MCLI_SERVICE : cloud-manager
1112
1138
E2E_TAGS : cloudmanager,remote,sharded
1139
+ - func : " clean-up cloud manager"
1113
1140
# Deploy ops manager and test against it
1114
1141
- name : ops_manager_4_4_generic_e2e
1115
1142
tags : [ "e2e","ops-manager-44" ]
0 commit comments