summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-10-11 18:53:26 +0200
committerGitHub <noreply@github.com>2019-10-11 18:53:26 +0200
commiteb6ca054fc93e5f863581e72923cb1e80fc5ab88 (patch)
tree9db4869ef57712dd8c874fbe35a66f47ee7b37ec /test
parentcd167fc9e099a388b0245ca9529b2e0772914fd7 (diff)
parentf7d55d64e7040cdad149684234ea150b0a90cf0e (diff)
downloadpodman-eb6ca054fc93e5f863581e72923cb1e80fc5ab88.tar.gz
podman-eb6ca054fc93e5f863581e72923cb1e80fc5ab88.tar.bz2
podman-eb6ca054fc93e5f863581e72923cb1e80fc5ab88.zip
Merge pull request #4237 from giuseppe/ps-not-null
container: initialize results list
Diffstat (limited to 'test')
-rw-r--r--test/e2e/ps_test.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/e2e/ps_test.go b/test/e2e/ps_test.go
index efcf44f76..34f0692b2 100644
--- a/test/e2e/ps_test.go
+++ b/test/e2e/ps_test.go
@@ -151,6 +151,13 @@ var _ = Describe("Podman ps", func() {
Expect(len(result.OutputToStringArray())).Should(BeNumerically(">", 0))
})
+ It("podman ps with no containers is valid json format", func() {
+ result := podmanTest.Podman([]string{"ps", "--format", "json"})
+ result.WaitWithDefaultTimeout()
+ Expect(result.ExitCode()).To(Equal(0))
+ Expect(result.IsJSONOutputValid()).To(BeTrue())
+ })
+
It("podman ps namespace flag with json format", func() {
_, ec, _ := podmanTest.RunLsContainer("test1")
Expect(ec).To(Equal(0))