mirror of
https://github.com/containers/podman.git
synced 2025-12-01 02:27:13 +08:00
test/e2e: fix missing exit code checks
Both push commands didn't check the exit code so make sure they actually work. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
@@ -611,6 +611,7 @@ var _ = Describe("Podman pull", func() {
|
|||||||
|
|
||||||
session := podmanTest.Podman([]string{"push", "-q", "--encryption-key", "jwe:" + publicKeyFileName, "--tls-verify=false", "--remove-signatures", ALPINE, imgPath})
|
session := podmanTest.Podman([]string{"push", "-q", "--encryption-key", "jwe:" + publicKeyFileName, "--tls-verify=false", "--remove-signatures", ALPINE, imgPath})
|
||||||
session.WaitWithDefaultTimeout()
|
session.WaitWithDefaultTimeout()
|
||||||
|
Expect(session).Should(ExitCleanly())
|
||||||
|
|
||||||
session = podmanTest.Podman([]string{"rmi", ALPINE})
|
session = podmanTest.Podman([]string{"rmi", ALPINE})
|
||||||
session.WaitWithDefaultTimeout()
|
session.WaitWithDefaultTimeout()
|
||||||
|
|||||||
@@ -2176,6 +2176,8 @@ WORKDIR /madethis`, BB)
|
|||||||
imgPath := "localhost:5006/my-alpine-podman-run-and-decrypt"
|
imgPath := "localhost:5006/my-alpine-podman-run-and-decrypt"
|
||||||
session = podmanTest.Podman([]string{"push", "--encryption-key", "jwe:" + publicKeyFileName, "--tls-verify=false", "--remove-signatures", ALPINE, imgPath})
|
session = podmanTest.Podman([]string{"push", "--encryption-key", "jwe:" + publicKeyFileName, "--tls-verify=false", "--remove-signatures", ALPINE, imgPath})
|
||||||
session.WaitWithDefaultTimeout()
|
session.WaitWithDefaultTimeout()
|
||||||
|
Expect(session).Should(Exit(0))
|
||||||
|
Expect(session.ErrorToString()).To(ContainSubstring("Writing manifest to image destination"))
|
||||||
|
|
||||||
session = podmanTest.Podman([]string{"rmi", ALPINE})
|
session = podmanTest.Podman([]string{"rmi", ALPINE})
|
||||||
session.WaitWithDefaultTimeout()
|
session.WaitWithDefaultTimeout()
|
||||||
|
|||||||
Reference in New Issue
Block a user