Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-6836

Tests in test/integration/node-specific/auto_encrypter.test.ts that require crypt_shared to not be present are not run

    • 2
    • Not Needed
    • None
    • Hide

      Create a copy of the Kickoff Template with the issue key (NODE-XXX) in the filename and share a link to the new doc via this field.

      Show
      Create a copy of the Kickoff Template with the issue key (NODE-XXX) in the filename and share a link to the new doc via this field.
    • Not Needed
    • None
    • None
    • None
    • None
    • None
    • None

      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

            Assignee:
            bailey.pearson@mongodb.com Bailey Pearson
            Reporter:
            neal.beeken@mongodb.com Neal Beeken
            Durran Jordan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: