Skip to content

Commit

Permalink
test: install pyopenssl for mtls testing (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
arithmetic1728 authored Mar 2, 2021
1 parent 6988587 commit 71e10c1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/google-cloud-compute/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,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 71e10c1

Please sign in to comment.