mirror of
https://github.com/containers/podman.git
synced 2025-06-29 23:22:40 +08:00
test/e2e: fix new error message
The new c/image version is returning a slightly new error message[1] so make tests use the new one. [1] https://github.com/containers/image/pull/2408 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
@ -650,7 +650,7 @@ var _ = Describe("Podman create", func() {
|
||||
It("podman create --platform", func() {
|
||||
session := podmanTest.Podman([]string{"create", "--platform=linux/bogus", ALPINE})
|
||||
session.WaitWithDefaultTimeout()
|
||||
Expect(session).Should(ExitWithError(125, "no image found in manifest list for architecture bogus"))
|
||||
Expect(session).Should(ExitWithError(125, `no image found in manifest list for architecture "bogus"`))
|
||||
|
||||
session = podmanTest.Podman([]string{"create", "--platform=linux/arm64", "--os", "windows", ALPINE})
|
||||
session.WaitWithDefaultTimeout()
|
||||
|
@ -542,7 +542,7 @@ var _ = Describe("Podman pull", func() {
|
||||
It("podman pull --platform", func() {
|
||||
session := podmanTest.Podman([]string{"pull", "-q", "--platform=linux/bogus", ALPINE})
|
||||
session.WaitWithDefaultTimeout()
|
||||
Expect(session).Should(ExitWithError(125, "no image found in manifest list for architecture bogus"))
|
||||
Expect(session).Should(ExitWithError(125, `no image found in manifest list for architecture "bogus"`))
|
||||
|
||||
session = podmanTest.Podman([]string{"pull", "-q", "--platform=linux/arm64", "--os", "windows", ALPINE})
|
||||
session.WaitWithDefaultTimeout()
|
||||
@ -565,7 +565,7 @@ var _ = Describe("Podman pull", func() {
|
||||
It("podman pull --arch", func() {
|
||||
session := podmanTest.Podman([]string{"pull", "-q", "--arch=bogus", ALPINE})
|
||||
session.WaitWithDefaultTimeout()
|
||||
Expect(session).Should(ExitWithError(125, "no image found in manifest list for architecture bogus"))
|
||||
Expect(session).Should(ExitWithError(125, `no image found in manifest list for architecture "bogus"`))
|
||||
|
||||
session = podmanTest.Podman([]string{"pull", "-q", "--arch=arm64", "--os", "windows", ALPINE})
|
||||
session.WaitWithDefaultTimeout()
|
||||
|
Reference in New Issue
Block a user