diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-09-08 13:55:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-08 13:55:21 +0200 |
commit | 558ba1b99ec5af32e0e92934dc87c7461a975469 (patch) | |
tree | 36d79d40c2f469fdc8cc977d9738e7782058d661 /test/system | |
parent | 180a3c42d254ada21366a5ca511f234a9b2bbcd5 (diff) | |
parent | f18ccbcc0f70c23a6b854130395d9a940383290b (diff) | |
download | podman-558ba1b99ec5af32e0e92934dc87c7461a975469.tar.gz podman-558ba1b99ec5af32e0e92934dc87c7461a975469.tar.bz2 podman-558ba1b99ec5af32e0e92934dc87c7461a975469.zip |
Merge pull request #11468 from Luap99/play-kube-slirp
fix play kube --network options
Diffstat (limited to 'test/system')
-rw-r--r-- | test/system/700-play.bats | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/system/700-play.bats b/test/system/700-play.bats index 7f35877aa..2b05cdd84 100644 --- a/test/system/700-play.bats +++ b/test/system/700-play.bats @@ -98,6 +98,16 @@ RELABEL="system_u:object_r:container_file_t:s0" 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 with --network host" run_podman play kube --network slirp4netns:port_handler=slirp4netns $PODMAN_TMPDIR/test.yaml + run_podman pod inspect --format {{.InfraContainerID}} "${lines[1]}" + infraID="$output" + run_podman container inspect --format "{{.HostConfig.NetworkMode}}" $infraID + is "$output" "slirp4netns" "network mode slirp4netns is set for the container" + run_podman pod rm -f test_pod + run_podman play kube --network none $PODMAN_TMPDIR/test.yaml + run_podman pod inspect --format {{.InfraContainerID}} "${lines[1]}" + infraID="$output" + run_podman container inspect --format "{{.HostConfig.NetworkMode}}" $infraID + is "$output" "none" "network mode none is set for the container" run_podman pod rm -f test_pod } |