@@ -47,9 +47,12 @@ functions:
4747
4848 export DRIVERS_TOOLS="$(pwd)/../drivers-tools"
4949
50- # Python has cygwin path problems on Windows. Detect prospective mongo-orchestration home directory
5150 if [ "Windows_NT" = "$OS" ]; then # Magic variable in cygwin
51+ # Python has cygwin path problems on Windows. Detect prospective mongo-orchestration home directory
5252 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
5356 fi
5457
5558 export MONGO_ORCHESTRATION_HOME="$DRIVERS_TOOLS/.evergreen/orchestration"
@@ -80,6 +83,21 @@ functions:
8083 # See what we've done
8184 cat expansion.yml
8285
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+
83101 # Load the expansion file to make an evergreen variable with the current unique version
84102 - command : expansions.update
85103 params :
@@ -282,13 +300,7 @@ functions:
282300 working_dir : mongo-csharp-driver
283301 script : |
284302 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}
292304 . ./evergreen/set-virtualenv.sh
293305 . ./evergreen/set-temp-fle-aws-creds.sh
294306 ${PREPARE_SHELL}
@@ -310,23 +322,19 @@ functions:
310322 OS=${OS} \
311323 evergreen/cleanup-test-resources.sh
312324
313- run-csfle-tests- with-mocked-kms :
325+ run-csfle-with-mocked-kms-tests :
314326 - command : shell.exec
315327 type : test
316328 params :
317329 working_dir : " mongo-csharp-driver"
318330 script : |
319331 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}
327333 export KMS_MOCK_SERVERS_ENABLED=true
328334 ${PREPARE_SHELL}
329335 set +o xtrace
336+ OS=${OS} \
337+ . ./evergreen/fetch-crypt_shared-library.sh
330338 OS=${OS} \
331339 evergreen/add-ca-certs.sh
332340 AUTH=${AUTH} \
@@ -341,20 +349,14 @@ functions:
341349 OS=${OS} \
342350 evergreen/cleanup-test-resources.sh
343351
344- run-mongocryptd-tests :
352+ run-csfle-with- mongocryptd-tests :
345353 - command : shell.exec
346354 type : test
347355 params :
348356 working_dir : mongo-csharp-driver
349357 script : |
350358 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}
358360 . ./evergreen/set-virtualenv.sh
359361 . ./evergreen/set-temp-fle-aws-creds.sh
360362 ${PREPARE_SHELL}
@@ -368,8 +370,7 @@ functions:
368370 COMPRESSOR=${COMPRESSOR} \
369371 CLIENT_PEM=${DRIVERS_TOOLS}/.evergreen/x509gen/client.pem \
370372 REQUIRE_API_VERSION=${REQUIRE_API_VERSION} \
371- TEST_MONGOCRYPTD="true" \
372- TARGET="TestMongocryptd" \
373+ TARGET="TestCsfleWithMongocryptd" \
373374 FRAMEWORK=${FRAMEWORK} \
374375 evergreen/run-tests.sh
375376 echo "Skipping certificate removal..."
@@ -872,51 +873,51 @@ tasks:
872873 vars :
873874 FRAMEWORK : netstandard21
874875
875- - name : test-mongocryptd-net472
876+ - name : test-csfle-with- mongocryptd-net472
876877 commands :
877878 - func : bootstrap-mongo-orchestration
878- - func : run-mongocryptd-tests
879+ - func : run-csfle-with- mongocryptd-tests
879880 vars :
880881 FRAMEWORK : net472
881882
882- - name : test-mongocryptd-netstandard20
883+ - name : test-csfle-with- mongocryptd-netstandard20
883884 commands :
884885 - func : bootstrap-mongo-orchestration
885- - func : run-mongocryptd-tests
886+ - func : run-csfle-with- mongocryptd-tests
886887 vars :
887888 FRAMEWORK : netstandard20
888889
889- - name : test-mongocryptd-netstandard21
890+ - name : test-csfle-with- mongocryptd-netstandard21
890891 commands :
891892 - func : bootstrap-mongo-orchestration
892- - func : run-mongocryptd-tests
893+ - func : run-csfle-with- mongocryptd-tests
893894 vars :
894895 FRAMEWORK : netstandard21
895896
896- - name : test-kms-tls -mocked-net472
897+ - name : test-csfle-with -mocked-kms-tls -net472
897898 commands :
898899 - func : start-kms-mock-servers
899900 - func : start-kms-kmip-server
900901 - func : bootstrap-mongo-orchestration
901- - func : run-csfle-tests- with-mocked-kms
902+ - func : run-csfle-with-mocked-kms-tests
902903 vars :
903904 FRAMEWORK : net472
904905
905- - name : test-kms-tls -mocked-netstandard20
906+ - name : test-csfle-with -mocked-kms-tls -netstandard20
906907 commands :
907908 - func : start-kms-mock-servers
908909 - func : start-kms-kmip-server
909910 - func : bootstrap-mongo-orchestration
910- - func : run-csfle-tests- with-mocked-kms
911+ - func : run-csfle-with-mocked-kms-tests
911912 vars :
912913 FRAMEWORK : netstandard20
913914
914- - name : test-kms-tls -mocked-netstandard21
915+ - name : test-csfle-with -mocked-kms-tls -netstandard21
915916 commands :
916917 - func : start-kms-mock-servers
917918 - func : start-kms-kmip-server
918919 - func : bootstrap-mongo-orchestration
919- - func : run-csfle-tests- with-mocked-kms
920+ - func : run-csfle-with-mocked-kms-tests
920921 vars :
921922 FRAMEWORK : netstandard21
922923
@@ -1721,40 +1722,40 @@ buildvariants:
17211722 matrix_spec : { os: "windows-64", ssl: "nossl", version: [ "5.0", "6.0", "rapid", "latest" ], topology: ["standalone"] }
17221723 display_name : " CSFLE Mocked KMS ${version} ${os}"
17231724 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
17271728
17281729- matrix_name : " csfle-with-mocked-kms-tests-linux"
17291730 matrix_spec : { os: "ubuntu-1804", ssl: "nossl", version: [ "5.0", "6.0", "rapid", "latest" ], topology: ["standalone"] }
17301731 display_name : " CSFLE Mocked KMS ${version} ${os}"
17311732 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
17341735
17351736- matrix_name : " csfle-with-mocked-kms-tests-macOS"
17361737 matrix_spec : { os: "macos-1015", ssl: "nossl", version: [ "5.0", "6.0", "rapid", "latest" ], topology: ["standalone"] }
17371738 display_name : " CSFLE Mocked KMS ${version} ${os}"
17381739 tasks :
1739- - name : test-kms-tls -mocked-netstandard21
1740+ - name : test-csfle-with -mocked-kms-tls -netstandard21
17401741
1741- - matrix_name : " csfle1 -windows"
1742+ - matrix_name : " csfle-with-mongocryptd -windows"
17421743 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}"
17441745 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
17481749
1749- - matrix_name : " csfle1 -linux"
1750+ - matrix_name : " csfle-with-mongocryptd -linux"
17501751 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}"
17521753 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
17551756
1756- - matrix_name : " csfle1 -macOS"
1757+ - matrix_name : " csfle-with-mongocryptd -macOS"
17571758 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}"
17591760 tasks :
1760- - name : test-mongocryptd-netstandard21
1761+ - name : test-csfle-with- mongocryptd-netstandard21
0 commit comments