Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hors committed Dec 17, 2024
1 parent ecd0f95 commit 8950def
Show file tree
Hide file tree
Showing 21 changed files with 22 additions and 22 deletions.
4 changes: 2 additions & 2 deletions e2e-tests/functions
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ remove_all_finalizers() {
for resource in "${resource_types[@]}"; do
echo "removing all finalizers for $resource resources"

kubectl -n "${OPERATOR_NS:-$NAMESPACE}" get "$resource" -o json | jq '.items[] | .metadata.name' -r | while IFS= read -r name; do
kubectl -n "${OPERATOR_NS:-$NAMESPACE}" patch "$resource" "$name" --type=json -p='[{"op": "remove", "path": "/metadata/finalizers"}]'
kubectl -n "${NAMESPACE}" get "$resource" -o json | jq '.items[] | .metadata.name' -r | while IFS= read -r name; do
kubectl -n "${NAMESPACE}" patch "$resource" "$name" --type=json -p='[{"op": "remove", "path": "/metadata/finalizers"}]'
done
done
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ commands:
source ../../functions
destroy_operator
remove_all_finalizers
destroy_operator
timeout: 60
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ commands:
source ../../functions
destroy_operator
remove_all_finalizers
destroy_operator
timeout: 60
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ commands:
source ../../functions
destroy_operator
remove_all_finalizers
destroy_operator
timeout: 60
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ commands:
source ../../functions
destroy_operator
remove_all_finalizers
destroy_operator
timeout: 60
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ commands:
source ../../functions
destroy_operator
remove_all_finalizers
destroy_operator
timeout: 60
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ commands:
source ../../functions
destroy_operator
remove_all_finalizers
destroy_operator
timeout: 60
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ commands:
source ../../functions
destroy_operator
remove_all_finalizers
destroy_operator
timeout: 60
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ commands:
source ../../functions
destroy_operator
remove_all_finalizers
destroy_operator
timeout: 60
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ commands:
source ../../functions
destroy_operator
remove_all_finalizers
destroy_operator
timeout: 60
2 changes: 1 addition & 1 deletion e2e-tests/tests/one-pod/99-remove-cluster-gracefully.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ commands:
source ../../functions
destroy_operator
remove_all_finalizers
destroy_operator
timeout: 60
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ commands:
source ../../functions
destroy_operator
remove_all_finalizers
destroy_operator
timeout: 60
2 changes: 1 addition & 1 deletion e2e-tests/tests/pitr/99-remove-cluster-gracefully.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ commands:
source ../../functions
destroy_operator
remove_all_finalizers
destroy_operator
timeout: 60
2 changes: 1 addition & 1 deletion e2e-tests/tests/scaling/99-remove-cluster-gracefully.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ commands:
source ../../functions
destroy_operator
remove_all_finalizers
destroy_operator
timeout: 60
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ commands:
source ../../functions
destroy_operator
remove_all_finalizers
destroy_operator
timeout: 60
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ commands:
source ../../functions
destroy_operator
remove_all_finalizers
destroy_operator
timeout: 60
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ commands:
source ../../functions
destroy_operator
remove_all_finalizers
destroy_operator
timeout: 60
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ commands:
source ../../functions
destroy_operator
remove_all_finalizers
destroy_operator
timeout: 60
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ commands:
source ../../functions
destroy_operator
remove_all_finalizers
destroy_operator
timeout: 60
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ commands:
source ../../functions
destroy_operator
remove_all_finalizers
destroy_operator
timeout: 60
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ commands:
source ../../functions
destroy_operator
remove_all_finalizers
destroy_operator
timeout: 60

0 comments on commit 8950def

Please sign in to comment.