From 09d12d9be669567a0217eb3972089631457a834d Mon Sep 17 00:00:00 2001
From: TomSweeneyRedHat <tsweeney@redhat.com>
Date: Thu, 4 Jan 2018 17:20:30 -0500
Subject: [PATCH] Add removal failure test after unpause

Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>

Closes: #190
Approved by: mheon
---
 test/podman_pause.bats | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/test/podman_pause.bats b/test/podman_pause.bats
index 49db0c2aae..b8f0a8746d 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 ]