diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-03-10 14:04:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-10 14:04:51 +0100 |
commit | 786757fb01208cf72e1c67611acbab1411746036 (patch) | |
tree | bf5913f1abfc434f5dc3a2fb7684c7dc416aa296 /test | |
parent | 5331096b3882cd5c8e587200560e44ef1eb990a3 (diff) | |
parent | f1eb8e816257d9dc810cfa6957e09db1ffa7db96 (diff) | |
download | podman-786757fb01208cf72e1c67611acbab1411746036.tar.gz podman-786757fb01208cf72e1c67611acbab1411746036.tar.bz2 podman-786757fb01208cf72e1c67611acbab1411746036.zip |
Merge pull request #9681 from rhatdan/rm
Removing a non existing container API should return 404
Diffstat (limited to 'test')
-rw-r--r-- | test/apiv2/20-containers.at | 1 | ||||
-rw-r--r-- | test/system/050-stop.bats | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/test/apiv2/20-containers.at b/test/apiv2/20-containers.at index f73d03123..383d92ef3 100644 --- a/test/apiv2/20-containers.at +++ b/test/apiv2/20-containers.at @@ -162,6 +162,7 @@ t DELETE images/localhost/newrepo:v1?force=true 200 t DELETE images/localhost/newrepo:v2?force=true 200 t DELETE libpod/containers/$cid 204 t DELETE libpod/containers/myctr 204 +t DELETE libpod/containers/bogus 404 # test apiv2 create container with correct entrypoint and cmd diff --git a/test/system/050-stop.bats b/test/system/050-stop.bats index 7d9f1fcb3..0652a97e4 100644 --- a/test/system/050-stop.bats +++ b/test/system/050-stop.bats @@ -66,7 +66,7 @@ load helpers name=thiscontainerdoesnotexist run_podman 125 stop $name is "$output" \ - "Error: no container with name or ID $name found: no such container" \ + "Error: no container with name or ID \"$name\" found: no such container" \ "podman stop nonexistent container" run_podman stop --ignore $name |