Skip to content

Commit 27ae3a5

Browse files
gcp kms tests
1 parent 4999af8 commit 27ae3a5

File tree

3 files changed

+6
-41
lines changed

3 files changed

+6
-41
lines changed

.evergreen/config.in.yml

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1157,29 +1157,10 @@ tasks:
11571157
type: setup
11581158
params:
11591159
binary: bash
1160-
add_expansions_to_env: true
11611160
env:
11621161
DRIVERS_TOOLS: ${DRIVERS_TOOLS}
1163-
GCPKMS_GCLOUD: ${GCPKMS_GCLOUD}
1164-
GCPKMS_PROJECT: ${GCPKMS_PROJECT}
1165-
GCPKMS_ZONE: ${GCPKMS_ZONE}
1166-
GCPKMS_INSTANCENAME: ${GCPKMS_INSTANCENAME}
1167-
args:
1168-
- src/.evergreen/setup-gcp-testing.sh
1169-
# Run Mocha test over on GCE instance
1170-
- command: subprocess.exec
1171-
type: test
1172-
params:
1173-
working_dir: src
1174-
binary: bash
1175-
env:
1176-
GCPKMS_GCLOUD: ${GCPKMS_GCLOUD}
1177-
GCPKMS_PROJECT: ${GCPKMS_PROJECT}
1178-
GCPKMS_ZONE: ${GCPKMS_ZONE}
1179-
GCPKMS_INSTANCENAME: ${GCPKMS_INSTANCENAME}
1180-
GCPKMS_CMD: "env EXPECTED_GCPKMS_OUTCOME=success bash src/.evergreen/run-gcp-kms-tests.sh"
11811162
args:
1182-
- ${DRIVERS_TOOLS}/.evergreen/csfle/gcpkms/run-command.sh
1163+
- src/.evergreen/run-deployed-gcp-kms-tests.sh
11831164

11841165
- name: "test-gcpkms-fail-task"
11851166
# test-gcpkms-fail-task runs in a non-GCE environment.

.evergreen/config.yml

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1116,28 +1116,10 @@ tasks:
11161116
type: setup
11171117
params:
11181118
binary: bash
1119-
add_expansions_to_env: true
11201119
env:
11211120
DRIVERS_TOOLS: ${DRIVERS_TOOLS}
1122-
GCPKMS_GCLOUD: ${GCPKMS_GCLOUD}
1123-
GCPKMS_PROJECT: ${GCPKMS_PROJECT}
1124-
GCPKMS_ZONE: ${GCPKMS_ZONE}
1125-
GCPKMS_INSTANCENAME: ${GCPKMS_INSTANCENAME}
1126-
args:
1127-
- src/.evergreen/setup-gcp-testing.sh
1128-
- command: subprocess.exec
1129-
type: test
1130-
params:
1131-
working_dir: src
1132-
binary: bash
1133-
env:
1134-
GCPKMS_GCLOUD: ${GCPKMS_GCLOUD}
1135-
GCPKMS_PROJECT: ${GCPKMS_PROJECT}
1136-
GCPKMS_ZONE: ${GCPKMS_ZONE}
1137-
GCPKMS_INSTANCENAME: ${GCPKMS_INSTANCENAME}
1138-
GCPKMS_CMD: env EXPECTED_GCPKMS_OUTCOME=success bash src/.evergreen/run-gcp-kms-tests.sh
11391121
args:
1140-
- ${DRIVERS_TOOLS}/.evergreen/csfle/gcpkms/run-command.sh
1122+
- src/.evergreen/run-deployed-gcp-kms-tests.sh
11411123
- name: test-gcpkms-fail-task
11421124
commands:
11431125
- command: expansions.update

.evergreen/setup-gcp-testing.sh renamed to .evergreen/run-deployed-gcp-kms-tests.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#! /usr/bin/env bash
22

33
source "${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
67
if [ -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

1112
set -o errexit
1213

13-
source $DRIVERS_TOOLS/.evergreen/init-node-and-npm-env.sh
14-
1514
export GCPKMS_SRC=node-driver-source.tgz
1615
export GCPKMS_DST=$GCPKMS_INSTANCENAME:
1716

@@ -28,3 +27,6 @@ echo "decompressing node driver tar on gcp ... begin"
2827
export GCPKMS_CMD="tar -xzf $GCPKMS_SRC"
2928
"${DRIVERS_TOOLS}/.evergreen/csfle/gcpkms/run-command.sh"
3029
echo "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

0 commit comments

Comments
 (0)