Skip to content

Commit

Permalink
test: install pyopenssl for mtls testing (#965)
Browse files Browse the repository at this point in the history
  • Loading branch information
arithmetic1728 committed Mar 2, 2021
1 parent 21da7d9 commit 0780323
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions synthtool/gcp/templates/python_library/noxfile.py.j2
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ def system(session):
# Sanity check: Only run tests if the environment variable is set.
if not os.environ.get("GOOGLE_APPLICATION_CREDENTIALS", ""):
session.skip("Credentials must be set via environment variable")
# Install pyopenssl for mTLS testing.
if os.environ.get("GOOGLE_API_USE_CLIENT_CERTIFICATE", "false") == "true":
session.install("pyopenssl")

system_test_exists = os.path.exists(system_test_path)
system_test_folder_exists = os.path.exists(system_test_folder_path)
Expand Down

0 comments on commit 0780323

Please sign in to comment.