summaryrefslogtreecommitdiffstats
path: root/nova/tests
diff options
context:
space:
mode:
authorDan Smith <danms@us.ibm.com>2013-01-04 09:18:33 -0800
committerGerrit Code Review <review@openstack.org>2013-01-05 04:30:05 +0000
commitd2edb0a0077f6acd6a9db359822b63cc1a19dbff (patch)
tree72dd10290d96f10de1ca5bf42366ad57f2b8bf33 /nova/tests
parentba2a0565a6451ee3227b6e11bbdd8ea75cbf1fc3 (diff)
Move migration_get_unconfirmed_by_dest_compute to conductor
This patch moves compute/manager's use of the db query migration_get_unconfirmed_by_dest_compute to the conductor. Related to blueprint no-db-compute-manager Change-Id: Ic92f3ae09f831465d12809c14c4a18ffd394f26f
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 d2c3df19a..b2342f5b4 100644
--- a/nova/tests/conductor/test_conductor.py
+++ b/nova/tests/conductor/test_conductor.py
@@ -100,6 +100,17 @@ class _BaseTestCase(object):
self.conductor.migration_get(self.context,
migration['id']))
+ def test_migration_get_unconfirmed_by_dest_compute(self):
+ self.mox.StubOutWithMock(db,
+ 'migration_get_unconfirmed_by_dest_compute')
+ db.migration_get_unconfirmed_by_dest_compute(self.context,
+ 'fake-window',
+ 'fake-host')
+ self.mox.ReplayAll()
+ self.conductor.migration_get_unconfirmed_by_dest_compute(self.context,
+ 'fake-window',
+ 'fake-host')
+
def test_migration_update(self):
migration = db.migration_create(self.context.elevated(),
{'instance_uuid': 'fake-uuid',