summaryrefslogtreecommitdiff
path: root/test/apiv2
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2021-04-27 09:22:32 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2021-04-27 10:32:06 -0400
commit825c84efe1feaf95e63476db6b9c69510e1b87de (patch)
tree5c1dcd1bc18718a3d423a2b4523b4d8180ec2b88 /test/apiv2
parent3148e01651e939f345242d582d82a068d1c6dd7e (diff)
downloadpodman-825c84efe1feaf95e63476db6b9c69510e1b87de.tar.gz
podman-825c84efe1feaf95e63476db6b9c69510e1b87de.tar.bz2
podman-825c84efe1feaf95e63476db6b9c69510e1b87de.zip
Allow docker volume create API to pass without name
The Docker API does not require Volume name to be specified when creating a volume. Fixes: https://github.com/containers/podman/issues/9803 Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'test/apiv2')
-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 \