Skip to content

Commit

Permalink
Merge pull request #8639 from Luap99/fix-network-ls-filter-flake
Browse files Browse the repository at this point in the history
Fix network ls --filter invalid value flake
  • Loading branch information
openshift-merge-robot committed Dec 7, 2020
2 parents bfbeece + 4d6f958 commit e2f9120
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/e2e/network_test.go
Expand Up @@ -119,7 +119,13 @@ var _ = Describe("Podman network", func() {
})

It("podman network list --filter invalid value", func() {
session := podmanTest.Podman([]string{"network", "ls", "--filter", "namr=ab"})
net := "net" + stringid.GenerateNonCryptoID()
session := podmanTest.Podman([]string{"network", "create", net})
session.WaitWithDefaultTimeout()
defer podmanTest.removeCNINetwork(net)
Expect(session.ExitCode()).To(BeZero())

session = podmanTest.Podman([]string{"network", "ls", "--filter", "namr=ab"})
session.WaitWithDefaultTimeout()
Expect(session).To(ExitWithError())
Expect(session.ErrorToString()).To(ContainSubstring(`invalid filter "namr"`))
Expand Down

0 comments on commit e2f9120

Please sign in to comment.