From b63d719e9a6dd327a2975da3465f9abbde7783b6 Mon Sep 17 00:00:00 2001 From: Dmitry Rybakov Date: Thu, 27 Jun 2024 16:30:25 +0200 Subject: [PATCH] Fix lambda test --- .evergreen/config.yml | 3 +++ .evergreen/config/common.yml.erb | 3 +++ .evergreen/run-deployed-lambda-aws-tests.sh | 1 + .evergreen/run-tests-deployed-lambda.sh | 1 + 4 files changed, 8 insertions(+) diff --git a/.evergreen/config.yml b/.evergreen/config.yml index f816f565d8..e72def5616 100644 --- a/.evergreen/config.yml +++ b/.evergreen/config.yml @@ -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 @@ -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 diff --git a/.evergreen/config/common.yml.erb b/.evergreen/config/common.yml.erb index 51b226c3da..cacba6b5aa 100644 --- a/.evergreen/config/common.yml.erb +++ b/.evergreen/config/common.yml.erb @@ -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 @@ -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 diff --git a/.evergreen/run-deployed-lambda-aws-tests.sh b/.evergreen/run-deployed-lambda-aws-tests.sh index 32eebfbf2b..3860563d18 100755 --- a/.evergreen/run-deployed-lambda-aws-tests.sh +++ b/.evergreen/run-deployed-lambda-aws-tests.sh @@ -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 diff --git a/.evergreen/run-tests-deployed-lambda.sh b/.evergreen/run-tests-deployed-lambda.sh index 9b5d01d526..2d587d12db 100755 --- a/.evergreen/run-tests-deployed-lambda.sh +++ b/.evergreen/run-tests-deployed-lambda.sh @@ -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