Skip to content

Commit 563a339

Browse files
author
Rahul Sharma
committed
fix random failures due to curl error
1 parent 1e46ca0 commit 563a339

File tree

8 files changed

+12
-12
lines changed

8 files changed

+12
-12
lines changed

e2e/test/fw-use-specified-nb/chainsaw-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ spec:
103103
fwconfig=$(curl -s \
104104
-H "Authorization: Bearer $LINODE_TOKEN" \
105105
-H "Content-Type: application/json" \
106-
"https://api.linode.com/v4/networking/firewalls/$fwid")
106+
"https://api.linode.com/v4/networking/firewalls/$fwid" || true)
107107
108108
fw_attached_to_nb=$(echo $fwconfig | jq ".entities[] | select(.id == $nbid) | .id == $nbid")
109109

e2e/test/lb-http-body-health-check/chainsaw-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ spec:
4343
nbconfig=$(curl -s \
4444
-H "Authorization: Bearer $LINODE_TOKEN" \
4545
-H "Content-Type: application/json" \
46-
"https://api.linode.com/v4/nodebalancers/$nbid/configs" | jq '.data[] | select(.port == 80)')
46+
"https://api.linode.com/v4/nodebalancers/$nbid/configs" | jq '.data[] | select(.port == 80)' || true)
4747
4848
if [[ -z $nbconfig ]]; then
4949
echo "Failed fetching nodebalancer config for port 80"

e2e/test/lb-http-status-health-check/chainsaw-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ spec:
4343
nbconfig=$(curl -s \
4444
-H "Authorization: Bearer $LINODE_TOKEN" \
4545
-H "Content-Type: application/json" \
46-
"https://api.linode.com/v4/nodebalancers/$nbid/configs" | jq '.data[] | select(.port == 80)')
46+
"https://api.linode.com/v4/nodebalancers/$nbid/configs" | jq '.data[] | select(.port == 80)' || true)
4747
4848
if [[ -z $nbconfig ]]; then
4949
echo "Failed fetching nodebalancer config for port 80"

e2e/test/lb-passive-health-check/chainsaw-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ spec:
4343
nbconfig=$(curl -s \
4444
-H "Authorization: Bearer $LINODE_TOKEN" \
4545
-H "Content-Type: application/json" \
46-
"https://api.linode.com/v4/nodebalancers/$nbid/configs" | jq '.data[] | select(.port == 80)')
46+
"https://api.linode.com/v4/nodebalancers/$nbid/configs" | jq '.data[] | select(.port == 80)' || true)
4747
4848
if [[ -z $nbconfig ]]; then
4949
echo "Failed fetching nodebalancer config for port 80"

e2e/test/lb-tcp-connection-health-check/chainsaw-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ spec:
4343
nbconfig=$(curl -s \
4444
-H "Authorization: Bearer $LINODE_TOKEN" \
4545
-H "Content-Type: application/json" \
46-
"https://api.linode.com/v4/nodebalancers/$nbid/configs" | jq '.data[] | select(.port == 80)')
46+
"https://api.linode.com/v4/nodebalancers/$nbid/configs" | jq '.data[] | select(.port == 80)' || true)
4747
4848
if [[ -z $nbconfig ]]; then
4949
echo "Failed fetching nodebalancer config for port 80"

e2e/test/lb-with-http-to-https/chainsaw-test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ spec:
7575
IP=$(kubectl get svc svc-test -n $NAMESPACE -o json | jq -r .status.loadBalancer.ingress[0].ip)
7676
7777
for i in {1..10}; do
78-
port_80=$(curl -s $IP:80 | grep "test-")
79-
port_443=$(curl --resolve linode.test:443:$IP --cacert ../certificates/ca.crt -s https://linode.test:443 | grep "test-")
78+
port_80=$(curl -s $IP:80 | grep "test-" || true)
79+
port_443=$(curl --resolve linode.test:443:$IP --cacert ../certificates/ca.crt -s https://linode.test:443 | grep "test-" || true)
8080
8181
if [[ -z $port_80 || -z $port_443 ]]; then
8282
sleep 20

e2e/test/lb-with-multiple-http-https-ports/chainsaw-test.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ spec:
6767
IP=$(kubectl get svc svc-test -n $NAMESPACE -o json | jq -r .status.loadBalancer.ingress[0].ip)
6868
6969
for i in {1..10}; do
70-
port_80=$(curl -s $IP:80 | grep "test-")
71-
port_8080=$(curl -s $IP:8080 | grep "test-")
72-
port_443=$(curl --resolve linode.test:443:$IP --cacert ../certificates/ca.crt -s https://linode.test:443 | grep "test-")
73-
port_8443=$(curl --resolve linode.test:8443:$IP --cacert ../certificates/ca.crt -s https://linode.test:8443 | grep "test-")
70+
port_80=$(curl -s $IP:80 | grep "test-" || true)
71+
port_8080=$(curl -s $IP:8080 | grep "test-" || true)
72+
port_443=$(curl --resolve linode.test:443:$IP --cacert ../certificates/ca.crt -s https://linode.test:443 | grep "test-" || true)
73+
port_8443=$(curl --resolve linode.test:8443:$IP --cacert ../certificates/ca.crt -s https://linode.test:8443 | grep "test-" || true)
7474
7575
if [[ -z $port_80 || -z $port_8080 || -z $port_443 || -z $port_8443 ]]; then
7676
sleep 15

e2e/test/lb-with-node-addition/chainsaw-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ spec:
7878
nbconfig=$(curl -s \
7979
-H "Authorization: Bearer $LINODE_TOKEN" \
8080
-H "Content-Type: application/json" \
81-
"https://api.linode.com/v4/nodebalancers/$nbid/configs" | jq '.data[]? | select(.port == 80)')
81+
"https://api.linode.com/v4/nodebalancers/$nbid/configs" | jq '.data[]? | select(.port == 80)' || true)
8282
8383
if [[ -z $nbconfig ]]; then
8484
echo "Failed fetching nodebalancer config for port 80"

0 commit comments

Comments
 (0)