Skip to content

Commit a2b01c6

Browse files
committed
add files
1 parent b2fa299 commit a2b01c6

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

.evergreen/run-gcpkms-test.sh

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,19 @@ export GCPKMS_ZONE=${GCPKMS_ZONE}
1010
export GCPKMS_INSTANCENAME=${GCPKMS_INSTANCENAME}
1111
export LIBMONGOCRYPT_URL=https://s3.amazonaws.com/mciuploads/libmongocrypt/debian11/master/latest/libmongocrypt.tar.gz
1212
SKIP_SERVERS=1 bash $HERE/setup-encryption.sh
13-
tar czf /tmp/mongo-python-driver.tgz .
14-
GCPKMS_SRC=/tmp/mongo-python-driver.tgz GCPKMS_DST=$GCPKMS_INSTANCENAME: $DRIVERS_TOOLS/.evergreen/csfle/gcpkms/copy-file.sh
13+
# Set up the remote files to test.
14+
git add .
15+
git commit -m "add files" || true
16+
git archive -o /tmp/mongo-python-driver.tar HEAD
17+
tar -rf /tmp/mongo-python-driver.tar libmongocrypt
18+
tar -rf /tmp/mongo-python-driver.tar secrets-export.sh
19+
gzip -f /tmp/mongo-python-driver.tar
20+
GCPKMS_SRC=/tmp/mongo-python-driver.tar.gz GCPKMS_DST=$GCPKMS_INSTANCENAME: $DRIVERS_TOOLS/.evergreen/csfle/gcpkms/copy-file.sh
1521
echo "Copying files ... end"
1622
echo "Untarring file ... begin"
17-
GCPKMS_CMD="tar xf mongo-python-driver.tgz" $DRIVERS_TOOLS/.evergreen/csfle/gcpkms/run-command.sh
23+
GCPKMS_CMD="tar xf mongo-python-driver.tar.gz" $DRIVERS_TOOLS/.evergreen/csfle/gcpkms/run-command.sh
1824
echo "Untarring file ... end"
1925
echo "Running test ... begin"
20-
GCPKMS_CMD="rm -rf .venv .evergreen/scripts/env.sh && SUCCESS=true TEST_FLE_GCP_AUTO=1 ./.evergreen/just.sh test-eg" $DRIVERS_TOOLS/.evergreen/csfle/gcpkms/run-command.sh
26+
GCPKMS_CMD="SUCCESS=true TEST_FLE_GCP_AUTO=1 ./.evergreen/just.sh test-eg" $DRIVERS_TOOLS/.evergreen/csfle/gcpkms/run-command.sh
2127
echo "Running test ... end"
2228
bash $HERE/teardown-encryption.sh

testgcpkms-expansions.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
GCPKMS_GCLOUD: gcloud
2+
GCPKMS_INSTANCENAME: instancename-28994
3+
GCPKMS_PROJECT: devprod-drivers
4+
GCPKMS_ZONE: us-east1-b

0 commit comments

Comments
 (0)