Skip to content

Commit

Permalink
test(NODE-5731): add serverless proxy testing (#4003)
Browse files Browse the repository at this point in the history
Co-authored-by: Alena Khineika <alena.khineika@gmail.com>
  • Loading branch information
durran and alenakhineika authored Feb 28, 2024
1 parent 1ca6269 commit 99a0059
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 4 deletions.
16 changes: 14 additions & 2 deletions .evergreen/config.in.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1327,8 +1327,14 @@ task_groups:
script: |
${PREPARE_SHELL}
set +o xtrace
if [[ -n "${USE_SERVERLESS_PROXY}" ]];
then
export SERVERLESS_GROUP="${PROXY_SERVERLESS_DRIVERS_GROUP}"
else
export SERVERLESS_GROUP="${SERVERLESS_DRIVERS_GROUP}"
fi
LOADBALANCED=ON \
SERVERLESS_DRIVERS_GROUP=${SERVERLESS_DRIVERS_GROUP} \
SERVERLESS_DRIVERS_GROUP=${SERVERLESS_GROUP} \
SERVERLESS_API_PUBLIC_KEY=${SERVERLESS_API_PUBLIC_KEY} \
SERVERLESS_API_PRIVATE_KEY=${SERVERLESS_API_PRIVATE_KEY} \
bash ${DRIVERS_TOOLS}/.evergreen/serverless/create-instance.sh
Expand All @@ -1342,7 +1348,13 @@ task_groups:
script: |
${PREPARE_SHELL}
set +o xtrace
SERVERLESS_DRIVERS_GROUP=${SERVERLESS_DRIVERS_GROUP} \
if [[ -n "${USE_SERVERLESS_PROXY}" ]];
then
export SERVERLESS_GROUP="${PROXY_SERVERLESS_DRIVERS_GROUP}"
else
export SERVERLESS_GROUP="${SERVERLESS_DRIVERS_GROUP}"
fi
SERVERLESS_DRIVERS_GROUP=${SERVERLESS_GROUP} \
SERVERLESS_API_PUBLIC_KEY=${SERVERLESS_API_PUBLIC_KEY} \
SERVERLESS_API_PRIVATE_KEY=${SERVERLESS_API_PRIVATE_KEY} \
SERVERLESS_INSTANCE_NAME=${SERVERLESS_INSTANCE_NAME} \
Expand Down
25 changes: 23 additions & 2 deletions .evergreen/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3722,8 +3722,14 @@ task_groups:
script: |
${PREPARE_SHELL}
set +o xtrace
if [[ -n "${USE_SERVERLESS_PROXY}" ]];
then
export SERVERLESS_GROUP="${PROXY_SERVERLESS_DRIVERS_GROUP}"
else
export SERVERLESS_GROUP="${SERVERLESS_DRIVERS_GROUP}"
fi
LOADBALANCED=ON \
SERVERLESS_DRIVERS_GROUP=${SERVERLESS_DRIVERS_GROUP} \
SERVERLESS_DRIVERS_GROUP=${SERVERLESS_GROUP} \
SERVERLESS_API_PUBLIC_KEY=${SERVERLESS_API_PUBLIC_KEY} \
SERVERLESS_API_PRIVATE_KEY=${SERVERLESS_API_PRIVATE_KEY} \
bash ${DRIVERS_TOOLS}/.evergreen/serverless/create-instance.sh
Expand All @@ -3737,7 +3743,13 @@ task_groups:
script: |
${PREPARE_SHELL}
set +o xtrace
SERVERLESS_DRIVERS_GROUP=${SERVERLESS_DRIVERS_GROUP} \
if [[ -n "${USE_SERVERLESS_PROXY}" ]];
then
export SERVERLESS_GROUP="${PROXY_SERVERLESS_DRIVERS_GROUP}"
else
export SERVERLESS_GROUP="${SERVERLESS_DRIVERS_GROUP}"
fi
SERVERLESS_DRIVERS_GROUP=${SERVERLESS_GROUP} \
SERVERLESS_API_PUBLIC_KEY=${SERVERLESS_API_PUBLIC_KEY} \
SERVERLESS_API_PRIVATE_KEY=${SERVERLESS_API_PRIVATE_KEY} \
SERVERLESS_INSTANCE_NAME=${SERVERLESS_INSTANCE_NAME} \
Expand Down Expand Up @@ -4373,6 +4385,15 @@ buildvariants:
NPM_VERSION: 9
tasks:
- serverless_task_group
- name: rhel8-test-serverless-proxy
display_name: Serverless Proxy Test
run_on: rhel80-large
expansions:
NODE_LTS_VERSION: 16
NPM_VERSION: 9
USE_SERVERLESS_PROXY: true
tasks:
- serverless_task_group
- name: rhel8-test-gcp-kms
display_name: GCP KMS Test
run_on: debian11-small
Expand Down
12 changes: 12 additions & 0 deletions .evergreen/generate_evergreen_tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -695,6 +695,18 @@ BUILD_VARIANTS.push({
tasks: ['serverless_task_group']
});

BUILD_VARIANTS.push({
name: 'rhel8-test-serverless-proxy',
display_name: 'Serverless Proxy Test',
run_on: DEFAULT_OS,
expansions: {
NODE_LTS_VERSION: LOWEST_LTS,
NPM_VERSION: 9,
USE_SERVERLESS_PROXY: true
},
tasks: ['serverless_task_group']
});

BUILD_VARIANTS.push({
name: 'rhel8-test-gcp-kms',
display_name: 'GCP KMS Test',
Expand Down

0 comments on commit 99a0059

Please sign in to comment.