Skip to content

Commit e5a63d1

Browse files
committed
test/apiv2: Fix JSON escaping in healthcheck test
Properly escape quotes in the Healthcheck JSON for BATS test framework. Signed-off-by: MayorFaj <[email protected]>
1 parent afa425d commit e5a63d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/apiv2/20-containers.at

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ t DELETE containers/$cid?v=true 204
599599
t POST containers/create \
600600
Image=$IMAGE \
601601
Cmd='["top"]' \
602-
Healthcheck='{"Test":["CMD","/usr/bin/test","--arg=value with spaces","another arg"]}' \
602+
Healthcheck="{\"Test\":[\"CMD\",\"/usr/bin/test\",\"--arg=value with spaces\",\"another arg\"]}" \
603603
201 \
604604
.Id~[0-9a-f]\\{64\\}
605605
cid=$(jq -r '.Id' <<<"$output")

0 commit comments

Comments
 (0)