Skip to content

Commit

Permalink
test: install pyopenssl for mtls testing (#117)
Browse files Browse the repository at this point in the history
Source-Author: arithmetic1728 <58957152+arithmetic1728@users.noreply.github.com>
Source-Date: Tue Mar 2 12:27:56 2021 -0800
Source-Repo: googleapis/synthtool
Source-Sha: 0780323da96d5a53925fe0547757181fe76e8f1e
Source-Link: googleapis/synthtool@0780323
  • Loading branch information
yoshi-automation authored Mar 4, 2021
1 parent 3b20c52 commit 9532db0
Show file tree
Hide file tree
Showing 2 changed files with 134 additions and 4 deletions.
3 changes: 3 additions & 0 deletions packages/google-cloud-python-speech/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
135 changes: 131 additions & 4 deletions packages/google-cloud-python-speech/synth.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
{
"git": {
"name": ".",
"remote": "git@github.com:googleapis/python-speech",
"sha": "d06460152ea96b33006c0441227647f03b688862"
"remote": "https://github.com/googleapis/python-speech.git",
"sha": "6d7ea1e8869e3d800220f1261b8be1d0c91c66d8"
}
},
{
Expand All @@ -19,14 +19,14 @@
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
"sha": "8c5628b86cfa8386de7b8fc1675e6b528b552d57"
"sha": "0780323da96d5a53925fe0547757181fe76e8f1e"
}
},
{
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
"sha": "8c5628b86cfa8386de7b8fc1675e6b528b552d57"
"sha": "0780323da96d5a53925fe0547757181fe76e8f1e"
}
}
],
Expand All @@ -49,5 +49,132 @@
"generator": "bazel"
}
}
],
"generatedFiles": [
".coveragerc",
".flake8",
".github/CONTRIBUTING.md",
".github/ISSUE_TEMPLATE/bug_report.md",
".github/ISSUE_TEMPLATE/feature_request.md",
".github/ISSUE_TEMPLATE/support_request.md",
".github/PULL_REQUEST_TEMPLATE.md",
".github/header-checker-lint.yml",
".github/release-please.yml",
".github/snippet-bot.yml",
".gitignore",
".kokoro/build.sh",
".kokoro/continuous/common.cfg",
".kokoro/continuous/continuous.cfg",
".kokoro/docker/docs/Dockerfile",
".kokoro/docker/docs/fetch_gpg_keys.sh",
".kokoro/docs/common.cfg",
".kokoro/docs/docs-presubmit.cfg",
".kokoro/docs/docs.cfg",
".kokoro/populate-secrets.sh",
".kokoro/presubmit/common.cfg",
".kokoro/presubmit/presubmit.cfg",
".kokoro/publish-docs.sh",
".kokoro/release.sh",
".kokoro/release/common.cfg",
".kokoro/release/release.cfg",
".kokoro/samples/lint/common.cfg",
".kokoro/samples/lint/continuous.cfg",
".kokoro/samples/lint/periodic.cfg",
".kokoro/samples/lint/presubmit.cfg",
".kokoro/samples/python3.6/common.cfg",
".kokoro/samples/python3.6/continuous.cfg",
".kokoro/samples/python3.6/periodic.cfg",
".kokoro/samples/python3.6/presubmit.cfg",
".kokoro/samples/python3.7/common.cfg",
".kokoro/samples/python3.7/continuous.cfg",
".kokoro/samples/python3.7/periodic.cfg",
".kokoro/samples/python3.7/presubmit.cfg",
".kokoro/samples/python3.8/common.cfg",
".kokoro/samples/python3.8/continuous.cfg",
".kokoro/samples/python3.8/periodic.cfg",
".kokoro/samples/python3.8/presubmit.cfg",
".kokoro/test-samples.sh",
".kokoro/trampoline.sh",
".kokoro/trampoline_v2.sh",
".pre-commit-config.yaml",
".trampolinerc",
"CODE_OF_CONDUCT.md",
"CONTRIBUTING.rst",
"LICENSE",
"MANIFEST.in",
"docs/_static/custom.css",
"docs/_templates/layout.html",
"docs/conf.py",
"docs/multiprocessing.rst",
"docs/speech_v1/services.rst",
"docs/speech_v1/speech.rst",
"docs/speech_v1/types.rst",
"docs/speech_v1p1beta1/adaptation.rst",
"docs/speech_v1p1beta1/services.rst",
"docs/speech_v1p1beta1/speech.rst",
"docs/speech_v1p1beta1/types.rst",
"google/cloud/speech/__init__.py",
"google/cloud/speech/py.typed",
"google/cloud/speech_v1/__init__.py",
"google/cloud/speech_v1/proto/cloud_speech.proto",
"google/cloud/speech_v1/py.typed",
"google/cloud/speech_v1/services/__init__.py",
"google/cloud/speech_v1/services/speech/__init__.py",
"google/cloud/speech_v1/services/speech/async_client.py",
"google/cloud/speech_v1/services/speech/client.py",
"google/cloud/speech_v1/services/speech/transports/__init__.py",
"google/cloud/speech_v1/services/speech/transports/base.py",
"google/cloud/speech_v1/services/speech/transports/grpc.py",
"google/cloud/speech_v1/services/speech/transports/grpc_asyncio.py",
"google/cloud/speech_v1/types/__init__.py",
"google/cloud/speech_v1/types/cloud_speech.py",
"google/cloud/speech_v1p1beta1/__init__.py",
"google/cloud/speech_v1p1beta1/proto/cloud_speech.proto",
"google/cloud/speech_v1p1beta1/proto/cloud_speech_adaptation.proto",
"google/cloud/speech_v1p1beta1/proto/resource.proto",
"google/cloud/speech_v1p1beta1/py.typed",
"google/cloud/speech_v1p1beta1/services/__init__.py",
"google/cloud/speech_v1p1beta1/services/adaptation/__init__.py",
"google/cloud/speech_v1p1beta1/services/adaptation/async_client.py",
"google/cloud/speech_v1p1beta1/services/adaptation/client.py",
"google/cloud/speech_v1p1beta1/services/adaptation/pagers.py",
"google/cloud/speech_v1p1beta1/services/adaptation/transports/__init__.py",
"google/cloud/speech_v1p1beta1/services/adaptation/transports/base.py",
"google/cloud/speech_v1p1beta1/services/adaptation/transports/grpc.py",
"google/cloud/speech_v1p1beta1/services/adaptation/transports/grpc_asyncio.py",
"google/cloud/speech_v1p1beta1/services/speech/__init__.py",
"google/cloud/speech_v1p1beta1/services/speech/async_client.py",
"google/cloud/speech_v1p1beta1/services/speech/client.py",
"google/cloud/speech_v1p1beta1/services/speech/transports/__init__.py",
"google/cloud/speech_v1p1beta1/services/speech/transports/base.py",
"google/cloud/speech_v1p1beta1/services/speech/transports/grpc.py",
"google/cloud/speech_v1p1beta1/services/speech/transports/grpc_asyncio.py",
"google/cloud/speech_v1p1beta1/types/__init__.py",
"google/cloud/speech_v1p1beta1/types/cloud_speech.py",
"google/cloud/speech_v1p1beta1/types/cloud_speech_adaptation.py",
"google/cloud/speech_v1p1beta1/types/resource.py",
"mypy.ini",
"noxfile.py",
"renovate.json",
"samples/AUTHORING_GUIDE.md",
"samples/CONTRIBUTING.md",
"samples/microphone/noxfile.py",
"samples/snippets/noxfile.py",
"scripts/decrypt-secrets.sh",
"scripts/fixup_speech_v1_keywords.py",
"scripts/fixup_speech_v1p1beta1_keywords.py",
"scripts/readme-gen/readme_gen.py",
"scripts/readme-gen/templates/README.tmpl.rst",
"scripts/readme-gen/templates/auth.tmpl.rst",
"scripts/readme-gen/templates/auth_api_key.tmpl.rst",
"scripts/readme-gen/templates/install_deps.tmpl.rst",
"scripts/readme-gen/templates/install_portaudio.tmpl.rst",
"setup.cfg",
"testing/.gitignore",
"tests/unit/gapic/speech_v1/__init__.py",
"tests/unit/gapic/speech_v1/test_speech.py",
"tests/unit/gapic/speech_v1p1beta1/__init__.py",
"tests/unit/gapic/speech_v1p1beta1/test_adaptation.py",
"tests/unit/gapic/speech_v1p1beta1/test_speech.py"
]
}

0 comments on commit 9532db0

Please sign in to comment.