aboutsummaryrefslogtreecommitdiff
path: root/test/system
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-10-09 10:55:15 -0400
committerGitHub <noreply@github.com>2020-10-09 10:55:15 -0400
commitfa01b838a6867c46576afcab35eaefde6e1c4abe (patch)
treefa5cfaff85733c755c5173b118ce718881b45dbb /test/system
parent71d675a164ee64111db1a9214673a3498b3aa123 (diff)
parentfea78d5530f996d008912584761433023491f160 (diff)
downloadpodman-fa01b838a6867c46576afcab35eaefde6e1c4abe.tar.gz
podman-fa01b838a6867c46576afcab35eaefde6e1c4abe.tar.bz2
podman-fa01b838a6867c46576afcab35eaefde6e1c4abe.zip
Merge pull request #7891 from rhatdan/rm
This PR allows users to remove external containers directly
Diffstat (limited to 'test/system')
-rw-r--r--test/system/055-rm.bats15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/system/055-rm.bats b/test/system/055-rm.bats
index c8475c3e9..7176ae4b8 100644
--- a/test/system/055-rm.bats
+++ b/test/system/055-rm.bats
@@ -33,6 +33,21 @@ load helpers
run_podman rm -f $cid
}
+@test "podman rm container from storage" {
+ if is_remote; then
+ skip "only applicable for local podman"
+ fi
+ rand=$(random_string 30)
+ run_podman create --name $rand $IMAGE /bin/true
+
+ # Create a container that podman does not know about
+ run buildah from $IMAGE
+ cid="$output"
+
+ # rm should succeed
+ run_podman rm $rand $cid
+}
+
# I'm sorry! This test takes 13 seconds. There's not much I can do about it,
# please know that I think it's justified: podman 1.5.0 had a strange bug
# in with exit status was not preserved on some code paths with 'rm -f'