diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-09-29 20:26:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-29 20:26:03 +0200 |
commit | 0513349355354f1f81abc8060827f2cde9375779 (patch) | |
tree | fe587220ada603b6329ca22aef0e237ac974094f /test | |
parent | 472e8243e57f6ea305f8e185e9f4759760b538f8 (diff) | |
parent | e7328cb97c725d66e6a8bc564f4c041f66b9e61f (diff) | |
download | podman-0513349355354f1f81abc8060827f2cde9375779.tar.gz podman-0513349355354f1f81abc8060827f2cde9375779.tar.bz2 podman-0513349355354f1f81abc8060827f2cde9375779.zip |
Merge pull request #15998 from Luap99/play-kube-hostnet
podman kube play allow --network host
Diffstat (limited to 'test')
-rw-r--r-- | test/system/700-play.bats | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/test/system/700-play.bats b/test/system/700-play.bats index 578d28394..5f3eb1ef2 100644 --- a/test/system/700-play.bats +++ b/test/system/700-play.bats @@ -165,8 +165,14 @@ EOF TESTDIR=$PODMAN_TMPDIR/testdir mkdir -p $TESTDIR echo "$testYaml" | sed "s|TESTDIR|${TESTDIR}|g" > $PODMAN_TMPDIR/test.yaml - run_podman 125 kube play --network host $PODMAN_TMPDIR/test.yaml - is "$output" ".*invalid value passed to --network: bridge or host networking must be configured in YAML" "podman plan-network should fail with --network host" + run_podman kube play --network host $PODMAN_TMPDIR/test.yaml + is "$output" "Pod:.*" "podman kube play should work with --network host" + + run_podman pod inspect --format "{{.InfraConfig.HostNetwork}}" test_pod + is "$output" "true" ".InfraConfig.HostNetwork" + run_podman stop -a -t 0 + run_podman pod rm -t 0 -f test_pod + run_podman kube play --network slirp4netns:port_handler=slirp4netns $PODMAN_TMPDIR/test.yaml run_podman pod inspect --format {{.InfraContainerID}} "${lines[1]}" infraID="$output" |