summaryrefslogtreecommitdiff
path: root/test/e2e
diff options
context:
space:
mode:
authorEd Santiago <santiago@redhat.com>2019-02-28 07:29:33 -0700
committerEd Santiago <santiago@redhat.com>2019-02-28 13:11:14 -0700
commit4258e3832627b23927f4a77dd85d1cb78f5a2a65 (patch)
treefd05071722c2397a81e3164dd9b78b52d1d1848a /test/e2e
parent4a109a71996e99c9a95b639bbbee1c5e30450c97 (diff)
downloadpodman-4258e3832627b23927f4a77dd85d1cb78f5a2a65.tar.gz
podman-4258e3832627b23927f4a77dd85d1cb78f5a2a65.tar.bz2
podman-4258e3832627b23927f4a77dd85d1cb78f5a2a65.zip
Fix usage messages for podman image list, rm
pr #2480 fixed the missing 'podman image list/rm' commands; it broke their usage messages. This corrects both usage messages and also their examples. Also: add an e2e test for 'podman image rm' (untested) Signed-off-by: Ed Santiago <santiago@redhat.com>
Diffstat (limited to 'test/e2e')
-rw-r--r--test/e2e/rmi_test.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/e2e/rmi_test.go b/test/e2e/rmi_test.go
index dcbda2df4..26cc925ef 100644
--- a/test/e2e/rmi_test.go
+++ b/test/e2e/rmi_test.go
@@ -275,4 +275,13 @@ RUN find $LOCAL
Expect(images.ExitCode()).To(Equal(0))
Expect(len(images.OutputToStringArray())).To(Equal(0))
})
+
+ // Don't rerun all tests; just assume that if we get that diagnostic,
+ // we're getting rmi
+ It("podman image rm is the same as rmi", func() {
+ session := podmanTest.Podman([]string{"image", "rm"})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(125))
+ Expect(session.LineInOutputContains("image name or ID must be specified"))
+ })
})