Skip to content

Commit acaf4a4

Browse files
test(smoke): Fix assertions (#839)
1 parent dde8c6a commit acaf4a4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ commands:
4141
}
4242
CONFEOF
4343
)
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')
44+
expected=$(jq -Sn --arg cfg "$expected_config" '$cfg')
45+
actual=$(kubectl -n $NAMESPACE get cm test-opa-server-default -o json | jq -S '.data."config.json"')
4646
if [ "$expected" != "$actual" ]; then
4747
echo "ERROR: ConfigMap test-opa-server-default data drifted from snapshot."
4848
echo "=== expected ==="

0 commit comments

Comments
 (0)