mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-27 02:37:53 +00:00
this test was still referring to KPOD_BINARY and not podman Signed-off-by: baude <bbaude@redhat.com> Closes: #235 Approved by: baude
29 lines
679 B
Bash
29 lines
679 B
Bash
#!/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 ]
|
|
}
|