Skip to content

Commit 6949f84

Browse files
committed
experiment: reintroduce create test (leaks a container)
1 parent de48be9 commit 6949f84

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

test/apiv2/20-containers.at

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -949,16 +949,16 @@ for runtime in "${oci_runtimes[@]}"; do
949949
done
950950

951951
# EXPERIMENT
952-
## 27998: make sure a created (and not started) container with userns=auto shows
953-
## UsernsMode = private before being started
954-
#
955-
#t POST libpod/containers/create \
956-
# image=$IMAGE \
957-
# UserNS='{"NSMode":"auto"}' \
958-
# IDMappings='{"AutoUserNs":true,"AutoUserNsOpts":{"AdditionalUIDMappings":[],"AdditionalGIDMappings":[],"PasswdFile":"","GroupFile":"","InitialSize":0,"Size":0}}' \
959-
# 201
960-
#cid=$(jq -r '.Id' <<<"$output")
961-
#
952+
# 27998: make sure a created (and not started) container with userns=auto shows
953+
# UsernsMode = private before being started
954+
955+
t POST libpod/containers/create \
956+
image=$IMAGE \
957+
UserNS='{"NSMode":"auto"}' \
958+
IDMappings='{"AutoUserNs":true,"AutoUserNsOpts":{"AdditionalUIDMappings":[],"AdditionalGIDMappings":[],"PasswdFile":"","GroupFile":"","InitialSize":0,"Size":0}}' \
959+
201
960+
cid=$(jq -r '.Id' <<<"$output")
961+
962962
#t GET libpod/containers/$cid/json \
963963
# 200 \
964964
# .HostConfig.UsernsMode='private'

0 commit comments

Comments
 (0)