aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-12-07 17:01:51 -0500
committerGitHub <noreply@github.com>2020-12-07 17:01:51 -0500
commite2f91207fc3e515c0a9f828433aaf80727f4b7c5 (patch)
treec3a5a6213a424884105870bfcde77a06ae2c5315 /test
parentbfbeece27bc370d33042ab3c4bf36b9288c85b7c (diff)
parent4d6f958202c89c030bd2253670e04a4f62e95315 (diff)
downloadpodman-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')
-rw-r--r--test/e2e/network_test.go8
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"`))