@@ -434,7 +434,7 @@ functions:
434434 working_dir : " src"
435435 script : |
436436 ${PREPARE_SHELL}
437- AUTH=${AUTH} SSL=${SSL} TOPOLOGY=${TOPOLOGY} RVM_RUBY= "${RVM_RUBY}" ATLAS_REPLICA_SET_URI=${atlas_replica_set_uri} ATLAS_SHARDED_URI=${atlas_sharded_uri} ATLAS_FREE_TIER_URI=${atlas_free_tier_uri} ATLAS_TLS11_URI=${atlas_tls11_uri} ATLAS_TLS12_URI=${atlas_tls12_uri} ATLAS_SERVERLESS_URI=${atlas_serverless_uri} ATLAS_SERVERLESS_LB_URI=${atlas_serverless_lb_uri} .evergreen/run-tests-atlas.sh
437+ MONGODB_URI= "${MONGODB_URI}" .evergreen/run-tests-atlas.sh
438438
439439 " run serverless tests " :
440440 - command : shell.exec
@@ -527,6 +527,54 @@ task_groups:
527527 - " test-serverless"
528528
529529 - name : testatlas_task_group
530+ setup_group_can_fail_task : true
531+ setup_group_timeout_secs : 1800 # 30 minutes
532+ setup_group :
533+ - func : fetch source
534+ - func : create expansions
535+ - command : shell.exec
536+ params :
537+ shell : " bash"
538+ working_dir : " src"
539+ script : |
540+ ${PREPARE_SHELL}
541+
542+ echo "Setting up Atlas cluster"
543+
544+ DRIVERS_ATLAS_PUBLIC_API_KEY="${DRIVERS_ATLAS_PUBLIC_API_KEY}" \
545+ DRIVERS_ATLAS_PRIVATE_API_KEY="${DRIVERS_ATLAS_PRIVATE_API_KEY}" \
546+ DRIVERS_ATLAS_GROUP_ID="${DRIVERS_ATLAS_GROUP_ID}" \
547+ DRIVERS_ATLAS_LAMBDA_USER="${DRIVERS_ATLAS_LAMBDA_USER}" \
548+ DRIVERS_ATLAS_LAMBDA_PASSWORD="${DRIVERS_ATLAS_LAMBDA_PASSWORD}" \
549+ LAMBDA_STACK_NAME="dbx-ruby-lambda" \
550+ MONGODB_VERSION="7.0" \
551+ task_id="${task_id}" \
552+ execution="${execution}" \
553+ $DRIVERS_TOOLS/.evergreen/atlas/setup-atlas-cluster.sh
554+
555+ echo "MONGODB_URI=${MONGODB_URI}"
556+ - command : expansions.update
557+ params :
558+ file : src/atlas-expansion.yml
559+ teardown_group :
560+ - command : shell.exec
561+ params :
562+ shell : " bash"
563+ working_dir : " src"
564+ script : |
565+ ${PREPARE_SHELL}
566+
567+ DRIVERS_ATLAS_PUBLIC_API_KEY="${DRIVERS_ATLAS_PUBLIC_API_KEY}" \
568+ DRIVERS_ATLAS_PRIVATE_API_KEY="${DRIVERS_ATLAS_PRIVATE_API_KEY}" \
569+ DRIVERS_ATLAS_GROUP_ID="${DRIVERS_ATLAS_GROUP_ID}" \
570+ LAMBDA_STACK_NAME="dbx-ruby-lambda" \
571+ task_id="${task_id}" \
572+ execution="${execution}" \
573+ $DRIVERS_TOOLS/.evergreen/atlas/teardown-atlas-cluster.sh
574+ tasks :
575+ - test-atlas
576+
577+ - name : testatlas_full_task_group
530578 setup_group_can_fail_task : true
531579 setup_group_timeout_secs : 1800 # 30 minutes
532580 setup_group :
@@ -599,6 +647,8 @@ task_groups:
599647 task_id="${task_id}" \
600648 execution="${execution}" \
601649 $DRIVERS_TOOLS/.evergreen/atlas/setup-atlas-cluster.sh
650+
651+ echo "MONGODB_URI=${MONGODB_URI}"
602652 - command : expansions.update
603653 params :
604654 file : src/atlas-expansion.yml
@@ -827,6 +877,7 @@ tasks:
827877 script : |
828878 ${PREPARE_SHELL}
829879 export MONGODB_URI=${MONGODB_URI}
880+ export FUNCTION_NAME="ruby-driver-lambda"
830881 .evergreen/run-tests-deployed-lambda.sh
831882 env :
832883 TEST_LAMBDA_DIRECTORY : ${PROJECT_DIRECTORY}/spec/faas/ruby-sam-app
@@ -1575,7 +1626,9 @@ buildvariants:
15751626
15761627 - matrix_name : aws-auth-regular
15771628 matrix_spec :
1578- auth-and-ssl : [ aws-regular, aws-assume-role, aws-ec2, aws-ecs, aws-web-identity ]
1629+ # https://jira.mongodb.org/browse/RUBY-3311
1630+ # auth-and-ssl: [ aws-regular, aws-assume-role, aws-ec2, aws-ecs, aws-web-identity ]
1631+ auth-and-ssl : [ aws-regular, aws-assume-role, aws-ecs, aws-web-identity ]
15791632 ruby : " ruby-3.2"
15801633 topology : standalone
15811634 # needs the latest_5x_mdb because run-tests.sh uses `mongo` to configure
@@ -1805,15 +1858,15 @@ buildvariants:
18051858 os : rhel8
18061859 display_name : " Atlas (Full)"
18071860 tasks :
1808- - name : testatlas_task_group
1861+ - name : testatlas_full_task_group
18091862
18101863 - matrix_name : " atlas"
18111864 matrix_spec :
18121865 ruby : ["ruby-3.2", "ruby-3.1", "ruby-3.0", "ruby-2.7", "jruby-9.4", "jruby-9.3"]
18131866 os : rhel8
18141867 display_name : " Atlas tests ${ruby}"
18151868 tasks :
1816- - name : test-atlas
1869+ - name : testatlas_task_group
18171870
18181871# Commented out, pending RUBY-3414
18191872# - matrix_name: "serverless"
0 commit comments