Skip to content

Commit 80b2faf

Browse files
don't even have copy of file for confusion
1 parent 09fc576 commit 80b2faf

File tree

2 files changed

+24
-21
lines changed

2 files changed

+24
-21
lines changed

.evergreen/prepare-mongodb-aws-ecs-auth.sh

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,30 @@ mkdir -p $ECS_SRC_DIR/.evergreen
1010
set -ex
1111

1212
# write test file
13-
echo "export MONGODB_AWS_SDK=$MONGODB_AWS_SDK" >>$PROJECT_DIRECTORY/.evergreen/run-mongodb-aws-ecs-test.sh
14-
echo "if [ $MONGODB_AWS_SDK = 'false' ]; then rm -rf ./node_modules/@aws-sdk/credential-providers; fi" >>$PROJECT_DIRECTORY/.evergreen/run-mongodb-aws-ecs-test.sh
15-
echo "npm run check:aws" >>$PROJECT_DIRECTORY/.evergreen/run-mongodb-aws-ecs-test.sh
13+
cat <<EOF >$PROJECT_DIRECTORY/.evergreen/run-mongodb-aws-ecs-test.sh
14+
#!/bin/bash
15+
16+
set -o xtrace # Write all commands first to stderr
17+
set -o errexit # Exit the script with error if any of the commands fail
18+
19+
export MONGODB_URI="$1"
20+
21+
tar -xzf src/src.tgz
22+
# produces src/ and drivers-tools/
23+
24+
cd src
25+
26+
source ./.evergreen/prepare-shell.sh # should not run git clone
27+
28+
# load node.js
29+
source $DRIVERS_TOOLS/.evergreen/init-node-and-npm-env.sh
30+
31+
# run the tests
32+
npm install aws4
33+
export MONGODB_AWS_SDK=$MONGODB_AWS_SDK
34+
if [ $MONGODB_AWS_SDK = 'false' ]; then rm -rf ./node_modules/@aws-sdk/credential-providers; fi
35+
npm run check:aws
36+
EOF
1637

1738
# copy test file to AWS ecs test directory
1839
cp $PROJECT_DIRECTORY/.evergreen/run-mongodb-aws-ecs-test.sh $ECS_SRC_DIR/.evergreen/

.evergreen/run-mongodb-aws-ecs-test.sh

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

0 commit comments

Comments
 (0)