Skip to content

Commit

Permalink
test/e2e: fix network ID test
Browse files Browse the repository at this point in the history
We no longer allow to match ids in the middle, this makes no realy
sense. ID matches should always be by prefix.

containers#18471

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
  • Loading branch information
Luap99 authored and cgiradkar committed Jul 17, 2023
1 parent b4ecc9c commit 7805fa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/e2e/network_test.go
Expand Up @@ -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))
Expand Down

0 comments on commit 7805fa1

Please sign in to comment.