Skip to content

Commit

Permalink
test: install pyopenssl for mtls testing (#76)
Browse files Browse the repository at this point in the history
This PR was generated using Autosynth. 🌈

Synth log will be available here:
https://source.cloud.google.com/results/invocations/f169e545-1f46-4498-92b8-ef79af1ecedc/targets

- [ ] To automatically regenerate this PR, check this box.

Source-Link: googleapis/synthtool@0780323
  • Loading branch information
yoshi-automation authored Mar 8, 2021
1 parent cba5663 commit 1e6fbe1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions packages/google-cloud-container/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
4 changes: 2 additions & 2 deletions packages/google-cloud-container/synth.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/python-container.git",
"sha": "7ed5e591e9a4a9a58dc1340bbe40dcc986feca7f"
"sha": "4c7bbb4cfa0013be587a3261efc19822202bff8e"
}
},
{
Expand All @@ -19,7 +19,7 @@
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
"sha": "d17674372e27fb8f23013935e794aa37502071aa"
"sha": "0780323da96d5a53925fe0547757181fe76e8f1e"
}
}
],
Expand Down

0 comments on commit 1e6fbe1

Please sign in to comment.