@@ -434,7 +434,7 @@ functions:
434
434
working_dir : " src"
435
435
script : |
436
436
${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
438
438
439
439
" run serverless tests " :
440
440
- command : shell.exec
@@ -527,6 +527,54 @@ task_groups:
527
527
- " test-serverless"
528
528
529
529
- 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
530
578
setup_group_can_fail_task : true
531
579
setup_group_timeout_secs : 1800 # 30 minutes
532
580
setup_group :
@@ -599,6 +647,8 @@ task_groups:
599
647
task_id="${task_id}" \
600
648
execution="${execution}" \
601
649
$DRIVERS_TOOLS/.evergreen/atlas/setup-atlas-cluster.sh
650
+
651
+ echo "MONGODB_URI=${MONGODB_URI}"
602
652
- command : expansions.update
603
653
params :
604
654
file : src/atlas-expansion.yml
@@ -827,6 +877,7 @@ tasks:
827
877
script : |
828
878
${PREPARE_SHELL}
829
879
export MONGODB_URI=${MONGODB_URI}
880
+ export FUNCTION_NAME="ruby-driver-lambda"
830
881
.evergreen/run-tests-deployed-lambda.sh
831
882
env :
832
883
TEST_LAMBDA_DIRECTORY : ${PROJECT_DIRECTORY}/spec/faas/ruby-sam-app
@@ -1575,7 +1626,9 @@ buildvariants:
1575
1626
1576
1627
- matrix_name : aws-auth-regular
1577
1628
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 ]
1579
1632
ruby : " ruby-3.2"
1580
1633
topology : standalone
1581
1634
# needs the latest_5x_mdb because run-tests.sh uses `mongo` to configure
@@ -1805,15 +1858,15 @@ buildvariants:
1805
1858
os : rhel8
1806
1859
display_name : " Atlas (Full)"
1807
1860
tasks :
1808
- - name : testatlas_task_group
1861
+ - name : testatlas_full_task_group
1809
1862
1810
1863
- matrix_name : " atlas"
1811
1864
matrix_spec :
1812
1865
ruby : ["ruby-3.2", "ruby-3.1", "ruby-3.0", "ruby-2.7", "jruby-9.4", "jruby-9.3"]
1813
1866
os : rhel8
1814
1867
display_name : " Atlas tests ${ruby}"
1815
1868
tasks :
1816
- - name : test-atlas
1869
+ - name : testatlas_task_group
1817
1870
1818
1871
# Commented out, pending RUBY-3414
1819
1872
# - matrix_name: "serverless"
0 commit comments