From 0adf8d2e79beff4369599ee9c835769bf926f3fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20Trma=C4=8D?= Date: Wed, 7 Aug 2024 19:07:14 +0200 Subject: [PATCH] Update to expect a warning when using encryption with chunked MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miloslav Trmač --- test/e2e/pull_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/e2e/pull_test.go b/test/e2e/pull_test.go index eede7b60cb..d1255be616 100644 --- a/test/e2e/pull_test.go +++ b/test/e2e/pull_test.go @@ -611,7 +611,8 @@ var _ = Describe("Podman pull", func() { session := podmanTest.Podman([]string{"push", "-q", "--encryption-key", "jwe:" + publicKeyFileName, "--tls-verify=false", "--remove-signatures", ALPINE, imgPath}) session.WaitWithDefaultTimeout() - Expect(session).Should(ExitCleanly()) + Expect(session).Should(Exit(0)) + Expect(session.ErrorToString()).To(ContainSubstring("Compression using zstd:chunked is not beneficial for encrypted layers, using plain zstd instead")) session = podmanTest.Podman([]string{"rmi", ALPINE}) session.WaitWithDefaultTimeout()