]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Add availability zone checking in the api service
authorHaomai Wang <haomai@unitedstack.com>
Mon, 10 Jun 2013 15:20:26 +0000 (23:20 +0800)
committerHaomai Wang <haomai@unitedstack.com>
Tue, 11 Jun 2013 13:23:29 +0000 (21:23 +0800)
commit1f994f2589411e80852650025a5a8e6cb0dc8c85
tree068a6871628331dabe785900ff415ac629df2e96
parentaa7fde57a37ae8e03f137e7b525cc77109cc31c1
Add availability zone checking in the api service

This patch adds availability zone checking for api request period.
If the availability zone the request specified isn't exist in the
Cinder services, the response returned to the user will give an
error immediately.

Fixes bug: 1185714

Change-Id: I842eec7b500c3ff6a7e5d8fc5e397d61617b0eea
cinder/tests/api/v1/stubs.py
cinder/tests/api/v1/test_volume_metadata.py
cinder/tests/api/v1/test_volumes.py
cinder/tests/api/v2/stubs.py
cinder/tests/api/v2/test_volumes.py
cinder/tests/integrated/test_volumes.py
cinder/volume/api.py