Skip to content

Commit

Permalink
fix: integrate gapic-generator-python-1.4.1 and enable more py_test t…
Browse files Browse the repository at this point in the history
…argets

PiperOrigin-RevId: 473833416
  • Loading branch information
Google APIs authored and Copybara-Service committed Sep 12, 2022
1 parent 9d1fbd0 commit 565a550
Show file tree
Hide file tree
Showing 7 changed files with 56 additions and 61 deletions.
2 changes: 1 addition & 1 deletion WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ load("@rules_python//python:pip.bzl", "pip_install")

pip_install()

_gapic_generator_python_version = "1.4.0"
_gapic_generator_python_version = "1.4.1"

http_archive(
name = "gapic_generator_python",
Expand Down
19 changes: 9 additions & 10 deletions google/cloud/bigquery/connection/v1beta1/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -165,16 +165,15 @@ py_gapic_library(
],
)

# Uncomment once https://github.com/googleapis/gapic-generator-python/issues/1372 is fixed
#py_test(
# name = "connection_py_gapic_test",
# srcs = [
# "connection_py_gapic_pytest.py",
# "connection_py_gapic_test.py",
# ],
# legacy_create_init = False,
# deps = [":connection_py_gapic"],
#)
py_test(
name = "connection_py_gapic_test",
srcs = [
"connection_py_gapic_pytest.py",
"connection_py_gapic_test.py",
],
legacy_create_init = False,
deps = [":connection_py_gapic"],
)

# Open Source Packages
py_gapic_assembly_pkg(
Expand Down
19 changes: 9 additions & 10 deletions google/cloud/bigquery/v2/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -160,16 +160,15 @@ py_gapic_library(
opt_args = ["autogen-snippets=False"],
)

# Uncomment once https://github.com/googleapis/gapic-generator-python/issues/1372 is fixed
#py_test(
# name = "bigquery_py_gapic_test",
# srcs = [
# "bigquery_py_gapic_pytest.py",
# "bigquery_py_gapic_test.py",
# ],
# legacy_create_init = False,
# deps = [":bigquery_py_gapic"],
#)
py_test(
name = "bigquery_py_gapic_test",
srcs = [
"bigquery_py_gapic_pytest.py",
"bigquery_py_gapic_test.py",
],
legacy_create_init = False,
deps = [":bigquery_py_gapic"],
)

py_gapic_assembly_pkg(
name = "bigquery-v2-py",
Expand Down
19 changes: 9 additions & 10 deletions google/cloud/recommendationengine/v1beta1/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -184,16 +184,15 @@ py_gapic_library(
opt_args = ["warehouse-package-name=google-cloud-recommendations-ai"],
)

# Uncomment once https://github.com/googleapis/gapic-generator-python/issues/1370 is fixed
#py_test(
# name = "recommendationengine_py_gapic_test",
# srcs = [
# "recommendationengine_py_gapic_pytest.py",
# "recommendationengine_py_gapic_test.py",
# ],
# legacy_create_init = False,
# deps = [":recommendationengine_py_gapic"],
#)
py_test(
name = "recommendationengine_py_gapic_test",
srcs = [
"recommendationengine_py_gapic_pytest.py",
"recommendationengine_py_gapic_test.py",
],
legacy_create_init = False,
deps = [":recommendationengine_py_gapic"],
)

# Open Source Packages
py_gapic_assembly_pkg(
Expand Down
20 changes: 10 additions & 10 deletions google/cloud/run/v2/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -192,21 +192,21 @@ py_gapic_library(
srcs = [":run_proto"],
grpc_service_config = "run_grpc_service_config.json",
service_yaml = "run_v2.yaml",
transport = "grpc+rest",
deps = [
"//google/iam/v1:iam_policy_py_proto",
],
)

# Uncomment once https://github.com/googleapis/gapic-generator-python/issues/1371 is fixed
#py_test(
# name = "run_py_gapic_test",
# srcs = [
# "run_py_gapic_pytest.py",
# "run_py_gapic_test.py",
# ],
# legacy_create_init = False,
# deps = [":run_py_gapic"],
#)
py_test(
name = "run_py_gapic_test",
srcs = [
"run_py_gapic_pytest.py",
"run_py_gapic_test.py",
],
legacy_create_init = False,
deps = [":run_py_gapic"],
)

# Open Source Packages
py_gapic_assembly_pkg(
Expand Down
19 changes: 9 additions & 10 deletions google/devtools/remoteworkers/v1test2/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -171,16 +171,15 @@ py_gapic_library(
grpc_service_config = "remoteworkers_grpc_service_config.json",
)

# Uncomment once https://github.com/googleapis/gapic-generator-python/issues/1370 is fixed
#py_test(
# name = "remoteworkers_py_gapic_test",
# srcs = [
# "remoteworkers_py_gapic_pytest.py",
# "remoteworkers_py_gapic_test.py",
# ],
# legacy_create_init = False,
# deps = [":remoteworkers_py_gapic"],
#)
py_test(
name = "remoteworkers_py_gapic_test",
srcs = [
"remoteworkers_py_gapic_pytest.py",
"remoteworkers_py_gapic_test.py",
],
legacy_create_init = False,
deps = [":remoteworkers_py_gapic"],
)

# Open Source Packages
py_gapic_assembly_pkg(
Expand Down
19 changes: 9 additions & 10 deletions google/home/graph/v1/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -155,16 +155,15 @@ py_gapic_library(
grpc_service_config = "homegraph_grpc_service_config.json",
)

# Uncomment once https://github.com/googleapis/gapic-generator-python/issues/1370 is fixed
#py_test(
# name = "graph_py_gapic_test",
# srcs = [
# "graph_py_gapic_pytest.py",
# "graph_py_gapic_test.py",
# ],
# legacy_create_init = False,
# deps = [":graph_py_gapic"],
#)
py_test(
name = "graph_py_gapic_test",
srcs = [
"graph_py_gapic_pytest.py",
"graph_py_gapic_test.py",
],
legacy_create_init = False,
deps = [":graph_py_gapic"],
)

# Open Source Packages
py_gapic_assembly_pkg(
Expand Down

0 comments on commit 565a550

Please sign in to comment.