[PSM Interop] Log Google Cloud API debug header (#34334)
Add Google Cloud API debug header and read response. #### Testing * Triggered in Prod, no header was logged: https://source.cloud.google.com/results/invocations/c91c6e81-5e5b-4545-8abf-28594d4493a5 * Triggered in Prod with debug header enabled: https://source.cloud.google.com/results/invocations/cfda4dd5-e3a9-4519-a4e7-85220f780cbf * Also tested locally in staging. * Example log: ``` I0913 01:04:19.688863 139651983066944 traffic_director.py:187] Creating GRPC Health Check "xds-k8s-test-health-check-dev" I0913 01:04:19.692854 139651983066944 compute.py:538] Creating compute resource: --- grpcHealthCheck: portSpecification: USE_SERVING_PORT name: xds-k8s-test-health-check-dev type: GRPC ... I0913 01:04:19.693941 139651983066944 compute.py:600] Adding debug headers for method: compute.healthChecks.insert I0913 01:04:20.726086 139651983066944 compute.py:595] Received debug headers: ADViAh6vFBtRL4YC... I0913 01:04:20.726562 139651983066944 compute.py:610] Waiting 600 sec for compute operation id: operation-1694567059990-6053323a8a81a-5340529e-bf5d5c03 I0913 01:04:23.383233 139651983066944 xds_k8s_testcase.py:272] --- Finished subTest __main__.BaselineTest.test_traffic_director_grpc_setup.0_create_health_check --- ```pull/34550/head
parent
7b17e4aa92
commit
cc07942993
3 changed files with 34 additions and 1 deletions
Loading…
Reference in new issue