From 37c62e869fed3e6d398507b4e1b46aec22c552d9 Mon Sep 17 00:00:00 2001 From: Razvan-Daniel Mihai <84674+razvan@users.noreply.github.com> Date: Wed, 8 Oct 2025 11:56:00 +0200 Subject: [PATCH] tests: add assert for hbck2 --- tests/templates/kuttl/smoke/80-assert.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/templates/kuttl/smoke/80-assert.yaml diff --git a/tests/templates/kuttl/smoke/80-assert.yaml b/tests/templates/kuttl/smoke/80-assert.yaml new file mode 100644 index 00000000..fd74cc5a --- /dev/null +++ b/tests/templates/kuttl/smoke/80-assert.yaml @@ -0,0 +1,11 @@ +--- +apiVersion: kuttl.dev/v1beta1 +kind: TestAssert +metadata: + name: assert-hbck +commands: + # Run the hbck2 command and tests that the return code is zero (0) + # This proves that the script is successfully starting the operation + # not that the Hbase operation is successful. + - script: kubectl exec --namespace=$NAMESPACE -c hbase test-hbase-restserver-default-0 -- hbck2 recoverUnknown +timeout: 480