summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-03-16 04:03:38 -0700
committerGitHub <noreply@github.com>2019-03-16 04:03:38 -0700
commit37467beaf9b81a3e97fbf52697cd75b10d649941 (patch)
tree0aff5893714f880d90c4ef17c7350995a650efbc /test
parent0015f403b5a042d9560a5356be2b7d2af6de5278 (diff)
parentd47d976c0b53d4d3ac9689e71e8c37eaf45e1772 (diff)
downloadpodman-37467beaf9b81a3e97fbf52697cd75b10d649941.tar.gz
podman-37467beaf9b81a3e97fbf52697cd75b10d649941.tar.bz2
podman-37467beaf9b81a3e97fbf52697cd75b10d649941.zip
Merge pull request #2664 from kunalkushwaha/ps-port-fix
port grouping in ps command output
Diffstat (limited to 'test')
-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"))
+ })
})