From ef4035e208f1431745cd044adb4b789fab3a98b6 Mon Sep 17 00:00:00 2001 From: baude Date: Thu, 21 Dec 2017 12:33:10 -0600 Subject: 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 Closes: #164 Approved by: rhatdan --- test/podman_networking.bats | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 test/podman_networking.bats (limited to 'test') 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 ] +} -- cgit v1.2.3-54-g00ecf