Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PYTHON-2608 Test that KMS TLS connections verify peer certificates #667

Merged
merged 17 commits into from Jul 9, 2021

Conversation

ShaneHarvey
Copy link
Member

@ShaneHarvey ShaneHarvey commented Jul 8, 2021

@@ -361,6 +361,32 @@ functions:
PYTHON_BINARY=${PYTHON_BINARY} sh ${PROJECT_DIRECTORY}/.evergreen/run-doctests.sh

"run tests":
# If testing encryption start the mock KMS servers.
# First create the virtualenv and install dependencies.
- command: shell.exec
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of doing this here, can't we do this in run-tests.sh gated under a check on TEST_ENCRYPTION? In config.yml under "run tests" we seem to limit ourselves to setting up environment variables which then get used by run-tests.sh. It'll be nice to stick to that...

Copy link
Member Author

Choose a reason for hiding this comment

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

Done. That's way simpler.

@ShaneHarvey
Copy link
Member Author

ShaneHarvey commented Jul 9, 2021

Updated to start the mock KMS servers in run-test.sh. I also moved all our scripts to bash instead of sh. The remaining windows failures are due to PYTHON-2798.

@ShaneHarvey ShaneHarvey merged commit 834500d into mongodb:master Jul 9, 2021
ShaneHarvey added a commit to ShaneHarvey/mongo-python-driver that referenced this pull request Jul 9, 2021
…ongodb#667)

Use bash for all evergreen scripts.

(cherry picked from commit 834500d)
ShaneHarvey added a commit that referenced this pull request Jul 9, 2021
)

Use bash for all evergreen scripts.

(cherry picked from commit 834500d)
@ShaneHarvey ShaneHarvey deleted the PYTHON-2608 branch July 9, 2021 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants