From db3abd0d282fe59e5e3b855e182c6935201d0a56 Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Thu, 23 May 2024 13:29:39 +0200 Subject: [PATCH] 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 --- test/e2e/create_test.go | 2 +- test/e2e/pull_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/e2e/create_test.go b/test/e2e/create_test.go index 1e06754ced..646ff679d9 100644 --- a/test/e2e/create_test.go +++ b/test/e2e/create_test.go @@ -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() diff --git a/test/e2e/pull_test.go b/test/e2e/pull_test.go index 4343105ec8..6fec00eaed 100644 --- a/test/e2e/pull_test.go +++ b/test/e2e/pull_test.go @@ -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()