From 4c723c84cd390400f11ee62b2011c7f0adbbeab4 Mon Sep 17 00:00:00 2001 From: Sai Sunder Srinivasan Date: Wed, 16 Oct 2024 18:32:37 +0000 Subject: [PATCH] .. --- tests/showcase/test_service_account.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/tests/showcase/test_service_account.py b/tests/showcase/test_service_account.py index 12ebf0155..dead5dffe 100644 --- a/tests/showcase/test_service_account.py +++ b/tests/showcase/test_service_account.py @@ -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