summaryrefslogtreecommitdiff
path: root/test/apiv2
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-12-07 11:21:06 -0500
committerGitHub <noreply@github.com>2020-12-07 11:21:06 -0500
commit225907536f52d672284151e00e00767a9588c8fc (patch)
tree2dbff8d7e2b18419c0336f007a1f68ff45a45290 /test/apiv2
parente6f80fa61aa082d2226b8258ea247186451d84d3 (diff)
parent200168a3b1fad3625c1a6b67c150ea0368a93036 (diff)
downloadpodman-225907536f52d672284151e00e00767a9588c8fc.tar.gz
podman-225907536f52d672284151e00e00767a9588c8fc.tar.bz2
podman-225907536f52d672284151e00e00767a9588c8fc.zip
Merge pull request #8625 from Edward5hen/container-prune-test
Add APIv2 test for containers-prune
Diffstat (limited to 'test/apiv2')
-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