Skip to content

Conversation

@baileympearson
Copy link
Contributor

@baileympearson baileympearson commented Oct 10, 2022

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

  • Ran npm run check:lint script
  • Self-review completed using the steps outlined here
  • PR title follows the correct format: <type>(NODE-xxxx)<!>: <description>
  • Changes are covered by tests
  • New TODOs have a related JIRA ticket

@baileympearson baileympearson changed the title test: sync spec tests ci: run csfle tests on serverless Oct 12, 2022
@baileympearson baileympearson force-pushed the NODE-4629-run-csfle-tests-on-serverless branch from 456e1ab to 2604943 Compare October 18, 2022 19:45
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')), () =>
Copy link
Contributor Author

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

@baileympearson baileympearson changed the title ci: run csfle tests on serverless ci(NODE-4629): run csfle tests on serverless Oct 18, 2022
@baileympearson baileympearson marked this pull request as ready for review October 18, 2022 19:55
@nbbeeken nbbeeken self-requested a review October 24, 2022 14:41
@nbbeeken nbbeeken added the Primary Review In Review with primary reviewer, not yet ready for team's eyes label Oct 24, 2022
Comment on lines +127 to +135
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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nbbeeken nbbeeken added Team Review Needs review from team and removed Primary Review In Review with primary reviewer, not yet ready for team's eyes labels Oct 24, 2022
ci: run csfle legacy tests on serverless
@nbbeeken nbbeeken force-pushed the NODE-4629-run-csfle-tests-on-serverless branch from b46203f to df7c943 Compare October 24, 2022 18:16
@nbbeeken nbbeeken merged commit 289300d into mongodb:main Oct 24, 2022
ZLY201 pushed a commit to ZLY201/node-mongodb-native that referenced this pull request Nov 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Team Review Needs review from team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants