diff options
author | openshift-ci[bot] <75433959+openshift-ci[bot]@users.noreply.github.com> | 2022-06-28 14:07:04 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-28 14:07:04 +0000 |
commit | 50fa651a4e3cfde2b64aa818ad1009f4289f0afd (patch) | |
tree | bcd11013b4a2a167008614ad8319345cddf7c45f /test | |
parent | 8267cd3c514ed1e8f41a7e4b6017f11400f134aa (diff) | |
parent | cc49146332e279644f1357c6a5e209927bd73471 (diff) | |
download | podman-50fa651a4e3cfde2b64aa818ad1009f4289f0afd.tar.gz podman-50fa651a4e3cfde2b64aa818ad1009f4289f0afd.tar.bz2 podman-50fa651a4e3cfde2b64aa818ad1009f4289f0afd.zip |
Merge pull request #14700 from shuttle-hq/bug/docker-compat-initialized
Docker compat returning unknown "initialized" for `status.status`
Diffstat (limited to 'test')
-rw-r--r-- | test/apiv2/20-containers.at | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/apiv2/20-containers.at b/test/apiv2/20-containers.at index cfd6aab33..6ef4ef917 100644 --- a/test/apiv2/20-containers.at +++ b/test/apiv2/20-containers.at @@ -502,3 +502,27 @@ done stop_service start_service + +# Our states are different from Docker's. +# Regression test for #14700 (Docker compat returning unknown "initialized" for status.status) to ensure the stay compatible +podman create --name status-test $IMAGE sh -c "sleep 3" +t GET containers/status-test/json 200 .State.Status="created" + +podman init status-test +t GET containers/status-test/json 200 .State.Status="created" + +podman start status-test +t GET containers/status-test/json 200 .State.Status="running" + +podman pause status-test +t GET containers/status-test/json 200 .State.Status="paused" + +podman unpause status-test +t GET containers/status-test/json 200 .State.Status="running" + +podman stop status-test & +sleep 1 +t GET containers/status-test/json 200 .State.Status="stopping" + +sleep 3 +t GET containers/status-test/json 200 .State.Status="exited" |