mirror of
https://github.com/containers/podman.git
synced 2025-05-21 17:16:22 +08:00
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 <pholzing@redhat.com>
This commit is contained in:
@ -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))
|
||||
|
Reference in New Issue
Block a user