@@ -47,9 +47,12 @@ functions:
47
47
48
48
export DRIVERS_TOOLS="$(pwd)/../drivers-tools"
49
49
50
- # Python has cygwin path problems on Windows. Detect prospective mongo-orchestration home directory
51
50
if [ "Windows_NT" = "$OS" ]; then # Magic variable in cygwin
51
+ # Python has cygwin path problems on Windows. Detect prospective mongo-orchestration home directory
52
52
export DRIVERS_TOOLS=$(cygpath -m $DRIVERS_TOOLS)
53
+ else
54
+ # non windows OSs don't have dotnet in the PATH
55
+ export PATH=$PATH:/usr/share/dotnet
53
56
fi
54
57
55
58
export MONGO_ORCHESTRATION_HOME="$DRIVERS_TOOLS/.evergreen/orchestration"
@@ -80,6 +83,21 @@ functions:
80
83
# See what we've done
81
84
cat expansion.yml
82
85
86
+ # Add CSFLE variables that shouldn't be output to the logs
87
+ cat <<EOT >> expansion.yml
88
+ PREPARE_CSFLE: |
89
+ set +o xtrace # Disable tracing.
90
+ export FLE_AWS_ACCESS_KEY_ID=${FLE_AWS_ACCESS_KEY_ID}
91
+ export FLE_AWS_SECRET_ACCESS_KEY=${FLE_AWS_SECRET_ACCESS_KEY}
92
+ export FLE_AZURE_TENANT_ID=${FLE_AZURE_TENANT_ID}
93
+ export FLE_AZURE_CLIENT_ID=${FLE_AZURE_CLIENT_ID}
94
+ export FLE_AZURE_CLIENT_SECRET=${FLE_AZURE_CLIENT_SECRET}
95
+ export FLE_GCP_EMAIL=${FLE_GCP_EMAIL}
96
+ export FLE_GCP_PRIVATE_KEY=${FLE_GCP_PRIVATE_KEY}
97
+ set -o xtrace # Enable tracing.
98
+ EOT
99
+ # Do not output expansion.yml contents after this point
100
+
83
101
# Load the expansion file to make an evergreen variable with the current unique version
84
102
- command : expansions.update
85
103
params :
@@ -282,13 +300,7 @@ functions:
282
300
working_dir : mongo-csharp-driver
283
301
script : |
284
302
set +x
285
- export FLE_AWS_ACCESS_KEY_ID=${FLE_AWS_ACCESS_KEY_ID}
286
- export FLE_AWS_SECRET_ACCESS_KEY=${FLE_AWS_SECRET_ACCESS_KEY}
287
- export FLE_AZURE_TENANT_ID=${FLE_AZURE_TENANT_ID}
288
- export FLE_AZURE_CLIENT_ID=${FLE_AZURE_CLIENT_ID}
289
- export FLE_AZURE_CLIENT_SECRET=${FLE_AZURE_CLIENT_SECRET}
290
- export FLE_GCP_EMAIL=${FLE_GCP_EMAIL}
291
- export FLE_GCP_PRIVATE_KEY=${FLE_GCP_PRIVATE_KEY}
303
+ ${PREPARE_CSFLE}
292
304
. ./evergreen/set-virtualenv.sh
293
305
. ./evergreen/set-temp-fle-aws-creds.sh
294
306
${PREPARE_SHELL}
@@ -310,23 +322,19 @@ functions:
310
322
OS=${OS} \
311
323
evergreen/cleanup-test-resources.sh
312
324
313
- run-csfle-tests- with-mocked-kms :
325
+ run-csfle-with-mocked-kms-tests :
314
326
- command : shell.exec
315
327
type : test
316
328
params :
317
329
working_dir : " mongo-csharp-driver"
318
330
script : |
319
331
set +x
320
- export FLE_AWS_ACCESS_KEY_ID=${FLE_AWS_ACCESS_KEY_ID}
321
- export FLE_AWS_SECRET_ACCESS_KEY=${FLE_AWS_SECRET_ACCESS_KEY}
322
- export FLE_AZURE_TENANT_ID=${FLE_AZURE_TENANT_ID}
323
- export FLE_AZURE_CLIENT_ID=${FLE_AZURE_CLIENT_ID}
324
- export FLE_AZURE_CLIENT_SECRET=${FLE_AZURE_CLIENT_SECRET}
325
- export FLE_GCP_EMAIL=${FLE_GCP_EMAIL}
326
- export FLE_GCP_PRIVATE_KEY=${FLE_GCP_PRIVATE_KEY}
332
+ ${PREPARE_CSFLE}
327
333
export KMS_MOCK_SERVERS_ENABLED=true
328
334
${PREPARE_SHELL}
329
335
set +o xtrace
336
+ OS=${OS} \
337
+ . ./evergreen/fetch-crypt_shared-library.sh
330
338
OS=${OS} \
331
339
evergreen/add-ca-certs.sh
332
340
AUTH=${AUTH} \
@@ -341,20 +349,14 @@ functions:
341
349
OS=${OS} \
342
350
evergreen/cleanup-test-resources.sh
343
351
344
- run-mongocryptd-tests :
352
+ run-csfle-with- mongocryptd-tests :
345
353
- command : shell.exec
346
354
type : test
347
355
params :
348
356
working_dir : mongo-csharp-driver
349
357
script : |
350
358
set +x
351
- export FLE_AWS_ACCESS_KEY_ID=${FLE_AWS_ACCESS_KEY_ID}
352
- export FLE_AWS_SECRET_ACCESS_KEY=${FLE_AWS_SECRET_ACCESS_KEY}
353
- export FLE_AZURE_TENANT_ID=${FLE_AZURE_TENANT_ID}
354
- export FLE_AZURE_CLIENT_ID=${FLE_AZURE_CLIENT_ID}
355
- export FLE_AZURE_CLIENT_SECRET=${FLE_AZURE_CLIENT_SECRET}
356
- export FLE_GCP_EMAIL=${FLE_GCP_EMAIL}
357
- export FLE_GCP_PRIVATE_KEY=${FLE_GCP_PRIVATE_KEY}
359
+ ${PREPARE_CSFLE}
358
360
. ./evergreen/set-virtualenv.sh
359
361
. ./evergreen/set-temp-fle-aws-creds.sh
360
362
${PREPARE_SHELL}
@@ -368,8 +370,7 @@ functions:
368
370
COMPRESSOR=${COMPRESSOR} \
369
371
CLIENT_PEM=${DRIVERS_TOOLS}/.evergreen/x509gen/client.pem \
370
372
REQUIRE_API_VERSION=${REQUIRE_API_VERSION} \
371
- TEST_MONGOCRYPTD="true" \
372
- TARGET="TestMongocryptd" \
373
+ TARGET="TestCsfleWithMongocryptd" \
373
374
FRAMEWORK=${FRAMEWORK} \
374
375
evergreen/run-tests.sh
375
376
echo "Skipping certificate removal..."
@@ -872,51 +873,51 @@ tasks:
872
873
vars :
873
874
FRAMEWORK : netstandard21
874
875
875
- - name : test-mongocryptd-net472
876
+ - name : test-csfle-with- mongocryptd-net472
876
877
commands :
877
878
- func : bootstrap-mongo-orchestration
878
- - func : run-mongocryptd-tests
879
+ - func : run-csfle-with- mongocryptd-tests
879
880
vars :
880
881
FRAMEWORK : net472
881
882
882
- - name : test-mongocryptd-netstandard20
883
+ - name : test-csfle-with- mongocryptd-netstandard20
883
884
commands :
884
885
- func : bootstrap-mongo-orchestration
885
- - func : run-mongocryptd-tests
886
+ - func : run-csfle-with- mongocryptd-tests
886
887
vars :
887
888
FRAMEWORK : netstandard20
888
889
889
- - name : test-mongocryptd-netstandard21
890
+ - name : test-csfle-with- mongocryptd-netstandard21
890
891
commands :
891
892
- func : bootstrap-mongo-orchestration
892
- - func : run-mongocryptd-tests
893
+ - func : run-csfle-with- mongocryptd-tests
893
894
vars :
894
895
FRAMEWORK : netstandard21
895
896
896
- - name : test-kms-tls -mocked-net472
897
+ - name : test-csfle-with -mocked-kms-tls -net472
897
898
commands :
898
899
- func : start-kms-mock-servers
899
900
- func : start-kms-kmip-server
900
901
- func : bootstrap-mongo-orchestration
901
- - func : run-csfle-tests- with-mocked-kms
902
+ - func : run-csfle-with-mocked-kms-tests
902
903
vars :
903
904
FRAMEWORK : net472
904
905
905
- - name : test-kms-tls -mocked-netstandard20
906
+ - name : test-csfle-with -mocked-kms-tls -netstandard20
906
907
commands :
907
908
- func : start-kms-mock-servers
908
909
- func : start-kms-kmip-server
909
910
- func : bootstrap-mongo-orchestration
910
- - func : run-csfle-tests- with-mocked-kms
911
+ - func : run-csfle-with-mocked-kms-tests
911
912
vars :
912
913
FRAMEWORK : netstandard20
913
914
914
- - name : test-kms-tls -mocked-netstandard21
915
+ - name : test-csfle-with -mocked-kms-tls -netstandard21
915
916
commands :
916
917
- func : start-kms-mock-servers
917
918
- func : start-kms-kmip-server
918
919
- func : bootstrap-mongo-orchestration
919
- - func : run-csfle-tests- with-mocked-kms
920
+ - func : run-csfle-with-mocked-kms-tests
920
921
vars :
921
922
FRAMEWORK : netstandard21
922
923
@@ -1721,40 +1722,40 @@ buildvariants:
1721
1722
matrix_spec : { os: "windows-64", ssl: "nossl", version: [ "5.0", "6.0", "rapid", "latest" ], topology: ["standalone"] }
1722
1723
display_name : " CSFLE Mocked KMS ${version} ${os}"
1723
1724
tasks :
1724
- - name : test-kms-tls -mocked-net472
1725
- - name : test-kms-tls -mocked-netstandard20
1726
- - name : test-kms-tls -mocked-netstandard21
1725
+ - name : test-csfle-with -mocked-kms-tls -net472
1726
+ - name : test-csfle-with -mocked-kms-tls -netstandard20
1727
+ - name : test-csfle-with -mocked-kms-tls -netstandard21
1727
1728
1728
1729
- matrix_name : " csfle-with-mocked-kms-tests-linux"
1729
1730
matrix_spec : { os: "ubuntu-1804", ssl: "nossl", version: [ "5.0", "6.0", "rapid", "latest" ], topology: ["standalone"] }
1730
1731
display_name : " CSFLE Mocked KMS ${version} ${os}"
1731
1732
tasks :
1732
- - name : test-kms-tls -mocked-netstandard20
1733
- - name : test-kms-tls -mocked-netstandard21
1733
+ - name : test-csfle-with -mocked-kms-tls -netstandard20
1734
+ - name : test-csfle-with -mocked-kms-tls -netstandard21
1734
1735
1735
1736
- matrix_name : " csfle-with-mocked-kms-tests-macOS"
1736
1737
matrix_spec : { os: "macos-1015", ssl: "nossl", version: [ "5.0", "6.0", "rapid", "latest" ], topology: ["standalone"] }
1737
1738
display_name : " CSFLE Mocked KMS ${version} ${os}"
1738
1739
tasks :
1739
- - name : test-kms-tls -mocked-netstandard21
1740
+ - name : test-csfle-with -mocked-kms-tls -netstandard21
1740
1741
1741
- - matrix_name : " csfle1 -windows"
1742
+ - matrix_name : " csfle-with-mongocryptd -windows"
1742
1743
matrix_spec : { os: "windows-64", ssl: "nossl", version: [ "4.2", "4.4", "5.0", "6.0", "latest" ], topology: ["replicaset"] }
1743
- display_name : " mongocryptd ${version} ${os}"
1744
+ display_name : " CSFLE with mongocryptd ${version} ${os}"
1744
1745
tasks :
1745
- - name : test-mongocryptd-net472
1746
- - name : test-mongocryptd-netstandard20
1747
- - name : test-mongocryptd-netstandard21
1746
+ - name : test-csfle-with- mongocryptd-net472
1747
+ - name : test-csfle-with- mongocryptd-netstandard20
1748
+ - name : test-csfle-with- mongocryptd-netstandard21
1748
1749
1749
- - matrix_name : " csfle1 -linux"
1750
+ - matrix_name : " csfle-with-mongocryptd -linux"
1750
1751
matrix_spec : { os: "ubuntu-1804", ssl: "nossl", version: [ "4.2", "4.4", "5.0", "6.0", "latest" ], topology: ["replicaset"] }
1751
- display_name : " mongocryptd ${version} ${os}"
1752
+ display_name : " CSFLE with mongocryptd ${version} ${os}"
1752
1753
tasks :
1753
- - name : test-mongocryptd-netstandard20
1754
- - name : test-mongocryptd-netstandard21
1754
+ - name : test-csfle-with- mongocryptd-netstandard20
1755
+ - name : test-csfle-with- mongocryptd-netstandard21
1755
1756
1756
- - matrix_name : " csfle1 -macOS"
1757
+ - matrix_name : " csfle-with-mongocryptd -macOS"
1757
1758
matrix_spec : { os: "macos-1015", ssl: "nossl", version: [ "4.2", "4.4", "5.0", "6.0", "latest" ], topology: ["replicaset"] }
1758
- display_name : " mongocryptd ${version} ${os}"
1759
+ display_name : " CSFLE with mongocryptd ${version} ${os}"
1759
1760
tasks :
1760
- - name : test-mongocryptd-netstandard21
1761
+ - name : test-csfle-with- mongocryptd-netstandard21
0 commit comments