aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2018-01-22 09:17:51 -0600
committerAtomic Bot <atomic-devel@projectatomic.io>2018-01-22 17:09:11 +0000
commite1c67e6c8579931f44ec61f847f536a8f68202db (patch)
tree8afb243ad165bb0775b439ed555111e615c64ebc /test
parent5c3e4cfa62452b9cd5c2c08bf081ab524ded1cb4 (diff)
downloadpodman-e1c67e6c8579931f44ec61f847f536a8f68202db.tar.gz
podman-e1c67e6c8579931f44ec61f847f536a8f68202db.tar.bz2
podman-e1c67e6c8579931f44ec61f847f536a8f68202db.zip
Expose ports from image
When an image has a port to expose, we need to expose it. User's input overrides the image's port information. Also, enable port information in ps so we can see which random port is assigned. Signed-off-by: baude <bbaude@redhat.com> Closes: #249 Approved by: rhatdan
Diffstat (limited to 'test')
-rw-r--r--test/podman_networking.bats9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/podman_networking.bats b/test/podman_networking.bats
index b2196b4bc..b27c16634 100644
--- a/test/podman_networking.bats
+++ b/test/podman_networking.bats
@@ -48,3 +48,12 @@ function setup() {
echo "$output"
[ "$status" -eq 0 ]
}
+
+@test "expose ports in image" {
+ run ${PODMAN_BINARY} ${PODMAN_OPTIONS} run -dt -P docker.io/library/nginx:latest
+ echo "$output"
+ [ "$status" -eq 0 ]
+ run bash -c "${PODMAN_BINARY} ${PODMAN_OPTIONS} inspect -l | grep ': 80,'"
+ echo "$output"
+ [ "$status" -eq 0 ]
+}