File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed
tests/templates/kuttl/smoke Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -9,10 +9,3 @@ metadata:
9
9
name : spark-history-node-default
10
10
status :
11
11
readyReplicas : 1
12
- ---
13
- # This test checks if the containerdebug-state.json file is present and valid
14
- apiVersion : kuttl.dev/v1beta1
15
- kind : TestAssert
16
- timeout : 60
17
- commands :
18
- - script : kubectl exec -n $NAMESPACE --container spark-history spark-history-node-default-0 -- cat /stackable/log/containerdebug-state.json | jq --exit-status
Original file line number Diff line number Diff line change
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 : 60
6
+ commands :
7
+ - script : kubectl exec -n $NAMESPACE --container spark-history spark-history-node-default-0 -- cat /stackable/log/containerdebug-state.json | jq --exit-status '"valid JSON"'
Original file line number Diff line number Diff line change @@ -12,4 +12,4 @@ kind: TestAssert
12
12
commands :
13
13
- script : |
14
14
SPARK_SUBMIT_POD=$(kubectl get -n $NAMESPACE pods --field-selector=status.phase=Running --selector batch.kubernetes.io/job-name=spark-pi-s3-1 -o jsonpath='{.items[0].metadata.name}')
15
- kubectl exec -n $NAMESPACE --container spark-submit $SPARK_SUBMIT_POD -- cat /stackable/log/containerdebug-state.json | jq --exit-status
15
+ kubectl exec -n $NAMESPACE --container spark-submit $SPARK_SUBMIT_POD -- cat /stackable/log/containerdebug-state.json | jq --exit-status '"valid JSON"'
You can’t perform that action at this time.
0 commit comments