Skip to content

Commit

Permalink
ci(NODE-5322): fix lambda handler aws test (#3725)
Browse files Browse the repository at this point in the history
  • Loading branch information
baileympearson authored Jun 14, 2023
1 parent 6364842 commit dc068ac
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .evergreen/config.in.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1042,15 +1042,19 @@ functions:
- command: shell.exec
type: test
params:
working_dir: "src"
working_dir: src
silent: true
shell: bash
script: |
set -ex
cd ${DRIVERS_TOOLS}/.evergreen/auth_aws
${MONGODB_BINARIES}/mongo --verbose aws_e2e_regular_aws.js
. ./activate-authawsvenv.sh
python aws_tester.py regular
cd -
cat <<EOF > "${PROJECT_DIRECTORY}/prepare_mongodb_aws.sh"
export AWS_ACCESS_KEY_ID=${iam_auth_ecs_account}
export AWS_SECRET_ACCESS_KEY=${iam_auth_ecs_secret_access_key}
export MONGODB_URI="mongodb://localhost:27017/aws?authMechanism=MONGODB-AWS"
EOF
- command: shell.exec
type: test
Expand Down
6 changes: 5 additions & 1 deletion .evergreen/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -988,13 +988,17 @@ functions:
params:
working_dir: src
silent: true
shell: bash
script: |
set -ex
cd ${DRIVERS_TOOLS}/.evergreen/auth_aws
${MONGODB_BINARIES}/mongo --verbose aws_e2e_regular_aws.js
. ./activate-authawsvenv.sh
python aws_tester.py regular
cd -
cat <<EOF > "${PROJECT_DIRECTORY}/prepare_mongodb_aws.sh"
export AWS_ACCESS_KEY_ID=${iam_auth_ecs_account}
export AWS_SECRET_ACCESS_KEY=${iam_auth_ecs_secret_access_key}
export MONGODB_URI="mongodb://localhost:27017/aws?authMechanism=MONGODB-AWS"
EOF
- command: shell.exec
type: test
Expand Down
2 changes: 2 additions & 0 deletions .evergreen/prepare-shell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ if [ ! -d "$DRIVERS_TOOLS" ]; then
git clone --depth=1 "https://github.com/mongodb-labs/drivers-evergreen-tools.git" "${DRIVERS_TOOLS}"
fi

echo "installed DRIVERS_EVERGREEN_TOOLS from commit $(git -C $DRIVERS_EVERGREEN_TOOLS rev-parse HEAD)"

cat <<EOT > "$MONGO_ORCHESTRATION_HOME/orchestration.config"
{
"releases": {
Expand Down

0 comments on commit dc068ac

Please sign in to comment.