diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2021-03-11 15:52:19 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-11 15:52:19 -0500 |
commit | 81737b37738dfa21be3cf9775919458523511ae9 (patch) | |
tree | 20fe81671ccaa59debf1b108212c78cacb394808 /test/apiv2/22-stop.at | |
parent | 8d33bfabaa20612718d909494c2ceec26482d279 (diff) | |
parent | 258749e43dc8c2e842f96f8672823b0fa4e5a147 (diff) | |
download | podman-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/22-stop.at')
-rw-r--r-- | test/apiv2/22-stop.at | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/apiv2/22-stop.at b/test/apiv2/22-stop.at index 11318ca81..91bc9937d 100644 --- a/test/apiv2/22-stop.at +++ b/test/apiv2/22-stop.at @@ -8,17 +8,17 @@ podman pull $IMAGE &>/dev/null # stop, by name podman run -dt --name mytop $IMAGE top &>/dev/null -t GET libpod/containers/mytop/json 200 .State.Status=running -t POST libpod/containers/mytop/stop "" 204 -t GET libpod/containers/mytop/json 200 .State.Status~\\\(exited\\\|stopped\\\) -t DELETE libpod/containers/mytop 204 +t GET libpod/containers/mytop/json 200 .State.Status=running +t POST libpod/containers/mytop/stop 204 +t GET libpod/containers/mytop/json 200 .State.Status~\\\(exited\\\|stopped\\\) +t DELETE libpod/containers/mytop 204 # stop, by ID # Remember that podman() hides all output; we need to get our CID via inspect podman run -dt --name mytop $IMAGE top -t GET libpod/containers/mytop/json 200 .State.Status=running +t GET libpod/containers/mytop/json 200 .State.Status=running cid=$(jq -r .Id <<<"$output") -t POST libpod/containers/$cid/stop "" 204 -t GET libpod/containers/mytop/json 200 .State.Status~\\\(exited\\\|stopped\\\) -t DELETE libpod/containers/mytop 204 +t POST libpod/containers/$cid/stop 204 +t GET libpod/containers/mytop/json 200 .State.Status~\\\(exited\\\|stopped\\\) +t DELETE libpod/containers/mytop 204 |