summaryrefslogtreecommitdiff
path: root/test/apiv2/20-containers.at
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-07-14 13:42:58 -0400
committerGitHub <noreply@github.com>2021-07-14 13:42:58 -0400
commit9570bf6b30ae35a4227a021c5ef7382515f2a790 (patch)
tree3078284a0a659990d42fbbefbf70ecc6af1d73c5 /test/apiv2/20-containers.at
parentace19c75ad61f96239996959aee0db361abbf501 (diff)
parent6ced24d0b66eef6d6ac5960c49b339190c83679c (diff)
downloadpodman-9570bf6b30ae35a4227a021c5ef7382515f2a790.tar.gz
podman-9570bf6b30ae35a4227a021c5ef7382515f2a790.tar.bz2
podman-9570bf6b30ae35a4227a021c5ef7382515f2a790.zip
Merge pull request #10662 from mwhahaha/fix-apiv2-tests
Fix broken volume and container tests
Diffstat (limited to 'test/apiv2/20-containers.at')
-rw-r--r--test/apiv2/20-containers.at8
1 files changed, 2 insertions, 6 deletions
diff --git a/test/apiv2/20-containers.at b/test/apiv2/20-containers.at
index ef51757c9..c5b2f5ec1 100644
--- a/test/apiv2/20-containers.at
+++ b/test/apiv2/20-containers.at
@@ -211,15 +211,11 @@ t GET containers/$cid/json 200 \
t POST containers/create Image=$IMAGE Entrypoint='["top"]' 201 \
.Id~[0-9a-f]\\{64\\}
cid_top=$(jq -r '.Id' <<<"$output")
-network_expect="{}"
-if root; then
- network_expect='.podman.NetworkID=podman'
-fi
t GET containers/${cid_top}/json 200 \
.Config.Entrypoint[0]="top" \
.Config.Cmd='[]' \
- .Path="top"
- .NetworkSettings.Networks="$network_expect"
+ .Path="top" \
+ .NetworkSettings.Networks.podman.NetworkID=podman
t POST containers/${cid_top}/start 204
# make sure the container is running
t GET containers/${cid_top}/json 200 \