diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-02-25 06:03:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-25 06:03:54 +0100 |
commit | 79e803203239d6f5840b18924e706325272e773d (patch) | |
tree | 74d3fbca2c05a1809a0ab14b426e734ff57dd043 /test | |
parent | 25d81955ec959d0cfa2958edba0935d1257dd787 (diff) | |
parent | ef549235eb63117d10537e6d54adf448e05b40ad (diff) | |
download | podman-79e803203239d6f5840b18924e706325272e773d.tar.gz podman-79e803203239d6f5840b18924e706325272e773d.tar.bz2 podman-79e803203239d6f5840b18924e706325272e773d.zip |
Merge pull request #8010 from ParkerVR/format-networks/list
networks/list.go updates for --format
Diffstat (limited to 'test')
-rw-r--r-- | test/e2e/network_test.go | 7 |
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()) |