Skip to content

Commit 32656ba

Browse files
committed
factor out ctnrdebug test
1 parent 7495848 commit 32656ba

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

tests/templates/kuttl/smoke/30-assert.yaml.j2

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,3 @@ status:
143143
expectedPods: {{ test_scenario['values']['number-of-datanodes'] }}
144144
currentHealthy: {{ test_scenario['values']['number-of-datanodes'] }}
145145
disruptionsAllowed: 1
146-
---
147-
# This test checks if the containerdebug-state.json file is present and valid
148-
apiVersion: kuttl.dev/v1beta1
149-
kind: TestAssert
150-
timeout: 600
151-
commands:
152-
- script: kubectl exec -n $NAMESPACE --container namenode hdfs-namenode-default-0 -- cat /stackable/log/containerdebug-state.json | jq --exit-status
153-
- script: kubectl exec -n $NAMESPACE --container datanode hdfs-datanode-default-0 -- cat /stackable/log/containerdebug-state.json | jq --exit-status
154-
- script: kubectl exec -n $NAMESPACE --container journalnode hdfs-journalnode-default-0 -- cat /stackable/log/containerdebug-state.json | jq --exit-status
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
# This test checks if the containerdebug-state.json file is present and valid
3+
apiVersion: kuttl.dev/v1beta1
4+
kind: TestAssert
5+
timeout: 600
6+
commands:
7+
- script: kubectl exec -n $NAMESPACE --container namenode hdfs-namenode-default-0 -- cat /stackable/log/containerdebug-state.json | jq --exit-status '"valid JSON"'
8+
- script: kubectl exec -n $NAMESPACE --container datanode hdfs-datanode-default-0 -- cat /stackable/log/containerdebug-state.json | jq --exit-status '"valid JSON"'
9+
- script: kubectl exec -n $NAMESPACE --container journalnode hdfs-journalnode-default-0 -- cat /stackable/log/containerdebug-state.json | jq --exit-status '"valid JSON"'

0 commit comments

Comments
 (0)