aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authoropenshift-ci[bot] <75433959+openshift-ci[bot]@users.noreply.github.com>2022-07-11 12:53:59 +0000
committerGitHub <noreply@github.com>2022-07-11 12:53:59 +0000
commit0df8c6e1572c30fed45d96a4761060d3d440d69d (patch)
tree77539110d85fa8f4400eaa4609ddd7bbc4da6bf3 /test
parent3691c9b1ba8e63f56b5cc36cdb1670fcfbdba0a1 (diff)
parentd1754bdd4f299c8d92671493add4a69ef7850e1d (diff)
downloadpodman-0df8c6e1572c30fed45d96a4761060d3d440d69d.tar.gz
podman-0df8c6e1572c30fed45d96a4761060d3d440d69d.tar.bz2
podman-0df8c6e1572c30fed45d96a4761060d3d440d69d.zip
Merge pull request #14826 from sstosh/net-prune
Refactored networkPrune function
Diffstat (limited to 'test')
-rw-r--r--test/e2e/prune_test.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/e2e/prune_test.go b/test/e2e/prune_test.go
index 119c8d41e..89cc65540 100644
--- a/test/e2e/prune_test.go
+++ b/test/e2e/prune_test.go
@@ -259,11 +259,12 @@ var _ = Describe("Podman prune", func() {
})
It("podman system prune networks", func() {
- // About netavark network backend test.
+ // Create new network.
session := podmanTest.Podman([]string{"network", "create", "test"})
session.WaitWithDefaultTimeout()
Expect(session).Should(Exit(0))
+ // Remove all unused networks.
session = podmanTest.Podman([]string{"system", "prune", "-f"})
session.WaitWithDefaultTimeout()
Expect(session).Should(Exit(0))
@@ -274,7 +275,7 @@ var _ = Describe("Podman prune", func() {
Expect(session).Should(Exit(0))
Expect(session.OutputToStringArray()).To(HaveLen(1))
- // Remove all unused networks.
+ // Unused networks removed.
session = podmanTest.Podman([]string{"network", "ls", "-q", "--filter", "name=^test$"})
session.WaitWithDefaultTimeout()
Expect(session).Should(Exit(0))