summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-04-27 12:02:31 -0400
committerGitHub <noreply@github.com>2021-04-27 12:02:31 -0400
commitba9c1f3f17a4f0086d9ac25fe0f211b3c75e514a (patch)
tree2ebe0ae37886d1e49b1f2cf7ccfc22d5a911db82 /test
parentabda7961d63b1d240f72022757e6be1673e43897 (diff)
parent825c84efe1feaf95e63476db6b9c69510e1b87de (diff)
downloadpodman-ba9c1f3f17a4f0086d9ac25fe0f211b3c75e514a.tar.gz
podman-ba9c1f3f17a4f0086d9ac25fe0f211b3c75e514a.tar.bz2
podman-ba9c1f3f17a4f0086d9ac25fe0f211b3c75e514a.zip
Merge pull request #10149 from rhatdan/volume
Allow docker volume create API to pass without name
Diffstat (limited to 'test')
-rw-r--r--test/apiv2/30-volumes.at7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/apiv2/30-volumes.at b/test/apiv2/30-volumes.at
index 623e691e3..ed606134a 100644
--- a/test/apiv2/30-volumes.at
+++ b/test/apiv2/30-volumes.at
@@ -13,6 +13,13 @@ t POST libpod/volumes/create name=foo1 201 \
.CreatedAt~[0-9]\\{4\\}-[0-9]\\{2\\}-[0-9]\\{2\\}.* \
.Labels={} \
.Options={}
+t POST volumes/create 201 \
+ .Name~[0-9a-f]\\{64\\}
+ .Driver=local \
+ .Mountpoint=$volumepath/~[0-9a-f]\\{64\\}/_data \
+ .CreatedAt~[0-9]\\{4\\}-[0-9]\\{2\\}-[0-9]\\{2\\}.* \
+ .Labels={} \
+ .Options={}
t POST libpod/volumes/create 201
t POST libpod/volumes/create \
Name=foo2 \