Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-4526

Document that DRIVERS_TOOLS needs to be set to run some tox tests

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 4.9
    • Affects Version/s: None
    • Component/s: Tests
    • None
    • Python Drivers
    • Not Needed
    • 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?

      The contributing guide says:

      ## Running Encryption Tests Locally
      - Run `AWS_PROFILE=<profile> tox -m setup-encryption` after setting up your AWS profile with `aws configure sso`.
      - Run the tests with `TEST_ENCRYPTION=1 tox -e test-eg`.
      - When done, run `tox -m teardown-encryption` to clean up.
      

      But the first command fails if DRIVERS_TOOLS is not set

      $ AWS_PROFILE=dbx-secrets tox -m setup-encryption
      ....
      setup-encryption: commands[1]> bash /.evergreen/csfle/setup-secrets.sh
      /bin/bash: /.evergreen/csfle/setup-secrets.sh: No such file or directory
      setup-encryption: exit 127 (0.00 seconds) /Users/shane/git/mongo-python-driver> bash /.evergreen/csfle/setup-secrets.sh pid=19387
        setup-encryption: FAIL code 127 (3.84=setup[0.00]+cmd[3.83,0.00] seconds)
        evaluation failed :( (3.91 seconds)
      

            Assignee:
            shane.harvey@mongodb.com Shane Harvey
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: