Add additional debug

pull/29472/head
Richard Belleville 3 years ago
parent c770b41a98
commit 0d5fdc6691
  1. 5
      tools/run_tests/xds_k8s_test_driver/framework/infrastructure/gcp/network_services.py
  2. 1
      tools/run_tests/xds_k8s_test_driver/framework/infrastructure/traffic_director.py

@ -246,9 +246,12 @@ class NetworkServicesV1Alpha1(NetworkServicesV1Beta1):
return 'v1alpha1'
def create_mesh(self, name: str, body: dict) -> GcpResource:
return self._create_resource(collection=self._api_locations.meshes(),
logger.info("Creating mesh")
mesh = self._create_resource(collection=self._api_locations.meshes(),
body=body,
meshId=name)
logger.info("Created mesh: {} {} {}".format(mesh, type(mesh), dir(mesh)))
return mesh
def get_mesh(self, name: str) -> Mesh:
full_name = self.resource_full_name(name, self.MESHES)

@ -664,6 +664,7 @@ class TrafficDirectorAppNetManager(TrafficDirectorManager):
logger.info("Creating Mesh %s", name)
body = {}
resource = self.netsvc.create_mesh(name, body)
logger.info("Mesh: {} {} {}".format(mesh, type(mesh), dir(mesh)))
self.mesh = self.netsvc.get_mesh(name)
logger.debug("Loaded Mesh: %s", self.mesh)
return resource

Loading…
Cancel
Save