summaryrefslogtreecommitdiff
path: root/tests/test.py
diff options
context:
space:
mode:
authorJoffrey F <joffrey@docker.com>2015-10-21 13:51:09 -0700
committerJoffrey F <joffrey@docker.com>2015-10-21 13:51:09 -0700
commit0258c6e622f41b1c145f28d273424541c354ef6f (patch)
tree75e4e64ea7719ed3aefc045bbf9d1ab342cc62df /tests/test.py
parent4552e78c0282c1519d9fce5497937ad619776d72 (diff)
downloaddocker-py-819-volumes-create.tar.gz
Update `Client.create_volume` to use new endpoint819-volumes-create
New API endpoint is POST /volumes/create (previously just /volumes) Since the feature is yet unreleased (RC), no fallback strategy is implemented. Signed-off-by: Joffrey F <joffrey@docker.com>
Diffstat (limited to 'tests/test.py')
-rw-r--r--tests/test.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test.py b/tests/test.py
index 20ec88c..86f1941 100644
--- a/tests/test.py
+++ b/tests/test.py
@@ -2208,7 +2208,7 @@ class DockerClientTest(Cleanup, base.BaseTestCase):
args = fake_request.call_args
self.assertEqual(args[0][0], 'POST')
- self.assertEqual(args[0][1], url_prefix + 'volumes')
+ self.assertEqual(args[0][1], url_prefix + 'volumes/create')
self.assertEqual(json.loads(args[1]['data']), {'Name': name})
@base.requires_api_version('1.21')
@@ -2219,7 +2219,7 @@ class DockerClientTest(Cleanup, base.BaseTestCase):
args = fake_request.call_args
self.assertEqual(args[0][0], 'POST')
- self.assertEqual(args[0][1], url_prefix + 'volumes')
+ self.assertEqual(args[0][1], url_prefix + 'volumes/create')
data = json.loads(args[1]['data'])
self.assertIn('Driver', data)
self.assertEqual(data['Driver'], driver_name)