Skip to content

Commit fa153e5

Browse files
committed
add files
1 parent b647621 commit fa153e5

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

.evergreen/run-azurekms-test.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,16 @@ SKIP_SERVERS=1 bash $HERE/setup-encryption.sh
1111
# Set up the remote files to test.
1212
git add .
1313
git commit -m "add files" || true
14-
git archive -o /tmp/mongo-python-driver.tgz HEAD
14+
git archive -o /tmp/mongo-python-driver.tar HEAD
15+
tar -rf /tmp/mongo-python-driver.tar libmongocrypt
16+
tar -rf /tmp/mongo-python-driver.tar secrets-export.sh
17+
gzip /tmp/mongo-python-driver.tar
1518
# shellcheck disable=SC2088
16-
AZUREKMS_SRC="/tmp/mongo-python-driver.tgz" AZUREKMS_DST="~/" \
17-
$DRIVERS_TOOLS/.evergreen/csfle/azurekms/copy-file.sh
18-
AZUREKMS_SRC="$HERE/../secrets-export.sh" AZUREKMS_DST="~/" \
19+
AZUREKMS_SRC="/tmp/mongo-python-driver.tar.gz" AZUREKMS_DST="~/" \
1920
$DRIVERS_TOOLS/.evergreen/csfle/azurekms/copy-file.sh
2021
echo "Copying files ... end"
2122
echo "Untarring file ... begin"
22-
AZUREKMS_CMD="tar xf mongo-python-driver.tgz" \
23+
AZUREKMS_CMD="tar xf mongo-python-driver.tar.gz" \
2324
$DRIVERS_TOOLS/.evergreen/csfle/azurekms/run-command.sh
2425
echo "Untarring file ... end"
2526
echo "Running test ... begin"

.evergreen/run-gcpkms-test.sh

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,13 @@ 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-
# 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.tgz HEAD
13+
tar czf /tmp/mongo-python-driver.tgz .
1714
GCPKMS_SRC=/tmp/mongo-python-driver.tgz GCPKMS_DST=$GCPKMS_INSTANCENAME: $DRIVERS_TOOLS/.evergreen/csfle/gcpkms/copy-file.sh
18-
GCPKMS_SRC="$HERE/../secrets-export.sh" GCPKMS_DST=$GCPKMS_INSTANCENAME: $DRIVERS_TOOLS/.evergreen/csfle/gcpkms/copy-file.sh
1915
echo "Copying files ... end"
2016
echo "Untarring file ... begin"
2117
GCPKMS_CMD="tar xf mongo-python-driver.tgz" $DRIVERS_TOOLS/.evergreen/csfle/gcpkms/run-command.sh
2218
echo "Untarring file ... end"
2319
echo "Running test ... begin"
24-
GCPKMS_CMD="SUCCESS=true TEST_FLE_GCP_AUTO=1 bash ./.evergreen/just.sh test-eg" $DRIVERS_TOOLS/.evergreen/csfle/gcpkms/run-command.sh
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
2521
echo "Running test ... end"
2622
bash $HERE/teardown-encryption.sh

0 commit comments

Comments
 (0)