Skip to content

Commit ca81688

Browse files
committed
[test] Increase timeout and retry attempts for firewall deletion in chainsaw test
Signed-off-by: Moshe Vayner <moshe@vayner.me>
1 parent 26dbcdd commit ca81688

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

e2e/test/lb-fw-delete-acl/chainsaw-test.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ spec:
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
@@ -81,7 +82,7 @@ spec:
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" \
@@ -98,6 +99,8 @@ spec:
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

0 commit comments

Comments
 (0)