From 6688e0d6dfded1b92fd07a05e9410cbe15ea49a9 Mon Sep 17 00:00:00 2001 From: Razvan-Daniel Mihai <84674+razvan@users.noreply.github.com> Date: Tue, 17 Dec 2024 12:40:40 +0100 Subject: [PATCH] factor out ctnrdebug test --- tests/templates/kuttl/smoke/10-assert.yaml.j2 | 7 ------- tests/templates/kuttl/smoke/12-assert.yaml | 7 +++++++ 2 files changed, 7 insertions(+), 7 deletions(-) create mode 100644 tests/templates/kuttl/smoke/12-assert.yaml 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"'