Skip to content
Open
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
5 changes: 4 additions & 1 deletion e2e/test/lb-created-with-invalid-ip/chainsaw-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ spec:
set -euo pipefail

delete_cm=$(kubectl delete configmap invalid-ip-config -n $NAMESPACE)
if [[ "$delete_cm" == "configmap \"invalid-ip-config\" deleted" ]]; then
if [[ "$delete_cm" == *'configmap "invalid-ip-config" deleted'* ]]; then
echo "Configmap deleted successfully"
else
echo "Unable to delete the configmap: $delete_cm. Error: $delete_cm"
Expand All @@ -80,6 +80,9 @@ spec:
- name: get service ip and compare with invalid ip
try:
- script:
shell: bash
shellArgs:
- -c
content: |
set -euo pipefail
invalid_ip=$(kubectl get configmap invalid-ip-config -o=jsonpath='{.data.InvalidIP}' -n $NAMESPACE)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ spec:
fi

delete_cm=$(kubectl delete configmap nb-config -n $NAMESPACE)
if [[ "$delete_cm" == "configmap \"nb-config\" deleted" ]]; then
if [[ "$delete_cm" == *'configmap "nb-config" deleted'* ]]; then
echo "Configmap deleted successfully"
else
echo "Unable to delete the configmap: $delete_cm. Error: $delete_cm"
Expand All @@ -146,6 +146,9 @@ spec:
- name: get service ip and compare with reserved ip
try:
- script:
shell: bash
shellArgs:
- -c
content: |
set -euo pipefail

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ spec:
fi

delete_cm=$(kubectl delete configmap nb-config -n $NAMESPACE)
if [[ "$delete_cm" == "configmap \"nb-config\" deleted" ]]; then
if [[ "$delete_cm" == *'configmap "nb-config" deleted'* ]]; then
echo "Configmap deleted successfully"
else
echo "Unable to delete the configmap: $delete_cm. Error: $delete_cm"
Expand All @@ -164,6 +164,9 @@ spec:
- name: get service ip and compare with reserved ip
try:
- script:
shell: bash
shellArgs:
- -c
content: |
set -euo pipefail

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ spec:
fi

delete_cm=$(kubectl delete configmap reserved-ip-config -n $NAMESPACE)
if [[ "$delete_cm" == "configmap \"reserved-ip-config\" deleted" ]]; then
if [[ "$delete_cm" == *'configmap "reserved-ip-config" deleted'* ]]; then
echo "Configmap deleted successfully"
else
echo "Unable to delete the configmap: $delete_cm. Error: $delete_cm"
Expand Down Expand Up @@ -208,6 +208,9 @@ spec:
- name: get service ip and compare with reserved ip
try:
- script:
shell: bash
shellArgs:
- -c
content: |
set -euo pipefail

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ spec:
kind: Service
cleanup:
- script:
shell: bash
shellArgs:
- -c
content: |
set -euo pipefail

Expand All @@ -88,7 +91,7 @@ spec:
fi

delete_cm=$(kubectl delete configmap reserved-ip-config -n $NAMESPACE)
if [[ "$delete_cm" == "configmap \"reserved-ip-config\" deleted" ]]; then
if [[ "$delete_cm" == *'configmap "reserved-ip-config" deleted'* ]]; then
echo "Configmap deleted successfully"
else
echo "Unable to delete the configmap: $delete_cm. Error: $delete_cm"
Expand Down Expand Up @@ -158,6 +161,9 @@ spec:
- name: get service ip and compare with reserved ip
try:
- script:
shell: bash
shellArgs:
- -c
content: |
set -euo pipefail

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ spec:
fi

delete_cm=$(kubectl delete configmap reserved-ip-config -n $NAMESPACE)
if [[ "$delete_cm" == "configmap \"reserved-ip-config\" deleted" ]]; then
if [[ "$delete_cm" == *'configmap "reserved-ip-config" deleted'* ]]; then
echo "Configmap deleted successfully"
else
echo "Unable to delete the configmap: $delete_cm. Error: $delete_cm"
Expand Down Expand Up @@ -189,6 +189,9 @@ spec:
- name: get service ip and compare with reserved ip
try:
- script:
shell: bash
shellArgs:
- -c
content: |
set -euo pipefail

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ spec:
fi

delete_cm=$(kubectl delete configmap reserved-ip-config -n $NAMESPACE)
if [[ "$delete_cm" == "configmap \"reserved-ip-config\" deleted" ]]; then
if [[ "$delete_cm" == *'configmap "reserved-ip-config" deleted'* ]]; then
echo "Configmap deleted successfully"
else
echo "Unable to delete the configmap: $delete_cm. Error: $delete_cm"
Expand All @@ -163,6 +163,9 @@ spec:
- name: get service ip and compare with reserved ip
try:
- script:
shell: bash
shellArgs:
- -c
content: |
set -euo pipefail

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ spec:
fi

