Skip to content

Commit

Permalink
Fix lambda test
Browse files Browse the repository at this point in the history
  • Loading branch information
comandeo-mongo committed Jun 28, 2024
1 parent 9a261c1 commit b63d719
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .evergreen/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,8 @@ task_groups:
task_id="${task_id}" \
execution="${execution}" \
$DRIVERS_TOOLS/.evergreen/atlas/setup-atlas-cluster.sh
echo "MONGODB_URI=${MONGODB_URI}"
- command: expansions.update
params:
file: src/atlas-expansion.yml
Expand Down Expand Up @@ -875,6 +877,7 @@ tasks:
script: |
${PREPARE_SHELL}
export MONGODB_URI=${MONGODB_URI}
export FUNCTION_NAME="ruby-driver-lambda"
.evergreen/run-tests-deployed-lambda.sh
env:
TEST_LAMBDA_DIRECTORY: ${PROJECT_DIRECTORY}/spec/faas/ruby-sam-app
Expand Down
3 changes: 3 additions & 0 deletions .evergreen/config/common.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -644,6 +644,8 @@ task_groups:
task_id="${task_id}" \
execution="${execution}" \
$DRIVERS_TOOLS/.evergreen/atlas/setup-atlas-cluster.sh

echo "MONGODB_URI=${MONGODB_URI}"
- command: expansions.update
params:
file: src/atlas-expansion.yml
Expand Down Expand Up @@ -872,6 +874,7 @@ tasks:
script: |
${PREPARE_SHELL}
export MONGODB_URI=${MONGODB_URI}
export FUNCTION_NAME="ruby-driver-lambda"
.evergreen/run-tests-deployed-lambda.sh
env:
TEST_LAMBDA_DIRECTORY: ${PROJECT_DIRECTORY}/spec/faas/ruby-sam-app
Expand Down
1 change: 1 addition & 0 deletions .evergreen/run-deployed-lambda-aws-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ DRIVERS_ATLAS_LAMBDA_PASSWORD
DRIVERS_ATLAS_GROUP_ID
LAMBDA_STACK_NAME
AWS_REGION
FUNCTION_NAME
)

# Ensure that all variables required to run the test are set, otherwise throw
Expand Down
1 change: 1 addition & 0 deletions .evergreen/run-tests-deployed-lambda.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ set_env_python
set_env_ruby

export MONGODB_URI=${MONGODB_URI}
export CLUSTER_PREFIX="ruby-driver-"
export TEST_LAMBDA_DIRECTORY=`dirname "$0"`/../spec/faas/ruby-sam-app

. `dirname "$0"`/run-deployed-lambda-aws-tests.sh

0 comments on commit b63d719

Please sign in to comment.