-
Type:
Task
-
Resolution: Done
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Client Side Encryption, Testing
Use Case
- test/integration/node-specific/auto_encrypter.test.ts
In the test file above there are tests that check whether or not we launch mongocryptd along with other options relating to the process handling (vs library handling). These tests are currently not running because the mongocyrptd tasks use only the tests run by "npm run test:csfle". Which is only "test/integration/client-side-encryption".
We should either just run all our tests under the cryptd tasks or find a way to make sure we're running all the relevant tests to the subject of mongocryptd.
crypt_shared library autoSpawn ✔ should autoSpawn a mongocryptd on init by default (521ms) ✔ should not attempt to kick off mongocryptd on a normal error 1) should restore the mongocryptd and retry once if a MongoNetworkTimeoutError is experienced 2) should propagate error if MongoNetworkTimeoutError is experienced twice in a row ✔ should return a useful message if mongocryptd fails to autospawn (10005ms) noAutoSpawn ✔ should not spawn mongocryptd on startup if mongocryptdBypassSpawn is true ✔ should not spawn mongocryptd on startup if bypassAutoEncryption is true ✔ should not spawn mongocryptd on startup if bypassQueryAnalysis is true 3) should not spawn a mongocryptd or retry on a server selection error if mongocryptdBypassSpawn: true
User Experience
- N/A
Dependencies
- N/A
Risks/Unknowns
- Unexpected failures
Acceptance Criteria
Implementation Requirements
- Rename the describe block to be more desrciptive
- Change mongocryptd tests to run all tests instead of just fle
Testing Requirements
- Make sure the tests above actually run and pass in CI
Documentation Requirements
- N/A
Follow Up Requirements
- If there are any unexpected failures, file new ticket(s) to address them