Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
sai-sunder-s committed Oct 16, 2024
1 parent 96756c0 commit 4c723c8
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions tests/showcase/test_service_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,20 @@
@pytest.fixture
def echo():
# Create an instance of the Showcase Echo client
transport_cls = showcase.EchoClient.get_transport_class("grpc")
# transport_cls = showcase.EchoClient.get_transport_class("grpc")
# transport = transport_cls(
# credentials=default()[0],
# channel=grpc.insecure_channel("localhost:7469"),
# host="localhost:7469",
# )

transport_cls = showcase.EchoClient.get_transport_class("rest")
transport = transport_cls(
credentials=default()[0],
channel=grpc.insecure_channel("localhost:7469"),
host="localhost:7469",
url_scheme="http",
)

echo_client = showcase.EchoClient(transport=transport)
yield echo_client
# Optional: Clean up resources if needed after the test
Expand Down

0 comments on commit 4c723c8

Please sign in to comment.