File tree Expand file tree Collapse file tree 3 files changed +6
-41
lines changed
Expand file tree Collapse file tree 3 files changed +6
-41
lines changed Original file line number Diff line number Diff line change @@ -1171,29 +1171,10 @@ tasks:
11711171 type : setup
11721172 params :
11731173 binary : bash
1174- add_expansions_to_env : true
11751174 env :
11761175 DRIVERS_TOOLS : ${DRIVERS_TOOLS}
1177- GCPKMS_GCLOUD : ${GCPKMS_GCLOUD}
1178- GCPKMS_PROJECT : ${GCPKMS_PROJECT}
1179- GCPKMS_ZONE : ${GCPKMS_ZONE}
1180- GCPKMS_INSTANCENAME : ${GCPKMS_INSTANCENAME}
1181- args :
1182- - src/.evergreen/setup-gcp-testing.sh
1183- # Run Mocha test over on GCE instance
1184- - command : subprocess.exec
1185- type : test
1186- params :
1187- working_dir : src
1188- binary : bash
1189- env :
1190- GCPKMS_GCLOUD : ${GCPKMS_GCLOUD}
1191- GCPKMS_PROJECT : ${GCPKMS_PROJECT}
1192- GCPKMS_ZONE : ${GCPKMS_ZONE}
1193- GCPKMS_INSTANCENAME : ${GCPKMS_INSTANCENAME}
1194- GCPKMS_CMD : " env EXPECTED_GCPKMS_OUTCOME=success bash src/.evergreen/run-gcp-kms-tests.sh"
11951176 args :
1196- - ${DRIVERS_TOOLS} /.evergreen/csfle/gcpkms/ run-command .sh
1177+ - src /.evergreen/run-deployed-gcp-kms-tests .sh
11971178
11981179 - name : " test-gcpkms-fail-task"
11991180 # test-gcpkms-fail-task runs in a non-GCE environment.
Original file line number Diff line number Diff line change @@ -1130,28 +1130,10 @@ tasks:
11301130 type : setup
11311131 params :
11321132 binary : bash
1133- add_expansions_to_env : true
11341133 env :
11351134 DRIVERS_TOOLS : ${DRIVERS_TOOLS}
1136- GCPKMS_GCLOUD : ${GCPKMS_GCLOUD}
1137- GCPKMS_PROJECT : ${GCPKMS_PROJECT}
1138- GCPKMS_ZONE : ${GCPKMS_ZONE}
1139- GCPKMS_INSTANCENAME : ${GCPKMS_INSTANCENAME}
1140- args :
1141- - src/.evergreen/setup-gcp-testing.sh
1142- - command : subprocess.exec
1143- type : test
1144- params :
1145- working_dir : src
1146- binary : bash
1147- env :
1148- GCPKMS_GCLOUD : ${GCPKMS_GCLOUD}
1149- GCPKMS_PROJECT : ${GCPKMS_PROJECT}
1150- GCPKMS_ZONE : ${GCPKMS_ZONE}
1151- GCPKMS_INSTANCENAME : ${GCPKMS_INSTANCENAME}
1152- GCPKMS_CMD : env EXPECTED_GCPKMS_OUTCOME=success bash src/.evergreen/run-gcp-kms-tests.sh
11531135 args :
1154- - ${DRIVERS_TOOLS} /.evergreen/csfle/gcpkms/ run-command .sh
1136+ - src /.evergreen/run-deployed-gcp-kms-tests .sh
11551137 - name : test-gcpkms-fail-task
11561138 commands :
11571139 - command : expansions.update
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
33source " ${DRIVERS_TOOLS} /.evergreen/csfle/gcpkms/secrets-export.sh"
4+ source $DRIVERS_TOOLS /.evergreen/init-node-and-npm-env.sh
45
56# Assert required environment variables are present without printing them
67if [ -z ${GCPKMS_GCLOUD+omitted} ]; then echo " GCPKMS_GCLOUD is unset" && exit 1; fi
@@ -10,8 +11,6 @@ if [ -z ${GCPKMS_INSTANCENAME+omitted} ]; then echo "GCPKMS_INSTANCENAME is unse
1011
1112set -o errexit
1213
13- source $DRIVERS_TOOLS /.evergreen/init-node-and-npm-env.sh
14-
1514export GCPKMS_SRC=node-driver-source.tgz
1615export GCPKMS_DST=$GCPKMS_INSTANCENAME :
1716
@@ -28,3 +27,6 @@ echo "decompressing node driver tar on gcp ... begin"
2827export GCPKMS_CMD=" tar -xzf $GCPKMS_SRC "
2928" ${DRIVERS_TOOLS} /.evergreen/csfle/gcpkms/run-command.sh"
3029echo " decompressing node driver tar on gcp ... end"
30+
31+ export GCPKMS_CMD=" env EXPECTED_GCPKMS_OUTCOME=success bash src/.evergreen/run-gcp-kms-tests.sh"
32+ bash ${DRIVERS_TOOLS} /.evergreen/csfle/gcpkms/run-command.sh
You can’t perform that action at this time.
0 commit comments