Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion e2e/test/fw-use-specified-nb/chainsaw-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ spec:
fwconfig=$(curl -s \
-H "Authorization: Bearer $LINODE_TOKEN" \
-H "Content-Type: application/json" \
"https://api.linode.com/v4/networking/firewalls/$fwid")
"https://api.linode.com/v4/networking/firewalls/$fwid" || true)

fw_attached_to_nb=$(echo $fwconfig | jq ".entities[] | select(.id == $nbid) | .id == $nbid")

Expand Down
2 changes: 1 addition & 1 deletion e2e/test/lb-http-body-health-check/chainsaw-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ spec:
nbconfig=$(curl -s \
-H "Authorization: Bearer $LINODE_TOKEN" \
-H "Content-Type: application/json" \
"https://api.linode.com/v4/nodebalancers/$nbid/configs" | jq '.data[] | select(.port == 80)')
"https://api.linode.com/v4/nodebalancers/$nbid/configs" | jq '.data[] | select(.port == 80)' || true)

if [[ -z $nbconfig ]]; then
echo "Failed fetching nodebalancer config for port 80"
Expand Down
2 changes: 1 addition & 1 deletion e2e/test/lb-http-status-health-check/chainsaw-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ spec:
nbconfig=$(curl -s \
-H "Authorization: Bearer $LINODE_TOKEN" \
-H "Content-Type: application/json" \
"https://api.linode.com/v4/nodebalancers/$nbid/configs" | jq '.data[] | select(.port == 80)')
"https://api.linode.com/v4/nodebalancers/$nbid/configs" | jq '.data[] | select(.port == 80)' || true)

if [[ -z $nbconfig ]]; then
echo "Failed fetching nodebalancer config for port 80"
Expand Down
2 changes: 1 addition & 1 deletion e2e/test/lb-passive-health-check/chainsaw-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ spec:
nbconfig=$(curl -s \
-H "Authorization: Bearer $LINODE_TOKEN" \
-H "Content-Type: application/json" \
"https://api.linode.com/v4/nodebalancers/$nbid/configs" | jq '.data[] | select(.port == 80)')
"https://api.linode.com/v4/nodebalancers/$nbid/configs" | jq '.data[] | select(.port == 80)' || true)

if [[ -z $nbconfig ]]; then
echo "Failed fetching nodebalancer config for port 80"
Expand Down
2 changes: 1 addition & 1 deletion e2e/test/lb-tcp-connection-health-check/chainsaw-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ spec:
nbconfig=$(curl -s \
-H "Authorization: Bearer $LINODE_TOKEN" \
-H "Content-Type: application/json" \
"https://api.linode.com/v4/nodebalancers/$nbid/configs" | jq '.data[] | select(.port == 80)')
"https://api.linode.com/v4/nodebalancers/$nbid/configs" | jq '.data[] | select(.port == 80)' || true)

if [[ -z $nbconfig ]]; then
echo "Failed fetching nodebalancer config for port 80"
Expand Down
4 changes: 2 additions & 2 deletions e2e/test/lb-with-http-to-https/chainsaw-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ spec:
IP=$(kubectl get svc svc-test -n $NAMESPACE -o json | jq -r .status.loadBalancer.ingress[0].ip)

for i in {1..10}; do
port_80=$(curl -s $IP:80 | grep "test-")
port_443=$(curl --resolve linode.test:443:$IP --cacert ../certificates/ca.crt -s https://linode.test:443 | grep "test-")
port_80=$(curl -s $IP:80 | grep "test-" || true)
port_443=$(curl --resolve linode.test:443:$IP --cacert ../certificates/ca.crt -s https://linode.test:443 | grep "test-" || true)

if [[ -z $port_80 || -z $port_443 ]]; then
sleep 20
Expand Down
8 changes: 4 additions & 4 deletions e2e/test/lb-with-multiple-http-https-ports/chainsaw-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ spec:
IP=$(kubectl get svc svc-test -n $NAMESPACE -o json | jq -r .status.loadBalancer.ingress[0].ip)

for i in {1..10}; do
port_80=$(curl -s $IP:80 | grep "test-")
port_8080=$(curl -s $IP:8080 | grep "test-")
port_443=$(curl --resolve linode.test:443:$IP --cacert ../certificates/ca.crt -s https://linode.test:443 | grep "test-")
port_8443=$(curl --resolve linode.test:8443:$IP --cacert ../certificates/ca.crt -s https://linode.test:8443 | grep "test-")
port_80=$(curl -s $IP:80 | grep "test-" || true)
port_8080=$(curl -s $IP:8080 | grep "test-" || true)
port_443=$(curl --resolve linode.test:443:$IP --cacert ../certificates/ca.crt -s https://linode.test:443 | grep "test-" || true)
port_8443=$(curl --resolve linode.test:8443:$IP --cacert ../certificates/ca.crt -s https://linode.test:8443 | grep "test-" || true)

if [[ -z $port_80 || -z $port_8080 || -z $port_443 || -z $port_8443 ]]; then
sleep 15
Expand Down
2 changes: 1 addition & 1 deletion e2e/test/lb-with-node-addition/chainsaw-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ spec:
nbconfig=$(curl -s \
-H "Authorization: Bearer $LINODE_TOKEN" \
-H "Content-Type: application/json" \
"https://api.linode.com/v4/nodebalancers/$nbid/configs" | jq '.data[]? | select(.port == 80)')
"https://api.linode.com/v4/nodebalancers/$nbid/configs" | jq '.data[]? | select(.port == 80)' || true)

if [[ -z $nbconfig ]]; then
echo "Failed fetching nodebalancer config for port 80"
Expand Down
Loading