diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-06-30 17:13:28 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-30 17:13:28 -0400 |
commit | fd1715568b7c14451dcf2581c385c8d3e307d30e (patch) | |
tree | 40b067377bda67d7d4002100e7210547bf4317f5 /test | |
parent | 61b7beaf8e595bdc1305a12b49e26a25bbc2bc42 (diff) | |
parent | 092902b455551d7353163c1e6d322f3605b9a897 (diff) | |
download | podman-fd1715568b7c14451dcf2581c385c8d3e307d30e.tar.gz podman-fd1715568b7c14451dcf2581c385c8d3e307d30e.tar.bz2 podman-fd1715568b7c14451dcf2581c385c8d3e307d30e.zip |
Merge pull request #10816 from rhatdan/network
Handle advanced --network options in podman play kube
Diffstat (limited to 'test')
-rw-r--r-- | test/system/700-play.bats | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/system/700-play.bats b/test/system/700-play.bats index 15f3e240a..3e6961b08 100644 --- a/test/system/700-play.bats +++ b/test/system/700-play.bats @@ -89,6 +89,18 @@ RELABEL="system_u:object_r:container_file_t:s0" run_podman pod rm -f test_pod } +@test "podman play --network" { + TESTDIR=$PODMAN_TMPDIR/testdir + mkdir -p $TESTDIR + echo "$testYaml" | sed "s|TESTDIR|${TESTDIR}|g" > $PODMAN_TMPDIR/test.yaml + run_podman 125 play kube --network bridge $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 wth --network host" + run_podman 125 play kube --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 wth --network host" + run_podman play kube --network slirp4netns:port_handler=slirp4netns $PODMAN_TMPDIR/test.yaml + run_podman pod rm -f test_pod +} + @test "podman play with user from image" { TESTDIR=$PODMAN_TMPDIR/testdir mkdir -p $TESTDIR |