diff options
author | baude <bbaude@redhat.com> | 2017-12-21 12:33:10 -0600 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2017-12-30 10:26:14 +0000 |
commit | ef4035e208f1431745cd044adb4b789fab3a98b6 (patch) | |
tree | 355c3667f5ba5aa537133254261a8cd383c69df5 /test/podman_networking.bats | |
parent | 7e922b103595fe64938a910fd4cd862685624391 (diff) | |
download | podman-ef4035e208f1431745cd044adb4b789fab3a98b6.tar.gz podman-ef4035e208f1431745cd044adb4b789fab3a98b6.tar.bz2 podman-ef4035e208f1431745cd044adb4b789fab3a98b6.zip |
Host networking
Allow for the user to specify network=host|bridge. If network
is not specified, the default will be bridge. While "none" is now
a valid option, it is not included in this.
Signed-off-by: baude <bbaude@redhat.com>
Closes: #164
Approved by: rhatdan
Diffstat (limited to 'test/podman_networking.bats')
-rw-r--r-- | test/podman_networking.bats | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/podman_networking.bats b/test/podman_networking.bats new file mode 100644 index 000000000..017f24d8f --- /dev/null +++ b/test/podman_networking.bats @@ -0,0 +1,23 @@ +#!/usr/bin/env bats + +load helpers + +function teardown() { + cleanup_test +} + +function setup() { + copy_images +} + +@test "test network connection with default bridge" { + run ${KPOD_BINARY} ${KPOD_OPTIONS} run -dt ${ALPINE} wget www.yahoo.com + echo "$output" + [ "$status" -eq 0 ] +} + +@test "test network connection with host" { + run ${KPOD_BINARY} ${KPOD_OPTIONS} run -dt --network host ${ALPINE} wget www.yahoo.com + echo "$output" + [ "$status" -eq 0 ] +} |