Skip to content

Commit a5a7b89

Browse files
durranbaileympearson
authored andcommitted
test(NODE-6096): fix gcp kms tests (#4084)
1 parent 55c290a commit a5a7b89

File tree

4 files changed

+6
-25
lines changed

4 files changed

+6
-25
lines changed

.evergreen/config.in.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1269,14 +1269,8 @@ task_groups:
12691269
params:
12701270
working_dir: "src"
12711271
binary: bash
1272-
add_expansions_to_env: true
1273-
env:
1274-
testgcpkms_key_file: ${gcpkms_key_file}
1275-
GCPKMS_SERVICEACCOUNT: ${gcpkms_service_account}
1276-
GCPKMS_DRIVERS_TOOLS: ${DRIVERS_TOOLS}
1277-
GCPKMS_MACHINETYPE: "e2-standard-4"
12781272
args:
1279-
- .evergreen/setup-gcp-instance.sh
1273+
- ${DRIVERS_TOOLS}/.evergreen/csfle/gcpkms/setup.sh
12801274
- command: expansions.update
12811275
# Load the GCPKMS_GCLOUD, GCPKMS_INSTANCE, GCPKMS_REGION, and GCPKMS_ZONE expansions.
12821276
params:
@@ -1293,7 +1287,7 @@ task_groups:
12931287
GCPKMS_ZONE: ${GCPKMS_ZONE}
12941288
GCPKMS_INSTANCENAME: ${GCPKMS_INSTANCENAME}
12951289
args:
1296-
- ${DRIVERS_TOOLS}/.evergreen/csfle/gcpkms/delete-instance.sh
1290+
- ${DRIVERS_TOOLS}/.evergreen/csfle/gcpkms/teardown.sh
12971291
tasks:
12981292
- test-gcpkms-task
12991293

.evergreen/config.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3596,14 +3596,8 @@ task_groups:
35963596
params:
35973597
working_dir: src
35983598
binary: bash
3599-
add_expansions_to_env: true
3600-
env:
3601-
testgcpkms_key_file: ${gcpkms_key_file}
3602-
GCPKMS_SERVICEACCOUNT: ${gcpkms_service_account}
3603-
GCPKMS_DRIVERS_TOOLS: ${DRIVERS_TOOLS}
3604-
GCPKMS_MACHINETYPE: e2-standard-4
36053599
args:
3606-
- .evergreen/setup-gcp-instance.sh
3600+
- ${DRIVERS_TOOLS}/.evergreen/csfle/gcpkms/setup.sh
36073601
- command: expansions.update
36083602
params:
36093603
file: src/testgcpkms-expansions.yml
@@ -3618,7 +3612,7 @@ task_groups:
36183612
GCPKMS_ZONE: ${GCPKMS_ZONE}
36193613
GCPKMS_INSTANCENAME: ${GCPKMS_INSTANCENAME}
36203614
args:
3621-
- ${DRIVERS_TOOLS}/.evergreen/csfle/gcpkms/delete-instance.sh
3615+
- ${DRIVERS_TOOLS}/.evergreen/csfle/gcpkms/teardown.sh
36223616
tasks:
36233617
- test-gcpkms-task
36243618
- name: test_azurekms_task_group

.evergreen/setup-gcp-instance.sh

Lines changed: 0 additions & 9 deletions
This file was deleted.

.evergreen/setup-gcp-testing.sh

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

3+
source "${DRIVERS_TOOLS}/.evergreen/csfle/gcpkms/secrets-export.sh"
4+
35
# Assert required environment variables are present without printing them
46
if [ -z ${GCPKMS_GCLOUD+omitted} ]; then echo "GCPKMS_GCLOUD is unset" && exit 1; fi
57
if [ -z ${GCPKMS_PROJECT+omitted} ]; then echo "GCPKMS_PROJECT is unset" && exit 1; fi

0 commit comments

Comments
 (0)