We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dde8c6a commit acaf4a4Copy full SHA for acaf4a4
1 file changed
tests/templates/kuttl/smoke/13-assert.yaml.j2
@@ -41,8 +41,8 @@ commands:
41
}
42
CONFEOF
43
)
44
- expected=$(jq -Sn --arg cfg "$expected_config" '{"config.json": $cfg}')
45
- actual=$(kubectl -n $NAMESPACE get cm test-opa-server-default -o json | jq -S '.data')
+ expected=$(jq -Sn --arg cfg "$expected_config" '$cfg')
+ actual=$(kubectl -n $NAMESPACE get cm test-opa-server-default -o json | jq -S '.data."config.json"')
46
if [ "$expected" != "$actual" ]; then
47
echo "ERROR: ConfigMap test-opa-server-default data drifted from snapshot."
48
echo "=== expected ==="
0 commit comments