diff options
author | Paul Holzinger <paul.holzinger@web.de> | 2020-12-07 21:12:07 +0100 |
---|---|---|
committer | Paul Holzinger <paul.holzinger@web.de> | 2020-12-07 21:14:13 +0100 |
commit | 4d6f958202c89c030bd2253670e04a4f62e95315 (patch) | |
tree | a587dbe53f8c9a1b6e639764913b465580f52c1b /test | |
parent | a5ca03915e7ad8b9db81d22a256013ce5ae3cc87 (diff) | |
download | podman-4d6f958202c89c030bd2253670e04a4f62e95315.tar.gz podman-4d6f958202c89c030bd2253670e04a4f62e95315.tar.bz2 podman-4d6f958202c89c030bd2253670e04a4f62e95315.zip |
Fix network ls --filter invalid value flake
The filter is only validated when at least one network exists.
Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
Diffstat (limited to 'test')
-rw-r--r-- | test/e2e/network_test.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/e2e/network_test.go b/test/e2e/network_test.go index ffc914bc2..4e8ab5ad5 100644 --- a/test/e2e/network_test.go +++ b/test/e2e/network_test.go @@ -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"`)) |