diff options
author | baude <bbaude@redhat.com> | 2018-01-02 13:25:42 -0600 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-01-31 21:47:07 +0000 |
commit | 2dfd048545d1def4b805a785f7259fc8f1fca22e (patch) | |
tree | 8213c16da538a0106590daf85e116af6c9c0c5f5 /test/podman_networking.bats | |
parent | 7f6a141839212c0d4d50324a726c5477817c8887 (diff) | |
download | podman-2dfd048545d1def4b805a785f7259fc8f1fca22e.tar.gz podman-2dfd048545d1def4b805a785f7259fc8f1fca22e.tar.bz2 podman-2dfd048545d1def4b805a785f7259fc8f1fca22e.zip |
Implment network == none
When network == none, the container should only have a
loopback interface and that's it.
Signed-off-by: baude <bbaude@redhat.com>
Closes: #176
Approved by: baude
Diffstat (limited to 'test/podman_networking.bats')
-rw-r--r-- | test/podman_networking.bats | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/test/podman_networking.bats b/test/podman_networking.bats deleted file mode 100644 index b27c16634..000000000 --- a/test/podman_networking.bats +++ /dev/null @@ -1,59 +0,0 @@ -#!/usr/bin/env bats - -load helpers - -function teardown() { - cleanup_test -} - -function setup() { - copy_images -} - -@test "test network connection with default bridge" { - run ${PODMAN_BINARY} ${PODMAN_OPTIONS} run -dt ${ALPINE} wget www.yahoo.com - echo "$output" - [ "$status" -eq 0 ] - run ${PODMAN_BINARY} ${PODMAN_OPTIONS} wait --latest - echo "$output" - [ "$status" -eq 0 ] -} - -@test "test network connection with host" { - run ${PODMAN_BINARY} ${PODMAN_OPTIONS} run -dt --network host ${ALPINE} wget www.yahoo.com - echo "$output" - [ "$status" -eq 0 ] - run ${PODMAN_BINARY} ${PODMAN_OPTIONS} wait --latest - echo "$output" - [ "$status" -eq 0 ] -} - -@test "expose port 222" { - run ${PODMAN_BINARY} ${PODMAN_OPTIONS} run -dt --expose 222-223 ${ALPINE} /bin/sh - echo "$output" - [ "$status" -eq 0 ] - run bash -c "iptables -t nat -L" - echo "$output" - [ "$status" -eq 0 ] - run bash -c "iptables -t nat -L | grep 223" - echo "$output" - [ "$status" -eq 0 ] -} - -@test "expose host port 80 to container port 8000" { - run ${PODMAN_BINARY} ${PODMAN_OPTIONS} run -dt -p 80:8000 ${ALPINE} /bin/sh - echo "$output" - [ "$status" -eq 0 ] - run bash -c "iptables -t nat -L | grep 8000" - 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 ] -} |