Skip tests if mongocryptd is not on the PATH

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: Testing
    • None
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      Use Case

      As a... driver engineer
      I want... to automatically skip mongocryptd tests when mongocryptd isn't available
      So that... I don't see an error when running them locally (note:mongocryptd is always present in CI)

      User Experience

      • mongocryptd tests are skipped locally when mongocryptd isn't in the path

      Dependencies

      • N/A

      Risks/Unknowns

      • N/A

      Acceptance Criteria

      Implementation Requirements

      • crypto tests that rely on mongocryptd should be skipped when cli isn't available
      • ensure that related mongocryptd tests are all working as expected: make sure this addition doesn't end up skipping some tests
      • from slack: https://mongodb.slack.com/archives/GGWBN4ZNK/p1758655945233799?thread_ts=1758653990.977689&cid=GGWBN4ZNK
        • "Those tests need a mongocryptd in the path because they spawn mongocryptd as a child process.  So, the skip could be something like the test only running if mongocryptd --version returns a numeric string or something."

      Testing Requirements

      • Reviewers should verify locally that this is done correctly (since it's not applicable to CI)
      • All tests in CI should continue to run and pass

      Documentation Requirements

      • N/A

      Follow Up Requirements

      • N/A

            Assignee:
            Unassigned
            Reporter:
            Pavel Safronov
            None
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: