diff options
author | baude <bbaude@redhat.com> | 2019-01-14 15:55:00 -0600 |
---|---|---|
committer | baude <bbaude@redhat.com> | 2019-01-15 08:19:26 -0600 |
commit | f9f72823ad5f773ee50b9e438c922a9cf0f3edcb (patch) | |
tree | 77351c49cc9de1c622b9bd38d18e1b37d31a1ff0 /test/e2e/exists_test.go | |
parent | 1ffb0fc2d1d0e1acb43791591ebf2225a460df6d (diff) | |
download | podman-f9f72823ad5f773ee50b9e438c922a9cf0f3edcb.tar.gz podman-f9f72823ad5f773ee50b9e438c922a9cf0f3edcb.tar.bz2 podman-f9f72823ad5f773ee50b9e438c922a9cf0f3edcb.zip |
podman remote integrations tests
add exists and rmi tests back in ...
Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'test/e2e/exists_test.go')
-rw-r--r-- | test/e2e/exists_test.go | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/test/e2e/exists_test.go b/test/e2e/exists_test.go index b5c91cc8d..c4b5e4968 100644 --- a/test/e2e/exists_test.go +++ b/test/e2e/exists_test.go @@ -1,5 +1,3 @@ -// +build !remoteclient - package integration import ( @@ -51,6 +49,7 @@ var _ = Describe("Podman image|container exists", func() { Expect(session.ExitCode()).To(Equal(1)) }) It("podman container exists in local storage by name", func() { + SkipIfRemote() setup := podmanTest.RunTopContainer("foobar") setup.WaitWithDefaultTimeout() Expect(setup.ExitCode()).To(Equal(0)) @@ -60,6 +59,7 @@ var _ = Describe("Podman image|container exists", func() { Expect(session.ExitCode()).To(Equal(0)) }) It("podman container exists in local storage by container ID", func() { + SkipIfRemote() setup := podmanTest.RunTopContainer("") setup.WaitWithDefaultTimeout() Expect(setup.ExitCode()).To(Equal(0)) @@ -70,6 +70,7 @@ var _ = Describe("Podman image|container exists", func() { Expect(session.ExitCode()).To(Equal(0)) }) It("podman container exists in local storage by short container ID", func() { + SkipIfRemote() setup := podmanTest.RunTopContainer("") setup.WaitWithDefaultTimeout() Expect(setup.ExitCode()).To(Equal(0)) @@ -80,12 +81,14 @@ var _ = Describe("Podman image|container exists", func() { Expect(session.ExitCode()).To(Equal(0)) }) It("podman container does not exist in local storage", func() { + SkipIfRemote() session := podmanTest.Podman([]string{"container", "exists", "foobar"}) session.WaitWithDefaultTimeout() Expect(session.ExitCode()).To(Equal(1)) }) It("podman pod exists in local storage by name", func() { + SkipIfRemote() setup, rc, _ := podmanTest.CreatePod("foobar") setup.WaitWithDefaultTimeout() Expect(rc).To(Equal(0)) @@ -95,6 +98,7 @@ var _ = Describe("Podman image|container exists", func() { Expect(session.ExitCode()).To(Equal(0)) }) It("podman pod exists in local storage by container ID", func() { + SkipIfRemote() setup, rc, podID := podmanTest.CreatePod("") setup.WaitWithDefaultTimeout() Expect(rc).To(Equal(0)) @@ -104,6 +108,7 @@ var _ = Describe("Podman image|container exists", func() { Expect(session.ExitCode()).To(Equal(0)) }) It("podman pod exists in local storage by short container ID", func() { + SkipIfRemote() setup, rc, podID := podmanTest.CreatePod("") setup.WaitWithDefaultTimeout() Expect(rc).To(Equal(0)) @@ -113,6 +118,7 @@ var _ = Describe("Podman image|container exists", func() { Expect(session.ExitCode()).To(Equal(0)) }) It("podman pod does not exist in local storage", func() { + SkipIfRemote() session := podmanTest.Podman([]string{"pod", "exists", "foobar"}) session.WaitWithDefaultTimeout() Expect(session.ExitCode()).To(Equal(1)) |