summaryrefslogtreecommitdiff
path: root/test/apiv2/44-mounts.at
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2021-03-11 15:52:19 -0500
committerGitHub <noreply@github.com>2021-03-11 15:52:19 -0500
commit81737b37738dfa21be3cf9775919458523511ae9 (patch)
tree20fe81671ccaa59debf1b108212c78cacb394808 /test/apiv2/44-mounts.at
parent8d33bfabaa20612718d909494c2ceec26482d279 (diff)
parent258749e43dc8c2e842f96f8672823b0fa4e5a147 (diff)
downloadpodman-81737b37738dfa21be3cf9775919458523511ae9.tar.gz
podman-81737b37738dfa21be3cf9775919458523511ae9.tar.bz2
podman-81737b37738dfa21be3cf9775919458523511ae9.zip
Merge pull request #9686 from edsantiago/apiv2_jsonify
apiv2 tests: finally fix POST as originally intended
Diffstat (limited to 'test/apiv2/44-mounts.at')
-rw-r--r--test/apiv2/44-mounts.at11
1 files changed, 8 insertions, 3 deletions
diff --git a/test/apiv2/44-mounts.at b/test/apiv2/44-mounts.at
index 5dc560852..901245da6 100644
--- a/test/apiv2/44-mounts.at
+++ b/test/apiv2/44-mounts.at
@@ -4,7 +4,12 @@ podman pull $IMAGE &>/dev/null
# Test various HostConfig options
tmpfs_name="/mytmpfs"
-t POST containers/create?name=hostconfig_test '"Image":"'$IMAGE'","Cmd":["df"],"HostConfig":{"Binds":["/tmp/doesnotexist:/test1"],"TmpFs":{"'$tmpfs_name'":"rw"}}' 201 \
+t POST containers/create?name=hostconfig_test \
+ Image=$IMAGE \
+ Cmd='["df"]' \
+ HostConfig='{"Binds":["/tmp/doesnotexist:/test1"]' \
+ TmpFs="{\"$tmpfs_name\":\"rw\"}}" \
+ 201 \
.Id~[0-9a-f]\\{64\\}
cid=$(jq -r '.Id' <<<"$output")
@@ -13,8 +18,8 @@ t GET containers/${cid}/json 200 \
.HostConfig.Tmpfs[\"${tmpfs_name}\"]~rw,
# Run the container, verify output
-t POST containers/${cid}/start '' 204
-t POST containers/${cid}/wait '' 200
+t POST containers/${cid}/start 204
+t POST containers/${cid}/wait 200
t GET containers/${cid}/logs?stdout=true 200
like "$(<$WORKDIR/curl.result.out)" ".* ${tmpfs_name}" \