summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Shen <weshen@redhat.com>2020-12-07 07:15:57 -0500
committerEdward Shen <weshen@redhat.com>2020-12-07 07:15:57 -0500
commit200168a3b1fad3625c1a6b67c150ea0368a93036 (patch)
treebf107ff092649c82b2970b2f7d27260c6c8bf185
parent0c967319f85101b84631aff158803e3f11a8402b (diff)
downloadpodman-200168a3b1fad3625c1a6b67c150ea0368a93036.tar.gz
podman-200168a3b1fad3625c1a6b67c150ea0368a93036.tar.bz2
podman-200168a3b1fad3625c1a6b67c150ea0368a93036.zip
Add APIv2 test for containers-prune
Signed-off-by: Edward Shen <weshen@redhat.com>
-rw-r--r--test/apiv2/25-containersMore.at9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/apiv2/25-containersMore.at b/test/apiv2/25-containersMore.at
index 4f6b80a5f..9d774ef27 100644
--- a/test/apiv2/25-containersMore.at
+++ b/test/apiv2/25-containersMore.at
@@ -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