summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKunal Kushwaha <kushwaha_kunal_v7@lab.ntt.co.jp>2019-03-15 15:50:11 +0900
committerKunal Kushwaha <kushwaha_kunal_v7@lab.ntt.co.jp>2019-03-15 15:50:11 +0900
commitd47d976c0b53d4d3ac9689e71e8c37eaf45e1772 (patch)
tree92a5cd5af0e5fd3764d06d9f1e21a5bfd18ede6d
parent9a268dd3b457155079132157cf034a778fcdb871 (diff)
downloadpodman-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>
-rw-r--r--test/e2e/ps_test.go14
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"))
+ })
})