Skip to content

Commit 1de05f6

Browse files
test: update system test for mtls (#518)
1 parent 1773dae commit 1de05f6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

noxfile.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,11 @@ def system(session):
113113
session.install(
114114
"mock", "pytest", "psutil", "google-cloud-testutils", "-c", constraints_path
115115
)
116-
session.install("google-cloud-storage", "-c", constraints_path)
116+
if os.environ.get("GOOGLE_API_USE_CLIENT_CERTIFICATE", "") == "true":
117+
# mTLS test requires pyopenssl and latest google-cloud-storage
118+
session.install("google-cloud-storage", "pyopenssl")
119+
else:
120+
session.install("google-cloud-storage", "-c", constraints_path)
117121

118122
session.install("-e", ".[all]", "-c", constraints_path)
119123
session.install("ipython", "-c", constraints_path)

0 commit comments

Comments
 (0)