summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-06-08 09:30:26 +0200
committerGitHub <noreply@github.com>2021-06-08 09:30:26 +0200
commit74a0dc7d856af60a39944920283569ce4a21ac82 (patch)
tree751cd91a7f4e4db5abf30d42ca47487d432ea6a6 /test
parentdf3b6da12c1fb934de3b08f72d585d4273de7835 (diff)
parent260192670f9128438a39cf3d1de40a3d0bc8e9ee (diff)
downloadpodman-74a0dc7d856af60a39944920283569ce4a21ac82.tar.gz
podman-74a0dc7d856af60a39944920283569ce4a21ac82.tar.bz2
podman-74a0dc7d856af60a39944920283569ce4a21ac82.zip
Merge pull request #10591 from mheon/fix_10569
Fix compat create with NetworkMode=default
Diffstat (limited to 'test')
-rw-r--r--test/apiv2/20-containers.at9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/apiv2/20-containers.at b/test/apiv2/20-containers.at
index a81210855..ef51757c9 100644
--- a/test/apiv2/20-containers.at
+++ b/test/apiv2/20-containers.at
@@ -341,3 +341,12 @@ t GET containers/$cid/json 200 \
.HostConfig.NanoCpus=500000
t DELETE containers/$cid?v=true 204
+
+# Test Compat Create with default network mode (#10569)
+t POST containers/create Image=$IMAGE HostConfig='{"NetworkMode":"default"}' 201 \
+ .Id~[0-9a-f]\\{64\\}
+cid=$(jq -r '.Id' <<<"$output")
+t GET containers/$cid/json 200 \
+ .HostConfig.NetworkMode="bridge"
+
+t DELETE containers/$cid?v=true 204