From 200168a3b1fad3625c1a6b67c150ea0368a93036 Mon Sep 17 00:00:00 2001 From: Edward Shen Date: Mon, 7 Dec 2020 07:15:57 -0500 Subject: Add APIv2 test for containers-prune Signed-off-by: Edward Shen --- test/apiv2/25-containersMore.at | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -- cgit v1.2.3-54-g00ecf