delete_cm=$(kubectl delete configmap reserved-ip-config -n $NAMESPACE)
if [[ "$delete_cm" == "configmap \"reserved-ip-config\" deleted" ]]; then
if [[ "$delete_cm" == *'configmap "reserved-ip-config" deleted'* ]]; then
echo "Configmap deleted successfully"
else
echo "Unable to delete the configmap: $delete_cm. Error: $delete_cm"
Expand Down Expand Up @@ -208,6 +208,9 @@ spec:
- name: get service ip and compare with reserved ip
try:
- script:
shell: bash
shellArgs:
- -c
content: |
set -euo pipefail

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ spec:
fi

delete_cm=$(kubectl delete configmap reserved-ip-config -n $NAMESPACE)
if [[ "$delete_cm" == "configmap \"reserved-ip-config\" deleted" ]]; then
if [[ "$delete_cm" == *'configmap "reserved-ip-config" deleted'* ]]; then
echo "Configmap deleted successfully"
else
echo "Unable to delete the configmap: $delete_cm. Error: $delete_cm"
Expand All @@ -195,6 +195,9 @@ spec:
- name: get service ip and compare with reserved ip
try:
- script:
shell: bash
shellArgs:
- -c
content: |
set -euo pipefail

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ spec:
fi

delete_cm=$(kubectl delete configmap nb-config -n $NAMESPACE)
if [[ "$delete_cm" == "configmap \"nb-config\" deleted" ]]; then
if [[ "$delete_cm" == *'configmap "nb-config" deleted'* ]]; then
echo "Configmap deleted successfully"
else
echo "Unable to delete the configmap: $delete_cm. Error: $delete_cm"
Expand All @@ -145,6 +145,9 @@ spec:
- name: get service ip and compare with reserved ip
try:
- script:
shell: bash
shellArgs:
- -c
content: |
set -euo pipefail

Expand Down
5 changes: 4 additions & 1 deletion e2e/test/lb-created-with-unreserved-ip/chainsaw-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ spec:
set -euo pipefail

delete_cm=$(kubectl delete configmap unreserved-ip-config -n $NAMESPACE)
if [[ "$delete_cm" == "configmap \"unreserved-ip-config\" deleted" ]]; then
if [[ "$delete_cm" == *'configmap "unreserved-ip-config" deleted'* ]]; then
echo "Configmap deleted successfully"
else
echo "Unable to delete the configmap: $delete_cm. Error: $delete_cm"
Expand All @@ -81,6 +81,9 @@ spec:
- name: get service ip and compare with unreserved ip
try:
- script:
shell: bash
shellArgs:
- -c
content: |
set -euo pipefail

Expand Down
2 changes: 2 additions & 0 deletions e2e/test/lb-fw-delete-acl/chainsaw-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ spec:
kubectl logs -n kube-system daemonsets/ccm-linode | grep "lb-fw-delete-acl" | tail -100
steps:
- name: Create pods and services
skipDelete: true
try:
- apply:
file: create-pods-services.yaml
Expand Down Expand Up @@ -118,6 +119,7 @@ spec:
($error == null): true
(contains($stdout, 'firewall detatched and deleted')): true
- name: Refresh service by adding the ACL again
skipDelete: true
try:
- apply:
file: create-pods-services.yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ spec:
kubectl logs -n kube-system daemonsets/ccm-linode | grep "lb-preserve-annotation-svc-delete" | tail -100
steps:
- name: Create resources
skipDelete: true
try:
- apply:
file: create-pods-services.yaml
Expand Down
1 change: 1 addition & 0 deletions e2e/test/lb-simple/chainsaw-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ spec:
kubectl logs -n kube-system daemonsets/ccm-linode | grep "lb-simple" | tail -100
steps:
- name: Create pods and services
skipDelete: true
try:
- apply:
file: create-pods-services.yaml
Expand Down
1 change: 1 addition & 0 deletions e2e/test/lb-single-tls/chainsaw-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ spec:
check:
($error == null): true
- name: Create pods and services
skipDelete: true
try:
- apply:
file: create-pods-services.yaml
Expand Down
2 changes: 2 additions & 0 deletions e2e/test/lb-update-port/chainsaw-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ spec:
kubectl logs -n kube-system daemonsets/ccm-linode | grep "lb-update-port" | tail -100
steps:
- name: Create pods and services
skipDelete: true
try:
- apply:
file: create-pods-services.yaml
Expand Down Expand Up @@ -82,6 +83,7 @@ spec:
($error == null): true
(contains($stdout, 'all pods responded')): true
- name: Update service
skipDelete: true
try:
- apply:
file: update-port-service.yaml
Expand Down
1 change: 1 addition & 0 deletions e2e/test/lb-with-ipv6-backends/chainsaw-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ spec:
kubectl logs -n kube-system daemonsets/ccm-linode | grep "lb-with-ipv6-backends" | tail -100
steps:
- name: Create pods and service
skipDelete: true
try:
- apply:
file: create-pods-services.yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,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: Add ProxyProtocol v2 using deprecated annotation
try:
- script:
Expand Down
Loading