diff options
author | Kunal Kushwaha <kushwaha_kunal_v7@lab.ntt.co.jp> | 2019-03-15 15:50:11 +0900 |
---|---|---|
committer | Kunal Kushwaha <kushwaha_kunal_v7@lab.ntt.co.jp> | 2019-03-15 15:50:11 +0900 |
commit | d47d976c0b53d4d3ac9689e71e8c37eaf45e1772 (patch) | |
tree | 92a5cd5af0e5fd3764d06d9f1e21a5bfd18ede6d /test | |
parent | 9a268dd3b457155079132157cf034a778fcdb871 (diff) | |
download | podman-d47d976c0b53d4d3ac9689e71e8c37eaf45e1772.tar.gz podman-d47d976c0b53d4d3ac9689e71e8c37eaf45e1772.tar.bz2 podman-d47d976c0b53d4d3ac9689e71e8c37eaf45e1772.zip |
testcase added for listing range of ports in ps command
Signed-off-by: Kunal Kushwaha <kushwaha_kunal_v7@lab.ntt.co.jp>
Diffstat (limited to 'test')
-rw-r--r-- | test/e2e/ps_test.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/e2e/ps_test.go b/test/e2e/ps_test.go index 58697acde..92ca538f0 100644 --- a/test/e2e/ps_test.go +++ b/test/e2e/ps_test.go @@ -303,4 +303,18 @@ var _ = Describe("Podman ps", func() { Expect(session.OutputToString()).To(ContainSubstring(podid)) }) + + It("podman ps test with port range", func() { + session := podmanTest.RunTopContainer("") + session.WaitWithDefaultTimeout() + Expect(session.ExitCode()).To(Equal(0)) + + session = podmanTest.Podman([]string{"run", "-dt", "-p", "1000-1006:1000-1006", ALPINE, "top"}) + session.WaitWithDefaultTimeout() + Expect(session.ExitCode()).To(Equal(0)) + + session = podmanTest.Podman([]string{"ps", "--format", "{{.Ports}}"}) + session.WaitWithDefaultTimeout() + Expect(session.OutputToString()).To(ContainSubstring("0.0.0.0:1000-1006")) + }) }) |