summaryrefslogtreecommitdiff
path: root/test/e2e
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-11-08 23:16:03 +0100
committerGitHub <noreply@github.com>2019-11-08 23:16:03 +0100
commitb713e5371fa8767067bd2c329a3744ea593b2ade (patch)
tree9fec27ec1ebc354f3c2eafa7b8a860260abf60fd /test/e2e
parentf456ce90f966f2eefdfc27ca83541ceacc4a298d (diff)
parentcb2978d6e93b5ad19478386484ba57610d6cfa67 (diff)
downloadpodman-b713e5371fa8767067bd2c329a3744ea593b2ade.tar.gz
podman-b713e5371fa8767067bd2c329a3744ea593b2ade.tar.bz2
podman-b713e5371fa8767067bd2c329a3744ea593b2ade.zip
Merge pull request #4408 from slimjim2234/master
Fixed issue #4391; podman info --format '{{ json . }}'
Diffstat (limited to 'test/e2e')
-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())
+ })
})