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-29 17:30:41 -0500
committerGitHub <noreply@github.com>2021-01-29 17:30:41 -0500
commit745fa4ac94c3ec99becd85f59d1b59c2c9765527 (patch)
tree63f32aeeb816a637e9406217a4044ff91031cd31 /test/apiv2/20-containers.at
parentb6336071101fe4f19a7826d16f0dd61394678853 (diff)
parentc1f05be4d7ac31c741a9ea542e284d731c6544a1 (diff)
downloadpodman-745fa4ac94c3ec99becd85f59d1b59c2c9765527.tar.gz
podman-745fa4ac94c3ec99becd85f59d1b59c2c9765527.tar.bz2
podman-745fa4ac94c3ec99becd85f59d1b59c2c9765527.zip
Merge pull request #9163 from mheon/backports_rc2
Backports for v3.0 RC2
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