@@ -115,7 +115,7 @@ c_driver_variables:
115
115
curl -s http://localhost:8889/
116
116
start_topology_command : &start_topology_command
117
117
start_topology : |
118
- curl -s --data @"$ORCHESTRATION_FILE" "http://localhost:8889/v1/$ORCHESTRATION_PATH "
118
+ curl -s --data @"$ORCHESTRATION_FILE" "$ORCHESTRATION_URL "
119
119
./mongodb/bin/mongo --eval 'printjson(db.serverBuildInfo())'
120
120
./mongodb/bin/mongo --eval 'printjson(db.isMaster())'
121
121
@@ -291,78 +291,77 @@ functions:
291
291
- key : " mongo_url"
292
292
value : ${mongo_url_prefix}${mongo_url_enterprise_keyword|enterprise-}${mongo_url_platform|}latest.${mongo_url_extension|tgz}
293
293
294
- # TODO: refactor these, "file" and "path" share parts
295
294
" set topology standalone" :
296
295
command : expansions.update
297
296
params :
298
297
updates :
299
298
- key : " orchestration_file"
300
- value : " orchestration_configs/servers/ auth.json"
301
- - key : " orchestration_path "
302
- value : " servers "
299
+ value : " auth.json"
300
+ - key : " topology_type "
301
+ value : " server "
303
302
304
303
" set topology replica set" :
305
304
command : expansions.update
306
305
params :
307
306
updates :
308
307
- key : " orchestration_file"
309
- value : " orchestration_configs/replica_sets/ auth.json"
310
- - key : " orchestration_path "
311
- value : " replica_sets "
308
+ value : " auth.json"
309
+ - key : " topology_type "
310
+ value : " replica_set "
312
311
313
312
" set topology sharded" :
314
313
command : expansions.update
315
314
params :
316
315
updates :
317
316
- key : " orchestration_file"
318
- value : " orchestration_configs/sharded_clusters/ auth.json"
319
- - key : " orchestration_path "
320
- value : " sharded_clusters "
317
+ value : " auth.json"
318
+ - key : " topology_type "
319
+ value : " sharded_cluster "
321
320
322
321
" set topology standalone no auth" :
323
322
command : expansions.update
324
323
params :
325
324
updates :
326
325
- key : " orchestration_file"
327
- value : " orchestration_configs/servers/ basic.json"
328
- - key : " orchestration_path "
329
- value : " servers "
326
+ value : " basic.json"
327
+ - key : " topology_type "
328
+ value : " server "
330
329
331
330
" set topology replica set no auth" :
332
331
command : expansions.update
333
332
params :
334
333
updates :
335
334
- key : " orchestration_file"
336
- value : " orchestration_configs/replica_sets/ basic.json"
337
- - key : " orchestration_path "
338
- value : " replica_sets "
335
+ value : " basic.json"
336
+ - key : " topology_type "
337
+ value : " replica_set "
339
338
340
339
" set topology sharded no auth" :
341
340
command : expansions.update
342
341
params :
343
342
updates :
344
343
- key : " orchestration_file"
345
- value : " orchestration_configs/sharded_clusters/ basic.json"
346
- - key : " orchestration_path "
347
- value : " sharded_clusters "
344
+ value : " basic.json"
345
+ - key : " topology_type "
346
+ value : " sharded_cluster "
348
347
349
348
" use WiredTiger storage" :
350
349
command : expansions.update
351
350
params :
352
351
updates :
353
352
- key : " orchestration_file"
354
- value : " orchestration_configs/servers/ wiredtiger.json"
355
- - key : " orchestration_path "
356
- value : " servers "
353
+ value : " wiredtiger.json"
354
+ - key : " topology_type "
355
+ value : " server "
357
356
358
357
" use MMAPv1 storage" :
359
358
command : expansions.update
360
359
params :
361
360
updates :
362
361
- key : " orchestration_file"
363
- value : " orchestration_configs/servers/ mmapv1.json"
364
- - key : " orchestration_path "
365
- value : " servers "
362
+ value : " mmapv1.json"
363
+ - key : " topology_type "
364
+ value : " server "
366
365
367
366
" set version 3.0" :
368
367
command : expansions.update
@@ -392,8 +391,8 @@ functions:
392
391
script : |
393
392
set -o errexit
394
393
set -o verbose
395
- export ORCHESTRATION_FILE="${orchestration_file}"
396
- export ORCHESTRATION_PATH="${orchestration_path} "
394
+ export ORCHESTRATION_FILE="orchestration_configs/${topology_type}s/ ${orchestration_file}"
395
+ export ORCHESTRATION_URL="http://localhost:8889/v1/${topology_type}s "
397
396
${set_username_password}
398
397
${start_mongo_orchestration}
399
398
${start_topology}
0 commit comments