diff options
author | Jhon Honce <jhonce@redhat.com> | 2021-06-21 14:52:41 -0700 |
---|---|---|
committer | Jhon Honce <jhonce@redhat.com> | 2021-06-22 11:07:12 -0700 |
commit | 1f388ede6f1425ecc6e2a6fddba1d811bc41e2c0 (patch) | |
tree | d1dfa4e33924f5ed3ef37660174868692296a0a8 /test | |
parent | be15e69a6189685ac1afba06cb67013e960065ed (diff) | |
download | podman-1f388ede6f1425ecc6e2a6fddba1d811bc41e2c0.tar.gz podman-1f388ede6f1425ecc6e2a6fddba1d811bc41e2c0.tar.bz2 podman-1f388ede6f1425ecc6e2a6fddba1d811bc41e2c0.zip |
Add --format to connection list
Add support for the --format option to podman system connection list.
Signed-off-by: Jhon Honce <jhonce@redhat.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/e2e/system_connection_test.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/e2e/system_connection_test.go b/test/e2e/system_connection_test.go index 4697cf860..7c922a648 100644 --- a/test/e2e/system_connection_test.go +++ b/test/e2e/system_connection_test.go @@ -147,6 +147,12 @@ var _ = Describe("podman system connection", func() { session.WaitWithDefaultTimeout() Expect(session).Should(Exit(0)) Expect(session.Out).Should(Say("Name *Identity *URI")) + + cmd = []string{"system", "connection", "list", "--format", "{{.Name}}"} + session = podmanTest.Podman(cmd) + session.WaitWithDefaultTimeout() + Expect(session).Should(Exit(0)) + Expect(session.OutputToString()).Should(Equal("devl* qe")) }) It("failed default", func() { |