From cb2978d6e93b5ad19478386484ba57610d6cfa67 Mon Sep 17 00:00:00 2001 From: Jimmy Crumpler Date: Thu, 31 Oct 2019 22:36:31 -0400 Subject: Fixed the JSON go template format for the 'info' action Signed-off-by: Jimmy Crumpler --- test/e2e/info_test.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/e2e/info_test.go') diff --git a/test/e2e/info_test.go b/test/e2e/info_test.go index c960fb311..d3b1b974e 100644 --- a/test/e2e/info_test.go +++ b/test/e2e/info_test.go @@ -45,4 +45,10 @@ var _ = Describe("Podman Info", func() { Expect(session.ExitCode()).To(Equal(0)) }) + It("podman info --format GO template", func() { + session := podmanTest.Podman([]string{"info", "--format", "{{ json .}}"}) + session.WaitWithDefaultTimeout() + Expect(session.ExitCode()).To(Equal(0)) + Expect(session.IsJSONOutputValid()).To(BeTrue()) + }) }) -- cgit v1.2.3-54-g00ecf