]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix hosts extension and enable its tests
authorZhiteng Huang <zhiteng.huang@intel.com>
Thu, 24 Jan 2013 17:21:44 +0000 (01:21 +0800)
committerZhiteng Huang <zhiteng.huang@intel.com>
Thu, 24 Jan 2013 17:39:17 +0000 (01:39 +0800)
commitac7031b1b61496086394340f6bf15677f24bd39b
tree05428d2968e0fa426d254b15e44519965c0dd7ac
parent5739ed173e7f0bef903e7bc609bb87286bb4304f
Fix hosts extension and enable its tests

This patch corrects the import in hosts.py, fix the DB API
service_get_by_host_and_topic raises ServiceNotFound exception with
right parameter and move tests to the right place so that they are
enabled.

Fix LP bug: #1104231

Change-Id: I07c486f456196a3812eb5274b950ab9560a51cf3
cinder/api/contrib/hosts.py
cinder/db/sqlalchemy/api.py
cinder/tests/api/contrib/test_hosts.py [moved from cinder/tests/api/openstack/volume/contrib/test_hosts.py with 99% similarity]