From 735f0de6336fa8db7465ce4aaa5b6de203816aa9 Mon Sep 17 00:00:00 2001 From: baude Date: Fri, 11 Jan 2019 10:33:25 -0600 Subject: Changes to container runlabel for toolbox project The toolbox project would benefit from a few changes to more closely resembe the original atomic cli project. Changes made are: * only pull image for container runlabel if the label exists in the image * if a container image does not have the desired label, exit with non-zero Signed-off-by: baude --- test/e2e/runlabel_test.go | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'test/e2e') diff --git a/test/e2e/runlabel_test.go b/test/e2e/runlabel_test.go index 9b4f584b0..49b9e13d8 100644 --- a/test/e2e/runlabel_test.go +++ b/test/e2e/runlabel_test.go @@ -68,4 +68,15 @@ var _ = Describe("podman container runlabel", func() { result.WaitWithDefaultTimeout() Expect(result.ExitCode()).To(Equal(0)) }) + It("podman container runlabel bogus label should result in non-zero exit code", func() { + result := podmanTest.Podman([]string{"container", "runlabel", "RUN", ALPINE}) + result.WaitWithDefaultTimeout() + Expect(result.ExitCode()).ToNot(Equal(0)) + }) + It("podman container runlabel bogus label in remote image should result in non-zero exit", func() { + result := podmanTest.Podman([]string{"container", "runlabel", "RUN", "docker.io/library/ubuntu:latest"}) + result.WaitWithDefaultTimeout() + Expect(result.ExitCode()).ToNot(Equal(0)) + + }) }) -- cgit v1.2.3-54-g00ecf