summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJimmy Crumpler <slimjim2234@gmail.com>2019-10-31 22:36:31 -0400
committerJimmy Crumpler <slimjim2234@gmail.com>2019-11-01 23:36:17 -0400
commitcb2978d6e93b5ad19478386484ba57610d6cfa67 (patch)
tree3362aa04e3268f168c36805d6ebdaf8398884a42 /test
parent381fa4df875af3d2acee34d4fc1a608b2218b551 (diff)
downloadpodman-cb2978d6e93b5ad19478386484ba57610d6cfa67.tar.gz
podman-cb2978d6e93b5ad19478386484ba57610d6cfa67.tar.bz2
podman-cb2978d6e93b5ad19478386484ba57610d6cfa67.zip
Fixed the JSON go template format for the 'info' action
Signed-off-by: Jimmy Crumpler <slimjim2234@gmail.com>
Diffstat (limited to 'test')
-rw-r--r--test/e2e/info_test.go6
1 files changed, 6 insertions, 0 deletions
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())
+ })
})