Fixes errors from 'manifest push' being dropped in remote case

Signed-off-by: John Matthews <jwmatthews@gmail.com>
This commit is contained in:
John Matthews 2022-03-24 13:04:21 -04:00
parent 463c0b9f2d
commit 7989880509
1 changed files with 7 additions and 0 deletions

View File

@ -309,6 +309,13 @@ var _ = Describe("Podman manifest", func() {
Expect(err).To(BeNil())
})
It("push with error", func() {
session := podmanTest.Podman([]string{"manifest", "push", "badsrcvalue", "baddestvalue"})
session.WaitWithDefaultTimeout()
Expect(session).Should(ExitWithError())
Expect(session.ErrorToString()).NotTo(BeEmpty())
})
It("push --rm", func() {
SkipIfRemote("remote does not support --rm")
session := podmanTest.Podman([]string{"manifest", "create", "foo"})