summaryrefslogtreecommitdiff
path: root/test/e2e
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-01-23 11:05:09 +0100
committerGitHub <noreply@github.com>2021-01-23 11:05:09 +0100
commit1305f7c47a4c324c3afd873a244fe2315249a25d (patch)
tree765fe7f70fafbd075bd110ce399225d45fc04597 /test/e2e
parent474ba4c3acfc48fecb88814ba48f38e4da15ecae (diff)
parent6e6a38b4168ed7a528614f6499783243a8668395 (diff)
downloadpodman-1305f7c47a4c324c3afd873a244fe2315249a25d.tar.gz
podman-1305f7c47a4c324c3afd873a244fe2315249a25d.tar.bz2
podman-1305f7c47a4c324c3afd873a244fe2315249a25d.zip
Merge pull request #9067 from Luap99/podman-manifest-exists
podman manifest exists
Diffstat (limited to 'test/e2e')
-rw-r--r--test/e2e/manifest_test.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/e2e/manifest_test.go b/test/e2e/manifest_test.go
index 3e13057d3..e6ac83aea 100644
--- a/test/e2e/manifest_test.go
+++ b/test/e2e/manifest_test.go
@@ -251,4 +251,19 @@ var _ = Describe("Podman manifest", func() {
session.WaitWithDefaultTimeout()
Expect(session.ExitCode()).To(Not(Equal(0)))
})
+
+ It("podman manifest exists", func() {
+ manifestList := "manifest-list"
+ session := podmanTest.Podman([]string{"manifest", "create", manifestList})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(BeZero())
+
+ session = podmanTest.Podman([]string{"manifest", "exists", manifestList})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(0))
+
+ session = podmanTest.Podman([]string{"manifest", "exists", "no-manifest"})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(1))
+ })
})