summaryrefslogtreecommitdiff
path: root/test/apiv2/26-containersWait.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/26-containersWait.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/26-containersWait.at')
-rw-r--r--test/apiv2/26-containersWait.at10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/apiv2/26-containersWait.at b/test/apiv2/26-containersWait.at
index 3f530c3f0..6a628e55a 100644
--- a/test/apiv2/26-containersWait.at
+++ b/test/apiv2/26-containersWait.at
@@ -13,15 +13,15 @@ podman rm -a -f &>/dev/null
CTR="WaitTestingCtr"
-t POST "containers/nonExistent/wait?condition=next-exit" '' 404
+t POST "containers/nonExistent/wait?condition=next-exit" 404
podman create --name "${CTR}" --entrypoint '["sleep", "0.5"]' "${IMAGE}"
-t POST "containers/${CTR}/wait?condition=non-existent-cond" '' 400
+t POST "containers/${CTR}/wait?condition=non-existent-cond" 400
-t POST "containers/${CTR}/wait?condition=not-running" '' 200
+t POST "containers/${CTR}/wait?condition=not-running" 200
-t POST "containers/${CTR}/wait?condition=next-exit" '' 200 &
+t POST "containers/${CTR}/wait?condition=next-exit" 200 &
child_pid=$!
podman start "${CTR}"
wait "${child_pid}"
@@ -37,7 +37,7 @@ if kill -2 "${child_pid}" 2> "/dev/null"; then
WAIT_TEST_ERROR="1"
fi
-t POST "containers/${CTR}/wait?condition=removed" '' 200 &
+t POST "containers/${CTR}/wait?condition=removed" 200 &
child_pid=$!
podman container rm "${CTR}"
wait "${child_pid}"