File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed
tests/templates/kuttl/smoke Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 3232 - name: vector
3333{% endif %}
3434 terminationGracePeriodSeconds: 125 # 2 minutes + 5s safety buffer
35- ---
36- # This test checks if the containerdebug-state.json file is present and valid
37- apiVersion: kuttl.dev/v1beta1
38- kind: TestAssert
39- timeout: 600
40- commands:
41- - script: |
42- FIRST_OPA_POD=$(kubectl get -n $NAMESPACE pods --field-selector=status.phase=Running --selector app.kubernetes.io/instance=test-opa -o jsonpath='{.items[0].metadata.name}')
43- kubectl exec -n $NAMESPACE --container opa $FIRST_OPA_POD -- 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 : 600
6+ commands :
7+ - script : |
8+ FIRST_OPA_POD=$(kubectl get -n $NAMESPACE pods --field-selector=status.phase=Running --selector app.kubernetes.io/instance=test-opa -o jsonpath='{.items[0].metadata.name}')
9+ kubectl exec -n $NAMESPACE --container opa $FIRST_OPA_POD -- cat /stackable/log/containerdebug-state.json | jq --exit-status '"valid JSON"'
You can’t perform that action at this time.
0 commit comments