Skip to content

Commit

Permalink
patch gapic tests
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-sanche committed Jan 16, 2025
1 parent 86e69d3 commit 4a08f14
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/unit/gapic/bigtable_v2/test_bigtable.py
Original file line number Diff line number Diff line change
Expand Up @@ -6868,7 +6868,8 @@ def test_execute_query_routing_parameters_request_1_grpc():

assert args[0] == request_msg

expected_headers = {"name": "projects/sample1/instances/sample2"}
# expect app_profile_id while temporary patch is in place: https://github.com/googleapis/python-bigtable/pull/1072
expected_headers = {"name": "projects/sample1/instances/sample2", "app_profile_id": ""}
assert (
gapic_v1.routing_header.to_grpc_metadata(expected_headers) in kw["metadata"]
)
Expand Down Expand Up @@ -7894,7 +7895,8 @@ async def test_execute_query_routing_parameters_request_1_grpc_asyncio():

assert args[0] == request_msg

expected_headers = {"name": "projects/sample1/instances/sample2"}
# expect app_profile_id while temporary patch is in place: https://github.com/googleapis/python-bigtable/pull/1072
expected_headers = {"name": "projects/sample1/instances/sample2", "app_profile_id": ""}
assert (
gapic_v1.routing_header.to_grpc_metadata(expected_headers) in kw["metadata"]
)
Expand Down Expand Up @@ -9915,7 +9917,8 @@ def test_execute_query_routing_parameters_request_1_rest():

assert args[0] == request_msg

expected_headers = {"name": "projects/sample1/instances/sample2"}
# expect app_profile_id while temporary patch is in place: https://github.com/googleapis/python-bigtable/pull/1072
expected_headers = {"name": "projects/sample1/instances/sample2", "app_profile_id": ""}
assert (
gapic_v1.routing_header.to_grpc_metadata(expected_headers) in kw["metadata"]
)
Expand Down

0 comments on commit 4a08f14

Please sign in to comment.