-
Notifications
You must be signed in to change notification settings - Fork 1.8k
ci(NODE-4629): run csfle tests on serverless #3442
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci(NODE-4629): run csfle tests on serverless #3442
Conversation
456e1ab to
2604943
Compare
| describe('Client Side Encryption (Unified)', function () { | ||
| installNode18DNSHooks(); | ||
| runUnifiedSuite(loadSpecTests(path.join('client-side-encryption', 'tests', 'unified'))); | ||
| runUnifiedSuite(loadSpecTests(path.join('client-side-encryption', 'tests', 'unified')), () => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changes in this file are necessary because we don't want to run the unified tests on serverless.
I considered breaking them into two separate files but decided against it for two reasons:
- our pattern is to keep legacy / unified tests together in the same file
- I wasn't sure how many places we ran just this file, and consequently how many places I might need to update if I broke them apart
| cat <<EOT > prepare_client_encryption.sh | ||
| export CLIENT_ENCRYPTION=${CLIENT_ENCRYPTION} | ||
| export CSFLE_KMS_PROVIDERS='${CSFLE_KMS_PROVIDERS}' | ||
| export AWS_ACCESS_KEY_ID='${AWS_ACCESS_KEY_ID}' | ||
| export AWS_SECRET_ACCESS_KEY='${AWS_SECRET_ACCESS_KEY}' | ||
| export AWS_DEFAULT_REGION='us-east-1' | ||
| export KMIP_TLS_CA_FILE="${DRIVERS_TOOLS}/.evergreen/x509gen/ca.pem" | ||
| export KMIP_TLS_CERT_FILE="${DRIVERS_TOOLS}/.evergreen/x509gen/client.pem" | ||
| EOT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ci: run csfle legacy tests on serverless
b46203f to
df7c943
Compare
https://jira.mongodb.org/browse/NODE-4629
Description
What is changing?
Legacy csfle tests now run on serverless.
Is there new documentation needed for these changes?
No.
What is the motivation for this change?
Good testing.
Double check the following
npm run check:lintscript<type>(NODE-xxxx)<!>: <description>