File tree Expand file tree Collapse file tree
e2e/test/lb-fw-delete-acl Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6565 - name : Delete ACL and check that firewall no longer exists
6666 try :
6767 - script :
68+ timeout : 5m
6869 content : |
6970 set -euo pipefail
7071
8182 # Patch service to remove ACL annotation
8283 kubectl patch service svc-test -n $NAMESPACE --type=json -p='[{"op": "remove", "path": "/metadata/annotations/service.beta.kubernetes.io~1linode-loadbalancer-firewall-acl"}]'
8384
84- for i in {1..10 }; do
85+ for i in {1..30 }; do
8586 # Check that firewall is no longer attached to nb
8687 fw=$(curl -s --request GET \
8788 -H "Authorization: Bearer $LINODE_TOKEN" \
9899 -H "accept: application/json" \
99100 "$LINODE_URL/v4/networking/firewalls/${fwid}" || true)
100101
102+ echo "attempt $i: fwCount=$fwCount fwRespCode=$fwRespCode"
103+
101104 if [[ $fwCount -eq 0 && $fwRespCode -eq "404" ]]; then
102105 echo "firewall detatched and deleted"
103106 break
You can’t perform that action at this time.
0 commit comments