Skip to content

Commit

Permalink
fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulait committed Dec 9, 2024
1 parent 901b05c commit 2bb0985
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions e2e/test/lb-delete-svc-no-nb/chainsaw-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ spec:
sleep 5
else
echo "service is deleted"
break
fi
done
check:
Expand Down
1 change: 1 addition & 0 deletions e2e/test/lb-with-http-to-https/chainsaw-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ spec:
set -e
kubectl annotate svc svc-test -n $NAMESPACE service.beta.kubernetes.io/linode-loadbalancer-port-443='{"tls-secret-name": "tls-secret-1", "protocol": "https"}'
kubectl patch svc svc-test -n $NAMESPACE --type='json' -p='[{"op": "add", "path": "/spec/ports/-", "value": {"name": "https", "port": 443, "targetPort": 8080, "protocol": "TCP"}}]'
sleep 10
- name: Check endpoints
try:
- assert:
Expand Down
10 changes: 10 additions & 0 deletions e2e/test/lb-with-proxyprotocol-set/chainsaw-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,16 @@ spec:
name: svc-test
(subsets[0].addresses != null): true
(subsets[0].ports != null): true
- name: Check that loadbalancer ip is assigned
try:
- assert:
resource:
apiVersion: v1
kind: Service
metadata:
name: svc-test
status:
(loadBalancer.ingress[0].ip != null): true
- name: Annotate service port 80 with v1 and 8080 with v2
try:
- script:
Expand Down

0 comments on commit 2bb0985

Please sign in to comment.