fix self-healing-advanced test
@@ -7,12 +7,10 @@ test_dir=$(realpath $(dirname $0))
. "${test_dir}"/../functions
cluster="self-healing-advanced"
-pumba_all_pods() {
- local action=$1
-
- # run chaos for Pod
+delete_all_pods() {
+ # run chaos for Pods
for _ in $(seq 1 5); do
- run_pumba "$action" "re2:$cluster-pxc-[0-9]+_"
+ kubectl_bin delete pod self-healing-advanced-pxc-0 self-healing-advanced-pxc-1 self-healing-advanced-pxc-2 --grace-period=0 --force || :
done
sleep 60
@@ -24,7 +22,7 @@ pumba_all_pods() {
cat_config "$test_dir/conf/$cluster.yml" \
| sed -e 's/forceUnsafeBootstrap: false/forceUnsafeBootstrap: true/' \
| kubectl_bin apply -f-
- kubectl_bin delete pod self-healing-advanced-pxc-0 self-healing-advanced-pxc-1 self-healing-advanced-pxc-2 --grace-period=0 --force
+ kubectl_bin delete pod self-healing-advanced-pxc-0 self-healing-advanced-pxc-1 self-healing-advanced-pxc-2 --grace-period=0 --force || :
# check if all 3 Pods started
wait_for_running $cluster-pxc 3
@@ -44,9 +42,8 @@ main() {
desc 'start cluster'
spinup_pxc "$cluster" "$test_dir/conf/$cluster.yml"
- # pumba should be run on all pxc
- desc 'kill all PXC pods'
- pumba_all_pods kill
+ desc 'delete all PXC pods'
+ delete_all_pods
destroy "$namespace"
}
