summaryrefslogtreecommitdiff
path: root/test/e2e
diff options
context:
space:
mode:
authorParker Van Roy <pvanroy@redhat.com>2021-02-22 16:11:06 -0500
committerParker Van Roy <pvanroy@redhat.com>2021-02-24 14:52:19 -0500
commitef549235eb63117d10537e6d54adf448e05b40ad (patch)
tree74d3fbca2c05a1809a0ab14b426e734ff57dd043 /test/e2e
parentccbe4ff73f72cf584c63a980f111bec148f57ac4 (diff)
downloadpodman-ef549235eb63117d10537e6d54adf448e05b40ad.tar.gz
podman-ef549235eb63117d10537e6d54adf448e05b40ad.tar.bz2
podman-ef549235eb63117d10537e6d54adf448e05b40ad.zip
Updated based on Jhonce comments
Added ID to default removed outdated imports slight refactor Test Network Headers added to network_test.go Signed-off-by: Parker Van Roy <pvanroy@redhat.com>
Diffstat (limited to 'test/e2e')
-rw-r--r--test/e2e/network_test.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/e2e/network_test.go b/test/e2e/network_test.go
index a7eb6e629..53521cdc4 100644
--- a/test/e2e/network_test.go
+++ b/test/e2e/network_test.go
@@ -150,6 +150,13 @@ var _ = Describe("Podman network", func() {
defer podmanTest.removeCNINetwork(net)
Expect(session.ExitCode()).To(BeZero())
+ // Tests Default Table Output
+ session = podmanTest.Podman([]string{"network", "ls", "--filter", "id=" + netID})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(BeZero())
+ expectedTable := "NETWORK ID NAME VERSION PLUGINS"
+ Expect(session.OutputToString()).To(ContainSubstring(expectedTable))
+
session = podmanTest.Podman([]string{"network", "ls", "--format", "{{.Name}} {{.ID}}", "--filter", "id=" + netID})
session.WaitWithDefaultTimeout()
Expect(session.ExitCode()).To(BeZero())