Skip to content

Commit b63d719

Browse files
Fix lambda test
1 parent 9a261c1 commit b63d719

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

.evergreen/config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -647,6 +647,8 @@ task_groups:
647647
task_id="${task_id}" \
648648
execution="${execution}" \
649649
$DRIVERS_TOOLS/.evergreen/atlas/setup-atlas-cluster.sh
650+
651+
echo "MONGODB_URI=${MONGODB_URI}"
650652
- command: expansions.update
651653
params:
652654
file: src/atlas-expansion.yml
@@ -875,6 +877,7 @@ tasks:
875877
script: |
876878
${PREPARE_SHELL}
877879
export MONGODB_URI=${MONGODB_URI}
880+
export FUNCTION_NAME="ruby-driver-lambda"
878881
.evergreen/run-tests-deployed-lambda.sh
879882
env:
880883
TEST_LAMBDA_DIRECTORY: ${PROJECT_DIRECTORY}/spec/faas/ruby-sam-app

.evergreen/config/common.yml.erb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -644,6 +644,8 @@ task_groups:
644644
task_id="${task_id}" \
645645
execution="${execution}" \
646646
$DRIVERS_TOOLS/.evergreen/atlas/setup-atlas-cluster.sh
647+
648+
echo "MONGODB_URI=${MONGODB_URI}"
647649
- command: expansions.update
648650
params:
649651
file: src/atlas-expansion.yml
@@ -872,6 +874,7 @@ tasks:
872874
script: |
873875
${PREPARE_SHELL}
874876
export MONGODB_URI=${MONGODB_URI}
877+
export FUNCTION_NAME="ruby-driver-lambda"
875878
.evergreen/run-tests-deployed-lambda.sh
876879
env:
877880
TEST_LAMBDA_DIRECTORY: ${PROJECT_DIRECTORY}/spec/faas/ruby-sam-app

.evergreen/run-deployed-lambda-aws-tests.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ DRIVERS_ATLAS_LAMBDA_PASSWORD
2121
DRIVERS_ATLAS_GROUP_ID
2222
LAMBDA_STACK_NAME
2323
AWS_REGION
24+
FUNCTION_NAME
2425
)
2526

2627
# Ensure that all variables required to run the test are set, otherwise throw

.evergreen/run-tests-deployed-lambda.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ set_env_python
1111
set_env_ruby
1212

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

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

0 commit comments

Comments
 (0)