Add APIv2 test for containers-prune

Signed-off-by: Edward Shen <weshen@redhat.com>
This commit is contained in:
Edward Shen
2020-12-07 07:15:57 -05:00
parent 0c967319f8
commit 200168a3b1

View File

@ -79,4 +79,13 @@ like "$output" ".*spec:.*" "Check generated kube yaml(service=true) - spec"
like "$output" ".*kind:\\sService.*" "Check generated kube yaml(service=true) - kind: Service"
t DELETE libpod/containers/$cid 204
# Create 3 stopped containers to test containers prune
podman run $IMAGE true
podman run $IMAGE true
podman run $IMAGE true
t POST libpod/containers/prune '' 200
t GET libpod/containers/json 200 \
length=0
# vim: filetype=sh