diff --git a/tests/templates/kuttl/smoke/10-assert.yaml.j2 b/tests/templates/kuttl/smoke/10-assert.yaml.j2 index c80e6eb2..22ebd65a 100644 --- a/tests/templates/kuttl/smoke/10-assert.yaml.j2 +++ b/tests/templates/kuttl/smoke/10-assert.yaml.j2 @@ -83,10 +83,3 @@ status: expectedPods: 3 currentHealthy: 3 disruptionsAllowed: 1 ---- -# This test checks if the containerdebug-state.json file is present and valid -apiVersion: kuttl.dev/v1beta1 -kind: TestAssert -timeout: 120 -commands: - - script: kubectl exec -n $NAMESPACE --container zookeeper test-zk-server-primary-0 -- cat /stackable/log/containerdebug-state.json | jq --exit-status diff --git a/tests/templates/kuttl/smoke/12-assert.yaml b/tests/templates/kuttl/smoke/12-assert.yaml new file mode 100644 index 00000000..f0e6d029 --- /dev/null +++ b/tests/templates/kuttl/smoke/12-assert.yaml @@ -0,0 +1,7 @@ +--- +# This test checks if the containerdebug-state.json file is present and valid +apiVersion: kuttl.dev/v1beta1 +kind: TestAssert +timeout: 120 +commands: + - script: kubectl exec -n $NAMESPACE --container zookeeper test-zk-server-primary-0 -- cat /stackable/log/containerdebug-state.json | jq --exit-status '"valid JSON"'