summaryrefslogtreecommitdiff
path: root/tests/fake_api.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/fake_api.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/fake_api.py')
-rw-r--r--tests/fake_api.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/fake_api.py b/tests/fake_api.py
index 214b197..8852da0 100644
--- a/tests/fake_api.py
+++ b/tests/fake_api.py
@@ -529,7 +529,7 @@ fake_responses = {
get_fake_events,
('{1}/{0}/volumes'.format(CURRENT_VERSION, prefix), 'GET'):
get_fake_volume_list,
- ('{1}/{0}/volumes'.format(CURRENT_VERSION, prefix), 'POST'):
+ ('{1}/{0}/volumes/create'.format(CURRENT_VERSION, prefix), 'POST'):
get_fake_volume,
('{1}/{0}/volumes/{2}'.format(
CURRENT_VERSION, prefix, FAKE_VOLUME_NAME