aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/podman_networking.bats23
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 ]
+}