Skip to content

Commit

Permalink
Merge pull request #8625 from Edward5hen/container-prune-test
Browse files Browse the repository at this point in the history
Add APIv2 test for containers-prune
  • Loading branch information
openshift-merge-robot authored Dec 7, 2020
2 parents e6f80fa + 200168a commit 2259075
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/apiv2/25-containersMore.at
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 2259075

Please sign in to comment.