From 1f388ede6f1425ecc6e2a6fddba1d811bc41e2c0 Mon Sep 17 00:00:00 2001 From: Jhon Honce Date: Mon, 21 Jun 2021 14:52:41 -0700 Subject: Add --format to connection list Add support for the --format option to podman system connection list. Signed-off-by: Jhon Honce --- test/e2e/system_connection_test.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/e2e/system_connection_test.go') 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() { -- cgit v1.2.3-54-g00ecf