Skip to content

Commit 0780323

Browse files
test: install pyopenssl for mtls testing (#965)
1 parent 21da7d9 commit 0780323

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

synthtool/gcp/templates/python_library/noxfile.py.j2

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,9 @@ def system(session):
137137
# Sanity check: Only run tests if the environment variable is set.
138138
if not os.environ.get("GOOGLE_APPLICATION_CREDENTIALS", ""):
139139
session.skip("Credentials must be set via environment variable")
140+
# Install pyopenssl for mTLS testing.
141+
if os.environ.get("GOOGLE_API_USE_CLIENT_CERTIFICATE", "false") == "true":
142+
session.install("pyopenssl")
140143

141144
system_test_exists = os.path.exists(system_test_path)
142145
system_test_folder_exists = os.path.exists(system_test_folder_path)

0 commit comments

Comments
 (0)