summaryrefslogtreecommitdiff
path: root/test/podman_pause.bats
diff options
context:
space:
mode:
authorTomSweeneyRedHat <tsweeney@redhat.com>2018-01-04 17:20:30 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2018-01-05 14:42:23 +0000
commit09d12d9be669567a0217eb3972089631457a834d (patch)
tree355b1ab4ffa487ab96d955c32b856340ac068a0c /test/podman_pause.bats
parent7c7a85521eb12599d7f408774607b60f97fc2ba7 (diff)
downloadpodman-09d12d9be669567a0217eb3972089631457a834d.tar.gz
podman-09d12d9be669567a0217eb3972089631457a834d.tar.bz2
podman-09d12d9be669567a0217eb3972089631457a834d.zip
Add removal failure test after unpause
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com> Closes: #190 Approved by: mheon
Diffstat (limited to 'test/podman_pause.bats')
-rw-r--r--test/podman_pause.bats5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/podman_pause.bats b/test/podman_pause.bats
index 49db0c2aa..b8f0a8746 100644
--- a/test/podman_pause.bats
+++ b/test/podman_pause.bats
@@ -101,6 +101,11 @@ function teardown() {
run bash -c "${PODMAN_BINARY} ${PODMAN_OPTIONS} ps -a --filter id=$ctr_id"
echo "$output"
[ "$status" -eq 0 ]
+ # Container should be running after unpause and shouldn't
+ # be removable without the force flag.
+ run bash -c "${PODMAN_BINARY} ${PODMAN_OPTIONS} rm $ctr_id"
+ echo "$output"
+ [ "$status" -eq 125 ]
run bash -c "${PODMAN_BINARY} ${PODMAN_OPTIONS} rm -f $ctr_id"
echo "$output"
[ "$status" -eq 0 ]