summaryrefslogtreecommitdiff
path: root/test/apiv2/20-containers.at
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-01-27 12:50:11 +0100
committerGitHub <noreply@github.com>2021-01-27 12:50:11 +0100
commit179b9d1745db19cb420b0a8f8d6afa4dfc07dd91 (patch)
tree8acc8eaf177c93d74e6b7ed243197ff01c995078 /test/apiv2/20-containers.at
parent5c6175df390031bcf34d28935a79ee467cca7e7d (diff)
parent1ae410d19e0ead7db89192b3d0e290a677314d6e (diff)
downloadpodman-179b9d1745db19cb420b0a8f8d6afa4dfc07dd91.tar.gz
podman-179b9d1745db19cb420b0a8f8d6afa4dfc07dd91.tar.bz2
podman-179b9d1745db19cb420b0a8f8d6afa4dfc07dd91.zip
Merge pull request #9025 from mheon/add_support_volumes_field
Ensure the Volumes field in Compat Create is honored
Diffstat (limited to 'test/apiv2/20-containers.at')
-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 decdc4754..0da196e46 100644
--- a/test/apiv2/20-containers.at
+++ b/test/apiv2/20-containers.at
@@ -237,3 +237,12 @@ t GET containers/$cid/json 200 \
t DELETE containers/$cid 204
t DELETE images/${MultiTagName}?force=true 200
# vim: filetype=sh
+
+# Test Volumes field adds an anonymous volume
+t POST containers/create '"Image":"'$IMAGE'","Volumes":{"/test":{}}' 201 \
+ .Id~[0-9a-f]\\{64\\}
+cid=$(jq -r '.Id' <<<"$output")
+t GET containers/$cid/json 200 \
+ .Mounts[0].Destination="/test"
+
+t DELETE containers/$cid?v=true 204