Skip to content

Commit dc068ac

Browse files
ci(NODE-5322): fix lambda handler aws test (#3725)
1 parent 6364842 commit dc068ac

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

.evergreen/config.in.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1042,15 +1042,19 @@ functions:
10421042
- command: shell.exec
10431043
type: test
10441044
params:
1045-
working_dir: "src"
1045+
working_dir: src
10461046
silent: true
1047+
shell: bash
10471048
script: |
1049+
set -ex
10481050
cd ${DRIVERS_TOOLS}/.evergreen/auth_aws
1049-
${MONGODB_BINARIES}/mongo --verbose aws_e2e_regular_aws.js
1051+
. ./activate-authawsvenv.sh
1052+
python aws_tester.py regular
10501053
cd -
10511054
cat <<EOF > "${PROJECT_DIRECTORY}/prepare_mongodb_aws.sh"
10521055
export AWS_ACCESS_KEY_ID=${iam_auth_ecs_account}
10531056
export AWS_SECRET_ACCESS_KEY=${iam_auth_ecs_secret_access_key}
1057+
export MONGODB_URI="mongodb://localhost:27017/aws?authMechanism=MONGODB-AWS"
10541058
EOF
10551059
- command: shell.exec
10561060
type: test

.evergreen/config.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -988,13 +988,17 @@ functions:
988988
params:
989989
working_dir: src
990990
silent: true
991+
shell: bash
991992
script: |
993+
set -ex
992994
cd ${DRIVERS_TOOLS}/.evergreen/auth_aws
993-
${MONGODB_BINARIES}/mongo --verbose aws_e2e_regular_aws.js
995+
. ./activate-authawsvenv.sh
996+
python aws_tester.py regular
994997
cd -
995998
cat <<EOF > "${PROJECT_DIRECTORY}/prepare_mongodb_aws.sh"
996999
export AWS_ACCESS_KEY_ID=${iam_auth_ecs_account}
9971000
export AWS_SECRET_ACCESS_KEY=${iam_auth_ecs_secret_access_key}
1001+
export MONGODB_URI="mongodb://localhost:27017/aws?authMechanism=MONGODB-AWS"
9981002
EOF
9991003
- command: shell.exec
10001004
type: test

.evergreen/prepare-shell.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ if [ ! -d "$DRIVERS_TOOLS" ]; then
3434
git clone --depth=1 "https://github.com/mongodb-labs/drivers-evergreen-tools.git" "${DRIVERS_TOOLS}"
3535
fi
3636

37+
echo "installed DRIVERS_EVERGREEN_TOOLS from commit $(git -C $DRIVERS_EVERGREEN_TOOLS rev-parse HEAD)"
38+
3739
cat <<EOT > "$MONGO_ORCHESTRATION_HOME/orchestration.config"
3840
{
3941
"releases": {

0 commit comments

Comments
 (0)