summaryrefslogtreecommitdiffstats
path: root/nova/tests
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2013-01-04 22:37:22 +0000
committerGerrit Code Review <review@openstack.org>2013-01-04 22:37:22 +0000
commit8fe279661b0c554b19fbfd145fe266ec58cad4fa (patch)
treec2a9d255de041036627d48912f8a0e560778f916 /nova/tests
parent11698a3073d743154360ebeac982fb0a5f566bcc (diff)
parent1bf89924ba6eafc394612f9d62c1b52251825b2b (diff)
Merge "Move block_device_mapping get operations to conductor"
Diffstat (limited to 'nova/tests')
-rw-r--r--nova/tests/conductor/test_conductor.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/nova/tests/conductor/test_conductor.py b/nova/tests/conductor/test_conductor.py
index 0d1ff1d60..4aa552cc7 100644
--- a/nova/tests/conductor/test_conductor.py
+++ b/nova/tests/conductor/test_conductor.py
@@ -268,6 +268,17 @@ class _BaseTestCase(object):
'fake-arch')
self.assertEqual(result, 'it worked')
+ def test_block_device_mapping_get_all_by_instance(self):
+ fake_inst = {'uuid': 'fake-uuid'}
+ self.mox.StubOutWithMock(db,
+ 'block_device_mapping_get_all_by_instance')
+ db.block_device_mapping_get_all_by_instance(
+ self.context, fake_inst['uuid']).AndReturn('fake-result')
+ self.mox.ReplayAll()
+ result = self.conductor.block_device_mapping_get_all_by_instance(
+ self.context, fake_inst)
+ self.assertEqual(result, 'fake-result')
+
class ConductorTestCase(_BaseTestCase, test.TestCase):
"""Conductor Manager Tests"""