From 63f5116ad3a597a10c389fb74d044bd1dc14958e Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Tue, 13 Jun 2023 16:30:13 +0200 Subject: [PATCH] test/e2e: fix network ID test We no longer allow to match ids in the middle, this makes no realy sense. ID matches should always be by prefix. https://github.com/containers/podman/issues/18471 Signed-off-by: Paul Holzinger --- test/e2e/network_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/network_test.go b/test/e2e/network_test.go index f260069493..2f207468ce 100644 --- a/test/e2e/network_test.go +++ b/test/e2e/network_test.go @@ -179,7 +179,7 @@ var _ = Describe("Podman network", func() { Expect(session).Should(Exit(0)) Expect(session.OutputToString()).To(ContainSubstring(net + " " + netID[:12])) - session = podmanTest.Podman([]string{"network", "ls", "--format", "{{.Name}} {{.ID}}", "--filter", "id=" + netID[10:50], "--no-trunc"}) + session = podmanTest.Podman([]string{"network", "ls", "--format", "{{.Name}} {{.ID}}", "--filter", "id=" + netID[:50], "--no-trunc"}) session.WaitWithDefaultTimeout() Expect(session).Should(Exit(0)) Expect(session.OutputToString()).To(ContainSubstring(net + " " + netID))