diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-12-07 17:01:51 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-07 17:01:51 -0500 |
commit | e2f91207fc3e515c0a9f828433aaf80727f4b7c5 (patch) | |
tree | c3a5a6213a424884105870bfcde77a06ae2c5315 /test/e2e | |
parent | bfbeece27bc370d33042ab3c4bf36b9288c85b7c (diff) | |
parent | 4d6f958202c89c030bd2253670e04a4f62e95315 (diff) | |
download | podman-e2f91207fc3e515c0a9f828433aaf80727f4b7c5.tar.gz podman-e2f91207fc3e515c0a9f828433aaf80727f4b7c5.tar.bz2 podman-e2f91207fc3e515c0a9f828433aaf80727f4b7c5.zip |
Merge pull request #8639 from Luap99/fix-network-ls-filter-flake
Fix network ls --filter invalid value flake
Diffstat (limited to 'test/e2e')
-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"`)) |