Skip to content

Commit af18c53

Browse files
authored
test(NODE-6096): fix gcp kms tests (#4084)
1 parent f1f816f commit af18c53

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
@@ -1371,14 +1371,8 @@ task_groups:
13711371
params:
13721372
working_dir: "src"
13731373
binary: bash
1374-
add_expansions_to_env: true
1375-
env:
1376-
testgcpkms_key_file: ${gcpkms_key_file}
1377-
GCPKMS_SERVICEACCOUNT: ${gcpkms_service_account}
1378-
GCPKMS_DRIVERS_TOOLS: ${DRIVERS_TOOLS}
1379-
GCPKMS_MACHINETYPE: "e2-standard-4"
13801374
args:
1381-
- .evergreen/setup-gcp-instance.sh
1375+
- ${DRIVERS_TOOLS}/.evergreen/csfle/gcpkms/setup.sh
13821376
- command: expansions.update
13831377
# Load the GCPKMS_GCLOUD, GCPKMS_INSTANCE, GCPKMS_REGION, and GCPKMS_ZONE expansions.
13841378
params:
@@ -1395,7 +1389,7 @@ task_groups:
13951389
GCPKMS_ZONE: ${GCPKMS_ZONE}
13961390
GCPKMS_INSTANCENAME: ${GCPKMS_INSTANCENAME}
13971391
args:
1398-
- ${DRIVERS_TOOLS}/.evergreen/csfle/gcpkms/delete-instance.sh
1392+
- ${DRIVERS_TOOLS}/.evergreen/csfle/gcpkms/teardown.sh
13991393
tasks:
14001394
- test-gcpkms-task
14011395

.evergreen/config.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3803,14 +3803,8 @@ task_groups:
38033803
params:
38043804
working_dir: src
38053805
binary: bash
3806-
add_expansions_to_env: true
3807-
env:
3808-
testgcpkms_key_file: ${gcpkms_key_file}
3809-
GCPKMS_SERVICEACCOUNT: ${gcpkms_service_account}
3810-
GCPKMS_DRIVERS_TOOLS: ${DRIVERS_TOOLS}
3811-
GCPKMS_MACHINETYPE: e2-standard-4
38123806
args:
3813-
- .evergreen/setup-gcp-instance.sh
3807+
- ${DRIVERS_TOOLS}/.evergreen/csfle/gcpkms/setup.sh
38143808
- command: expansions.update
38153809
params:
38163810
file: src/testgcpkms-expansions.yml
@@ -3825,7 +3819,7 @@ task_groups:
38253819
GCPKMS_ZONE: ${GCPKMS_ZONE}
38263820
GCPKMS_INSTANCENAME: ${GCPKMS_INSTANCENAME}
38273821
args:
3828-
- ${DRIVERS_TOOLS}/.evergreen/csfle/gcpkms/delete-instance.sh
3822+
- ${DRIVERS_TOOLS}/.evergreen/csfle/gcpkms/teardown.sh
38293823
tasks:
38303824
- test-gcpkms-task
38313825
- 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)