summaryrefslogtreecommitdiff
path: root/test/podman_networking.bats
blob: 017f24d8f2a1b945d89d8b55f4d379709de4ddfe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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 ]
}