-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Expand file tree
/
Copy pathconfig.yml
More file actions
3811 lines (3807 loc) · 113 KB
/
config.yml
File metadata and controls
3811 lines (3807 loc) · 113 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
stepback: true
command_type: system
exec_timeout_secs: 7200
timeout:
- command: subprocess.exec
params:
binary: ls
args:
- '-la'
functions:
fetch source:
- command: git.get_project
params:
directory: src
shallow_clone: true
- command: subprocess.exec
params:
working_dir: src
binary: bash
env:
is_patch: ${is_patch}
project: ${project}
args:
- .evergreen/prepare-shell.sh
- command: expansions.update
params:
file: src/expansion.yml
bootstrap mongo-orchestration:
- command: subprocess.exec
params:
binary: bash
add_expansions_to_env: true
env:
MONGODB_VERSION: ${VERSION}
TOPOLOGY: ${TOPOLOGY}
AUTH: ${AUTH}
SSL: ${SSL}
ORCHESTRATION_FILE: ${ORCHESTRATION_FILE}
REQUIRE_API_VERSION: ${REQUIRE_API_VERSION}
LOAD_BALANCER: ${LOAD_BALANCER}
COMPRESSOR: ${COMPRESSOR}
DRIVERS_TOOLS: ${DRIVERS_TOOLS}
MONGODB_BINARIES: ${MONGODB_BINARIES}
args:
- src/.evergreen/run-orchestration.sh
- command: expansions.update
params:
file: mo-expansion.yml
stop mongo-orchestration:
- command: shell.exec
params:
script: |
bash ${DRIVERS_TOOLS}/.evergreen/stop-orchestration.sh
bootstrap mongohoused:
- command: shell.exec
params:
script: |
${PREPARE_SHELL}
DRIVERS_TOOLS="${DRIVERS_TOOLS}" bash ${DRIVERS_TOOLS}/.evergreen/atlas_data_lake/pull-mongohouse-image.sh
- command: shell.exec
params:
background: true
script: |
${PREPARE_SHELL}
DRIVERS_TOOLS="${DRIVERS_TOOLS}" bash ${DRIVERS_TOOLS}/.evergreen/atlas_data_lake/run-mongohouse-image.sh
sleep 1
docker ps
run tests:
- command: ec2.assume_role
params:
role_arn: ${DRIVERS_SECRETS_ARN}
- command: subprocess.exec
type: test
params:
env:
TEST_CSFLE: 'true'
add_expansions_to_env: true
working_dir: src
timeout_secs: 300
binary: bash
args:
- .evergreen/run-tests.sh
perf send:
- command: s3.put
params:
aws_key: ${aws_key}
aws_secret: ${aws_secret}
local_file: src/test/benchmarks/driver_bench/results.json
optional: true
remote_file: mongo-node-driver/${revision}/${version_id}/results.${task_name}.json
bucket: mciuploads
permissions: public-read
content_type: application/json
display_name: Performance Results
- command: subprocess.exec
params:
working_dir: src
binary: bash
add_expansions_to_env: true
args:
- .evergreen/perf-send.sh
run serverless tests:
- command: timeout.update
params:
exec_timeout_secs: 1800
- command: ec2.assume_role
params:
role_arn: ${DRIVERS_SECRETS_ARN}
- command: subprocess.exec
type: test
params:
timeout_secs: 300
working_dir: src
binary: bash
env:
AUTH: auth
SSL: ssl
add_expansions_to_env: true
args:
- .evergreen/run-serverless-tests.sh
start-load-balancer:
- command: shell.exec
params:
script: |
MONGODB_URI=${MONGODB_URI} bash ${DRIVERS_TOOLS}/.evergreen/run-load-balancer.sh start
- command: expansions.update
params:
file: lb-expansion.yml
stop-load-balancer:
- command: shell.exec
params:
script: |
bash ${DRIVERS_TOOLS}/.evergreen/run-load-balancer.sh stop
run-lb-tests:
- command: subprocess.exec
type: test
params:
add_expansions_to_env: true
binary: bash
working_dir: src
timeout_secs: 300
args:
- .evergreen/run-tests.sh
run-compression-tests:
- command: subprocess.exec
type: test
params:
binary: bash
working_dir: src
timeout_secs: 300
add_expansions_to_env: true
args:
- .evergreen/run-tests.sh
install package:
- command: shell.exec
params:
working_dir: src
script: |
source ${DRIVERS_TOOLS}/.evergreen/init-node-and-npm-env.sh
npm install --force ${PACKAGE}
run lint checks:
- command: subprocess.exec
type: test
params:
working_dir: src
timeout_secs: 60
env:
PROJECT_DIRECTORY: ${PROJECT_DIRECTORY}
DRIVERS_TOOLS: ${DRIVERS_TOOLS}
binary: bash
args:
- ${PROJECT_DIRECTORY}/.evergreen/run-lint-checks.sh
run unit tests:
- command: subprocess.exec
type: test
params:
working_dir: src
timeout_secs: 60
env:
PROJECT_DIRECTORY: ${PROJECT_DIRECTORY}
DRIVERS_TOOLS: ${DRIVERS_TOOLS}
binary: bash
args:
- ${PROJECT_DIRECTORY}/.evergreen/run-unit-tests.sh
check types:
- command: subprocess.exec
type: test
params:
working_dir: src
timeout_secs: 60
env:
PROJECT_DIRECTORY: ${PROJECT_DIRECTORY}
DRIVERS_TOOLS: ${DRIVERS_TOOLS}
TS_VERSION: ${TS_VERSION}
TS_CHECK: CHECK_TYPES
TYPES_VERSION: ${TYPES_VERSION}
binary: bash
args:
- ${PROJECT_DIRECTORY}/.evergreen/run-typescript.sh
check resource management:
- command: subprocess.exec
type: test
params:
working_dir: src
timeout_secs: 60
env:
PROJECT_DIRECTORY: ${PROJECT_DIRECTORY}
DRIVERS_TOOLS: ${DRIVERS_TOOLS}
binary: bash
args:
- ${PROJECT_DIRECTORY}/.evergreen/run-resource-management.sh
check resource management feature integration:
- command: subprocess.exec
type: test
params:
working_dir: src
timeout_secs: 60
env:
PROJECT_DIRECTORY: ${PROJECT_DIRECTORY}
DRIVERS_TOOLS: ${DRIVERS_TOOLS}
MONGODB_URI: ${MONGODB_URI}
binary: bash
args:
- ${PROJECT_DIRECTORY}/.evergreen/run-resource-management-feature-integration.sh
compile driver:
- command: subprocess.exec
type: test
params:
working_dir: src
timeout_secs: 60
env:
PROJECT_DIRECTORY: ${PROJECT_DIRECTORY}
DRIVERS_TOOLS: ${DRIVERS_TOOLS}
TS_VERSION: ${TS_VERSION}
TS_CHECK: COMPILE_DRIVER
TYPES_VERSION: ${TYPES_VERSION}
binary: bash
args:
- ${PROJECT_DIRECTORY}/.evergreen/run-typescript.sh
reset aws instance profile:
- command: shell.exec
params:
shell: bash
script: |
${PREPARE_SHELL}
cd "${DRIVERS_TOOLS}/.evergreen/auth_aws"
if [ -f "./aws_e2e_setup.json" ]; then
. ./activate-authawsvenv.sh
python ./lib/aws_assign_instance_profile.py
fi
cleanup:
- command: shell.exec
params:
silent: true
script: |
${PREPARE_SHELL}
rm -rf $DRIVERS_TOOLS || true
fix absolute paths:
- command: shell.exec
params:
silent: true
script: |
${PREPARE_SHELL}
for filename in $(find ${DRIVERS_TOOLS} -name \*.json); do
perl -p -i -e "s|ABSOLUTE_PATH_REPLACEMENT_TOKEN|${DRIVERS_TOOLS}|g" $filename
done
windows fix:
- command: shell.exec
params:
silent: true
script: |
${PREPARE_SHELL}
# for i in $(find ${DRIVERS_TOOLS}/.evergreen ${PROJECT_DIRECTORY}/.evergreen -name \*.sh); do
# cat $i | tr -d '\r' > $i.new
# mv $i.new $i
# done
# Copy client certificate because symlinks do not work on Windows.
cp ${DRIVERS_TOOLS}/.evergreen/x509gen/client.pem ${MONGO_ORCHESTRATION_HOME}/lib/client.pem
make files executable:
- command: shell.exec
params:
silent: true
script: |
${PREPARE_SHELL}
for i in $(find ${DRIVERS_TOOLS}/.evergreen ${PROJECT_DIRECTORY}/.evergreen -name \*.sh); do
chmod +x $i
done
install dependencies:
- command: subprocess.exec
type: setup
params:
working_dir: src
binary: bash
add_expansions_to_env: true
args:
- .evergreen/install-dependencies.sh
remove aws-credential-providers:
- command: shell.exec
type: setup
params:
shell: bash
working_dir: src
script: |
${PREPARE_SHELL}
source $DRIVERS_TOOLS/.evergreen/init-node-and-npm-env.sh
rm -rf ./node_modules/@aws-sdk/credential-providers
run atlas tests:
- command: subprocess.exec
params:
working_dir: src
binary: bash
env:
DRIVERS_TOOLS: ${DRIVERS_TOOLS}
args:
- '-c'
- ${DRIVERS_TOOLS}/.evergreen/secrets_handling/setup-secrets.sh drivers/atlas_connect
- command: subprocess.exec
type: test
params:
working_dir: src
binary: bash
env:
DRIVERS_TOOLS: ${DRIVERS_TOOLS}
NODE_LTS_VERSION: ${NODE_LTS_VERSION}
args:
- .evergreen/run-atlas-tests.sh
run socks5 tests:
- command: ec2.assume_role
params:
role_arn: ${DRIVERS_SECRETS_ARN}
- command: subprocess.exec
type: test
params:
add_expansions_to_env: true
working_dir: src
binary: bash
args:
- .evergreen/run-socks5-tests.sh
run kerberos tests:
- command: subprocess.exec
type: test
params:
binary: bash
working_dir: src
env:
DRIVERS_TOOLS: ${DRIVERS_TOOLS}
args:
- .evergreen/run-kerberos-tests.sh
run ldap tests:
- command: ec2.assume_role
params:
role_arn: ${DRIVERS_SECRETS_ARN}
- command: subprocess.exec
type: test
params:
working_dir: src
binary: bash
env:
DRIVERS_TOOLS: ${DRIVERS_TOOLS}
NODE_LTS_VERSION: ${NODE_LTS_VERSION}
args:
- .evergreen/run-ldap-tests.sh
run data lake tests:
- command: subprocess.exec
type: test
params:
working_dir: src
binary: bash
env:
PROJECT_DIRECTORY: ${PROJECT_DIRECTORY}
DRIVERS_TOOLS: ${DRIVERS_TOOLS}
MONGODB_URI: mongodb://mhuser:pencil@localhost
NODE_LTS_VERSION: ${NODE_LTS_VERSION}
args:
- .evergreen/run-data-lake-tests.sh
run tls tests:
- command: shell.exec
type: test
params:
working_dir: src
script: |
export PROJECT_DIRECTORY="$(pwd)"
export NODE_LTS_VERSION=${NODE_LTS_VERSION}
export DRIVERS_TOOLS="${DRIVERS_TOOLS}"
export MONGODB_URI="${MONGODB_URI}"
bash ${PROJECT_DIRECTORY}/.evergreen/run-tls-tests.sh
assume secrets manager rule:
- command: ec2.assume_role
params:
role_arn: ${DRIVERS_SECRETS_ARN}
run aws auth test with regular aws credentials:
- command: subprocess.exec
type: test
params:
include_expansions_in_env:
- MONGODB_URI
- DRIVERS_TOOLS
- MONGODB_AWS_SDK
env:
AWS_CREDENTIAL_TYPE: regular
working_dir: src
binary: bash
args:
- .evergreen/run-mongodb-aws-test.sh
run aws auth test with assume role credentials:
- command: subprocess.exec
type: test
params:
include_expansions_in_env:
- MONGODB_URI
- DRIVERS_TOOLS
- MONGODB_AWS_SDK
env:
AWS_CREDENTIAL_TYPE: assume-role
working_dir: src
binary: bash
args:
- .evergreen/run-mongodb-aws-test.sh
run aws auth test with aws EC2 credentials:
- command: subprocess.exec
type: test
params:
include_expansions_in_env:
- MONGODB_URI
- DRIVERS_TOOLS
- MONGODB_AWS_SDK
env:
AWS_CREDENTIAL_TYPE: ec2
IS_EC2: 'true'
working_dir: src
binary: bash
args:
- .evergreen/run-mongodb-aws-test.sh
run aws auth test with aws credentials as environment variables:
- command: subprocess.exec
type: test
params:
include_expansions_in_env:
- MONGODB_URI
- DRIVERS_TOOLS
- MONGODB_AWS_SDK
env:
AWS_CREDENTIAL_TYPE: env-creds
working_dir: src
binary: bash
args:
- .evergreen/run-mongodb-aws-test.sh
run aws auth test with aws credentials and session token as environment variables:
- command: subprocess.exec
type: test
params:
include_expansions_in_env:
- MONGODB_URI
- DRIVERS_TOOLS
- MONGODB_AWS_SDK
env:
AWS_CREDENTIAL_TYPE: session-creds
working_dir: src
binary: bash
args:
- .evergreen/run-mongodb-aws-test.sh
run aws auth test AssumeRoleWithWebIdentity with AWS_ROLE_SESSION_NAME set:
- command: subprocess.exec
type: test
params:
include_expansions_in_env:
- MONGODB_URI
- DRIVERS_TOOLS
- MONGODB_AWS_SDK
env:
AWS_CREDENTIAL_TYPE: web-identity
AWS_ROLE_SESSION_NAME: test
working_dir: src
binary: bash
args:
- .evergreen/run-mongodb-aws-test.sh
run aws auth test AssumeRoleWithWebIdentity with AWS_ROLE_SESSION_NAME unset:
- command: subprocess.exec
type: test
params:
include_expansions_in_env:
- MONGODB_URI
- DRIVERS_TOOLS
- MONGODB_AWS_SDK
env:
AWS_CREDENTIAL_TYPE: web-identity
working_dir: src
binary: bash
args:
- .evergreen/run-mongodb-aws-test.sh
run aws ECS auth test:
- command: subprocess.exec
type: test
params:
include_expansions_in_env:
- DRIVERS_TOOLS
- MONGODB_AWS_SDK
- PROJECT_DIRECTORY
- MONGODB_BINARIES
env:
AWS_CREDENTIAL_TYPE: web-identity
working_dir: src
binary: bash
args:
- .evergreen/prepare-mongodb-aws-ecs-auth.sh
run custom csfle tests:
- command: subprocess.exec
type: test
params:
working_dir: src
add_expansions_to_env: true
binary: bash
args:
- .evergreen/run-custom-csfle-tests.sh
run lambda handler example tests:
- command: subprocess.exec
params:
working_dir: src
timeout_secs: 60
env:
MONGODB_URI: ${MONGODB_URI}
PROJECT_DIRECTORY: ${PROJECT_DIRECTORY}
DRIVERS_TOOLS: ${DRIVERS_TOOLS}
binary: bash
args:
- ${PROJECT_DIRECTORY}/.evergreen/run-lambda-tests.sh
run lambda handler example tests with aws auth:
- command: subprocess.exec
type: test
params:
include_expansions_in_env:
- MONGODB_URI
- DRIVERS_TOOLS
env:
AWS_CREDENTIAL_TYPE: env-creds
MONGODB_AWS_SDK: 'true'
working_dir: src
binary: bash
args:
- .evergreen/run-lambda-aws-tests.sh
upload test results:
- command: attach.xunit_results
params:
file: src/xunit.xml
upload coverage report:
- command: shell.exec
params:
working_dir: src
script: |
${PREPARE_SHELL}
npx nyc report --reporter=json
- command: s3.put
params:
aws_key: ${aws_key}
aws_secret: ${aws_secret}
local_file: src/coverage/coverage-final.json
optional: true
remote_file: mongo-node-driver/${revision}/${version_id}/coverage.${build_variant}.${task_name}.json
bucket: mciuploads
permissions: public-read
content_type: application/json
display_name: Raw Coverage Report
download and merge coverage:
- command: shell.exec
params:
working_dir: src
script: |
${PREPARE_SHELL}
export AWS_ACCESS_KEY_ID=${aws_key}
export AWS_SECRET_ACCESS_KEY=${aws_secret}
# Download all the task coverage files.
# NOTE: All coverage files are too large for V8 to handle the resulting call to
# JSON.stringify from within nyc, so with stick to Fermiun to include the
# compression tests.
aws s3 cp --recursive s3://mciuploads/mongo-node-driver/${revision}/${version_id}/ \
coverage/ \
--exclude "*rhel80-large*" \
--include "*fermiun"
# npx does not recognize the dependency so install it directly.
npm install @istanbuljs/nyc-config-typescript
cd coverage
sed -i'' -e 's/\/data\/mci\/.\{32\}\/src\///g' *
ls -la
cd ..
npx nyc merge coverage/ merged-coverage/coverage.json
npx nyc report -t merged-coverage/ --reporter=html --report-dir coverage-report
aws s3 cp coverage-report/ \
s3://mciuploads/mongo-node-driver/${revision}/${version_id}/coverage/ \
--recursive \
--acl public-read \
--region us-east-1
- command: s3.put
params:
aws_key: ${aws_key}
aws_secret: ${aws_secret}
local_file: src/coverage-report/index.html
remote_file: mongo-node-driver/${revision}/${version_id}/coverage/index.html
bucket: mciuploads
permissions: public-read
content_type: text/html
display_name: Coverage Report HTML
run spec driver benchmarks:
- command: subprocess.exec
type: test
params:
working_dir: src
env:
PROJECT_DIRECTORY: ${PROJECT_DIRECTORY}
MONGODB_URI: ${MONGODB_URI}
DRIVERS_TOOLS: ${DRIVERS_TOOLS}
MONGODB_CLIENT_OPTIONS: ${MONGODB_CLIENT_OPTIONS}
binary: bash
args:
- ${PROJECT_DIRECTORY}/.evergreen/run-benchmarks.sh
run x509 auth tests:
- command: subprocess.exec
type: test
params:
working_dir: src
env:
PROJECT_DIRECTORY: ${PROJECT_DIRECTORY}
MONGODB_URI: ${MONGODB_URI}
DRIVERS_TOOLS: ${DRIVERS_TOOLS}
binary: bash
args:
- ${PROJECT_DIRECTORY}/.evergreen/run-x509-tests.sh
install mongodb-client-encryption:
- command: subprocess.exec
type: setup
params:
working_dir: src
env:
INSTALL_DIR: mongodb-client-encryption
PROJECT_DIRECTORY: ${PROJECT_DIRECTORY}
DRIVERS_TOOLS: ${DRIVERS_TOOLS}
binary: bash
args:
- ${PROJECT_DIRECTORY}/.evergreen/install-mongodb-client-encryption.sh
build and test alpine FLE:
- command: subprocess.exec
type: test
params:
working_dir: src
env:
INSTALL_DIR: mongodb-client-encryption
PROJECT_DIRECTORY: ${PROJECT_DIRECTORY}
DRIVERS_TOOLS: ${DRIVERS_TOOLS}
NODE_VERSION: ${NODE_VERSION}
MONGODB_URI: ${MONGODB_URI}
binary: bash
args:
- .evergreen/docker/alpine.sh
tasks:
- name: test-atlas-data-lake
tags:
- datalake
- mongohouse
commands:
- func: install dependencies
- func: bootstrap mongohoused
- func: run data lake tests
- name: test-serverless
tags:
- serverless
commands:
- func: install dependencies
- func: run serverless tests
- name: test-gcpkms-task
commands:
- command: expansions.update
type: setup
params:
updates:
- {key: NPM_VERSION, value: '9'}
- func: install dependencies
- command: subprocess.exec
type: setup
params:
binary: bash
env:
DRIVERS_TOOLS: ${DRIVERS_TOOLS}
args:
- src/.evergreen/run-deployed-gcp-kms-tests.sh
- name: test-gcpkms-fail-task
commands:
- command: expansions.update
type: setup
params:
updates:
- {key: NPM_VERSION, value: '9'}
- {key: VERSION, value: latest}
- {key: TOPOLOGY, value: server}
- {key: AUTH, value: noauth}
- func: install dependencies
- func: bootstrap mongo-orchestration
- command: subprocess.exec
type: test
params:
binary: bash
env:
EXPECTED_GCPKMS_OUTCOME: failure
args:
- src/.evergreen/run-gcp-kms-tests.sh
- name: test-azurekms-task
commands:
- command: expansions.update
type: setup
params:
updates:
- {key: NPM_VERSION, value: '9'}
- func: install dependencies
- command: subprocess.exec
type: setup
params:
binary: bash
env:
DRIVERS_TOOLS: ${DRIVERS_TOOLS}
args:
- src/.evergreen/run-deployed-azure-kms-tests.sh
- name: test-azurekms-fail-task
commands:
- command: expansions.update
type: setup
params:
updates:
- {key: NPM_VERSION, value: '9'}
- {key: VERSION, value: latest}
- {key: TOPOLOGY, value: server}
- {key: AUTH, value: noauth}
- func: install dependencies
- func: bootstrap mongo-orchestration
- command: subprocess.exec
type: test
params:
binary: bash
env:
EXPECTED_AZUREKMS_OUTCOME: failure
args:
- src/.evergreen/run-azure-kms-tests.sh
- name: oidc-auth-test-k8s-latest-eks
commands:
- func: install dependencies
- command: subprocess.exec
type: test
params:
working_dir: src
binary: bash
env:
DRIVERS_TOOLS: ${DRIVERS_TOOLS}
PROJECT_DIRECTORY: ${PROJECT_DIRECTORY}
ENVIRONMENT: k8s
K8S_VARIANT: eks
SCRIPT: run-oidc-prose-tests.sh
include_expansions_in_env:
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- AWS_SESSION_TOKEN
args:
- .evergreen/run-oidc-tests-k8s.sh
- name: oidc-auth-test-k8s-latest-gke
commands:
- func: install dependencies
- command: subprocess.exec
type: test
params:
working_dir: src
binary: bash
env:
DRIVERS_TOOLS: ${DRIVERS_TOOLS}
PROJECT_DIRECTORY: ${PROJECT_DIRECTORY}
ENVIRONMENT: k8s
K8S_VARIANT: gke
SCRIPT: run-oidc-prose-tests.sh
include_expansions_in_env:
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- AWS_SESSION_TOKEN
args:
- .evergreen/run-oidc-tests-k8s.sh
- name: oidc-auth-test-k8s-latest-aks
commands:
- func: install dependencies
- command: subprocess.exec
type: test
params:
working_dir: src
binary: bash
env:
DRIVERS_TOOLS: ${DRIVERS_TOOLS}
PROJECT_DIRECTORY: ${PROJECT_DIRECTORY}
ENVIRONMENT: k8s
K8S_VARIANT: aks
SCRIPT: run-oidc-prose-tests.sh
include_expansions_in_env:
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- AWS_SESSION_TOKEN
args:
- .evergreen/run-oidc-tests-k8s.sh
- name: oidc-auth-test-azure-latest
commands:
- func: install dependencies
- command: subprocess.exec
type: test
params:
working_dir: src
binary: bash
env:
DRIVERS_TOOLS: ${DRIVERS_TOOLS}
PROJECT_DIRECTORY: ${PROJECT_DIRECTORY}
ENVIRONMENT: azure
SCRIPT: run-oidc-prose-tests.sh
args:
- .evergreen/run-oidc-tests-azure.sh
- command: subprocess.exec
type: test
params:
working_dir: src
binary: bash
env:
DRIVERS_TOOLS: ${DRIVERS_TOOLS}
PROJECT_DIRECTORY: ${PROJECT_DIRECTORY}
ENVIRONMENT: azure
SCRIPT: run-oidc-unified-tests.sh
args:
- .evergreen/run-oidc-tests-azure.sh
- name: oidc-auth-test-test-latest
commands:
- func: install dependencies
- command: subprocess.exec
type: test
params:
working_dir: src
binary: bash
env:
DRIVERS_TOOLS: ${DRIVERS_TOOLS}
PROJECT_DIRECTORY: ${PROJECT_DIRECTORY}
ENVIRONMENT: test
SCRIPT: run-oidc-prose-tests.sh
args:
- .evergreen/run-oidc-tests-test.sh
- command: subprocess.exec
type: test
params:
working_dir: src
binary: bash
env:
DRIVERS_TOOLS: ${DRIVERS_TOOLS}
PROJECT_DIRECTORY: ${PROJECT_DIRECTORY}
ENVIRONMENT: test
SCRIPT: run-oidc-unified-tests.sh
args:
- .evergreen/run-oidc-tests-test.sh
- name: oidc-auth-test-gcp-latest
commands:
- func: install dependencies
- command: subprocess.exec
type: test
params:
working_dir: src
binary: bash
env:
DRIVERS_TOOLS: ${DRIVERS_TOOLS}
PROJECT_DIRECTORY: ${PROJECT_DIRECTORY}
ENVIRONMENT: gcp
SCRIPT: run-oidc-prose-tests.sh
args:
- .evergreen/run-oidc-tests-gcp.sh
- name: test-aws-lambda-deployed
commands:
- command: expansions.update
type: setup
params:
updates:
- {key: NPM_VERSION, value: '9'}
- func: install dependencies
- command: ec2.assume_role
params:
role_arn: ${LAMBDA_AWS_ROLE_ARN}
duration_seconds: 3600
- command: subprocess.exec
params:
working_dir: src
binary: bash
add_expansions_to_env: true
env:
LAMBDA_STACK_NAME: dbx-node-lambda
TEST_LAMBDA_DIRECTORY: ${PROJECT_DIRECTORY}/test/lambda
AWS_REGION: us-east-1
args:
- ${DRIVERS_TOOLS}/.evergreen/aws_lambda/run-deployed-lambda-aws-tests.sh
- name: test-search-index-helpers
commands:
- command: expansions.update
type: setup
params:
updates:
- {key: NODE_LTS_VERSION, value: '20'}
- func: install dependencies
- command: subprocess.exec
type: test
params:
working_dir: src
binary: bash
add_expansions_to_env: true
args:
- .evergreen/run-search-index-management-tests.sh
- name: test-latest-server
tags:
- latest
- server
commands:
- command: expansions.update
type: setup
params:
updates:
- {key: VERSION, value: latest}
- {key: TOPOLOGY, value: server}
- {key: AUTH, value: auth}
- func: install dependencies
- func: bootstrap mongo-orchestration
- func: run tests
- name: test-latest-replica_set
tags:
- latest
- replica_set
commands:
- command: expansions.update
type: setup
params:
updates:
- {key: VERSION, value: latest}
- {key: TOPOLOGY, value: replica_set}
- {key: AUTH, value: auth}
- func: install dependencies
- func: bootstrap mongo-orchestration
- func: run tests
- name: test-latest-sharded_cluster
tags:
- latest
- sharded_cluster
commands:
- command: expansions.update
type: setup
params:
updates:
- {key: VERSION, value: latest}
- {key: TOPOLOGY, value: sharded_cluster}
- {key: AUTH, value: auth}
- func: install dependencies
- func: bootstrap mongo-orchestration
- func: run tests
- name: test-rapid-server
tags:
- rapid
- server
commands:
- command: expansions.update
type: setup
params:
updates:
- {key: VERSION, value: rapid}
- {key: TOPOLOGY, value: server}
- {key: AUTH, value: auth}
- func: install dependencies
- func: bootstrap mongo-orchestration
- func: run tests
- name: test-rapid-replica_set
tags:
- rapid
- replica_set
commands:
- command: expansions.update
type: setup
params:
updates:
- {key: VERSION, value: rapid}
- {key: TOPOLOGY, value: replica_set}
- {key: AUTH, value: auth}
- func: install dependencies
- func: bootstrap mongo-orchestration
- func: run tests
- name: test-rapid-sharded_cluster
tags:
- rapid
- sharded_cluster
commands:
- command: expansions.update
type: setup
params:
updates:
- {key: VERSION, value: rapid}
- {key: TOPOLOGY, value: sharded_cluster}
- {key: AUTH, value: auth}
- func: install dependencies
- func: bootstrap mongo-orchestration