File tree Expand file tree Collapse file tree 3 files changed +54
-0
lines changed Expand file tree Collapse file tree 3 files changed +54
-0
lines changed Original file line number Diff line number Diff line change @@ -512,6 +512,7 @@ task_groups:
512
512
$DRIVERS_TOOLS/.evergreen/atlas/teardown-atlas-cluster.sh
513
513
tasks :
514
514
- test-full-atlas-task
515
+ - test-aws-lambda-deployed
515
516
516
517
- name : testgcpkms_task_group
517
518
setup_group_can_fail_task : true
@@ -702,6 +703,24 @@ tasks:
702
703
export AZUREKMS_VMNAME=${AZUREKMS_VMNAME}
703
704
export AZUREKMS_PRIVATEKEYPATH="/tmp/testazurekms_private_key_file"
704
705
AZUREKMS_CMD="TEST_FLE_AZURE_AUTO=1 RVM_RUBY=ruby-3.1 FLE=helper TOPOLOGY=standalone MONGODB_VERSION=6.0 MONGO_RUBY_DRIVER_AZURE_TENANT_ID="${MONGO_RUBY_DRIVER_AZURE_TENANT_ID}" MONGO_RUBY_DRIVER_AZURE_CLIENT_ID="${MONGO_RUBY_DRIVER_AZURE_CLIENT_ID}" MONGO_RUBY_DRIVER_AZURE_CLIENT_SECRET="${MONGO_RUBY_DRIVER_AZURE_CLIENT_SECRET}" MONGO_RUBY_DRIVER_AZURE_IDENTITY_PLATFORM_ENDPOINT="${MONGO_RUBY_DRIVER_AZURE_IDENTITY_PLATFORM_ENDPOINT}" MONGO_RUBY_DRIVER_AZURE_KEY_VAULT_ENDPOINT="${testazurekms_keyvaultendpoint}" MONGO_RUBY_DRIVER_AZURE_KEY_NAME="${testazurekms_keyname}" ./.evergreen/run-tests-azure.sh" .evergreen/csfle/azurekms/run-command.sh
706
+
707
+ - name : " test-aws-lambda-deployed"
708
+ commands :
709
+ - func : " install dependencies"
710
+ - command : ec2.assume_role
711
+ params :
712
+ role_arn : ${LAMBDA_AWS_ROLE_ARN}
713
+ duration_seconds : 3600
714
+ - command : subprocess.exec
715
+ params :
716
+ working_dir : src
717
+ binary : bash
718
+ add_expansions_to_env : true
719
+ args :
720
+ - ${DRIVERS_TOOLS}/.evergreen/aws_lambda/run-deployed-lambda-aws-tests.sh
721
+ env :
722
+ TEST_LAMBDA_DIRECTORY : ${PROJECT_DIRECTORY}/spec/faas/ruby-sam-app
723
+ AWS_REGION : us-east-1
705
724
axes :
706
725
707
726
- id : preload
@@ -1689,3 +1708,11 @@ buildvariants:
1689
1708
display_name : " Atlas serverless ${ruby} single mongos"
1690
1709
tasks :
1691
1710
- name : test-serverless
1711
+
1712
+ - matrix_name : " aws-lambda"
1713
+ matrix_spec :
1714
+ ruby : " ruby-3.2"
1715
+ os : rhel8
1716
+ display_name : " AWS Lambda"
1717
+ tasks :
1718
+ - name : test-aws-lambda-deployed
Original file line number Diff line number Diff line change @@ -509,6 +509,7 @@ task_groups:
509
509
$DRIVERS_TOOLS/.evergreen/atlas/teardown-atlas-cluster.sh
510
510
tasks:
511
511
- test-full-atlas-task
512
+ - test-aws-lambda-deployed
512
513
513
514
- name: testgcpkms_task_group
514
515
setup_group_can_fail_task: true
@@ -699,3 +700,21 @@ tasks:
699
700
export AZUREKMS_VMNAME=${AZUREKMS_VMNAME}
700
701
export AZUREKMS_PRIVATEKEYPATH="/tmp/testazurekms_private_key_file"
701
702
AZUREKMS_CMD="TEST_FLE_AZURE_AUTO=1 RVM_RUBY=ruby-3.1 FLE=helper TOPOLOGY=standalone MONGODB_VERSION=6.0 MONGO_RUBY_DRIVER_AZURE_TENANT_ID="${MONGO_RUBY_DRIVER_AZURE_TENANT_ID}" MONGO_RUBY_DRIVER_AZURE_CLIENT_ID="${MONGO_RUBY_DRIVER_AZURE_CLIENT_ID}" MONGO_RUBY_DRIVER_AZURE_CLIENT_SECRET="${MONGO_RUBY_DRIVER_AZURE_CLIENT_SECRET}" MONGO_RUBY_DRIVER_AZURE_IDENTITY_PLATFORM_ENDPOINT="${MONGO_RUBY_DRIVER_AZURE_IDENTITY_PLATFORM_ENDPOINT}" MONGO_RUBY_DRIVER_AZURE_KEY_VAULT_ENDPOINT="${testazurekms_keyvaultendpoint}" MONGO_RUBY_DRIVER_AZURE_KEY_NAME="${testazurekms_keyname}" ./.evergreen/run-tests-azure.sh" .evergreen/csfle/azurekms/run-command.sh
703
+
704
+ - name: "test-aws-lambda-deployed"
705
+ commands:
706
+ - func: "install dependencies"
707
+ - command: ec2.assume_role
708
+ params:
709
+ role_arn: ${LAMBDA_AWS_ROLE_ARN}
710
+ duration_seconds: 3600
711
+ - command: subprocess.exec
712
+ params:
713
+ working_dir: src
714
+ binary: bash
715
+ add_expansions_to_env: true
716
+ args:
717
+ - ${DRIVERS_TOOLS}/.evergreen/aws_lambda/run-deployed-lambda-aws-tests.sh
718
+ env:
719
+ TEST_LAMBDA_DIRECTORY: ${PROJECT_DIRECTORY}/spec/faas/ruby-sam-app
720
+ AWS_REGION: us-east-1
Original file line number Diff line number Diff line change @@ -520,3 +520,11 @@ buildvariants:
520
520
display_name: "Atlas serverless ${ruby} single mongos"
521
521
tasks:
522
522
- name: test-serverless
523
+
524
+ - matrix_name: "aws-lambda"
525
+ matrix_spec:
526
+ ruby: <%= latest_ruby %>
527
+ os: rhel8
528
+ display_name: "AWS Lambda"
529
+ tasks:
530
+ - name: test-aws-lambda-deployed
You can’t perform that action at this time.
0 commit comments