diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-07-27 14:10:19 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-27 14:10:19 -0400 |
commit | 432348e8e4e95d32bb26ceca4d467ff9f726dd89 (patch) | |
tree | b1551e08b62c37dc7ca7a0ce3f32e839802ed197 /test/system/160-volumes.bats | |
parent | eea8e570f2af82944e61410e5e7dd9b540feae34 (diff) | |
parent | 75419c5d887e23f93a465311b02bb76d8cea1940 (diff) | |
download | podman-432348e8e4e95d32bb26ceca4d467ff9f726dd89.tar.gz podman-432348e8e4e95d32bb26ceca4d467ff9f726dd89.tar.bz2 podman-432348e8e4e95d32bb26ceca4d467ff9f726dd89.zip |
Merge pull request #14959 from rhatdan/rm
When removing objects specifying --force,podman should exit with 0
Diffstat (limited to 'test/system/160-volumes.bats')
-rw-r--r-- | test/system/160-volumes.bats | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/system/160-volumes.bats b/test/system/160-volumes.bats index 18e806699..6829c6a78 100644 --- a/test/system/160-volumes.bats +++ b/test/system/160-volumes.bats @@ -473,4 +473,11 @@ EOF run_podman image rm --force localhost/volume_image } +@test "podman volume rm --force bogus" { + run_podman 1 volume rm bogus + is "$output" "Error: no volume with name \"bogus\" found: no such volume" "Should print error" + run_podman volume rm --force bogus + is "$output" "" "Should print no output" +} + # vim: filetype=sh |