[E2E] In run.sh, add option to disable the resource dump at the end of the test.
@@ -46,6 +46,7 @@ ${CMD} "$@" 2>&1
RESULT=$?
echo
+if [[ "${DUMP_RESOURCES:-}" == "true" ]]; then
GCLOUD=/google-cloud-sdk/bin/gcloud
RESOURCES="forwarding-rules target-http-proxies target-https-proxies url-maps backend-services"
for RES in ${RESOURCES}; do
@@ -53,6 +54,7 @@ for RES in ${RESOURCES}; do
echo "GCP RESOURCE: ${RES}"
${GCLOUD} compute ${RES} list --quiet --project ${PROJECT} --format yaml 2>&1
done
+fi
echo ==============================================================================
echo "RESULT: $RESULT"
