Skip to content

Commit 0a814e7

Browse files
---
yaml --- r: 8201 b: refs/heads/pubsub-streaming-pull c: 9a86280 h: refs/heads/master i: 8199: 06bf5d1
1 parent cba2798 commit 0a814e7

2 files changed

Lines changed: 15 additions & 1 deletion

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,4 @@ refs/tags/v0.19.0: e67b56e4d8dad5f9a7b38c9b2107c23c828f2ed5
5858
refs/tags/v0.20.0: 839f7fb7156535146aa1cb2c5aadd8d375d854e8
5959
refs/tags/v0.20.1: 370471f437f1f4f68a11e068df5cd6bf39edb1fa
6060
refs/heads/tswast-patch-1: 7d159fddcbc35d80aa6e78378d12a0992c8708fa
61-
refs/heads/pubsub-streaming-pull: 269025fdc14af0b68df214a4518be5379b2fe569
61+
refs/heads/pubsub-streaming-pull: 9a86280ac70620a47daffd7ecb19e355838bb03b

branches/pubsub-streaming-pull/utilities/integration_test_env.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
# Remove orphaned firewall rules and networks generated by unintentional aborted runs of
2+
# google-cloud-node on gapic-test project: see
3+
# https://github.com/GoogleCloudPlatform/google-cloud-java/issues/2118
4+
firewalls=$(gcloud compute firewall-rules list | cut -f 1 -d ' ' | grep '^gcloud-tests')
5+
if [[ $firewalls ]]
6+
then
7+
echo 'Y' | gcloud compute firewall-rules delete $firewalls
8+
fi
9+
networks=$(gcloud compute networks list | cut -f 1 -d ' ' | grep '^gcloud-tests')
10+
if [[ $networks ]]
11+
then
12+
echo 'Y' | gcloud compute networks delete $networks
13+
fi
14+
115
# Export test env variables
216
export GCLOUD_PROJECT="gcloud-devel"
317
export GOOGLE_APPLICATION_CREDENTIALS=$TRAVIS_BUILD_DIR/signing-tools/gcloud-devel-travis.json

0 commit comments

Comments
 (0)