summaryrefslogtreecommitdiffstats
path: root/nova/tests/scheduler/test_scheduler.py
diff options
context:
space:
mode:
authorAndrew Laski <andrew.laski@rackspace.com>2013-06-17 10:36:46 -0400
committerAndrew Laski <andrew.laski@rackspace.com>2013-06-28 09:48:14 -0400
commit4f3c5411d92d488b78f06212912fc7ae6d225b79 (patch)
tree2265977f9567fec74f96b34ec965a1666df57259 /nova/tests/scheduler/test_scheduler.py
parent7a241e5f8be927ff87c6ee6a478a7757a4a55813 (diff)
downloadnova-4f3c5411d92d488b78f06212912fc7ae6d225b79.tar.gz
nova-4f3c5411d92d488b78f06212912fc7ae6d225b79.tar.xz
nova-4f3c5411d92d488b78f06212912fc7ae6d225b79.zip
New select_destinations scheduler call
select_destinations returns a list of (host, node) tuples that satisfy the request_spec and filter_properties passed to it. This will allow the conductor to get a list of destinations for workflows such as creating or resizing an instance and then handle the orchestration itself. part of bp query-scheduler Change-Id: I1a42cea64dbad67562d7efe8d759e6efb5ec8121
Diffstat (limited to 'nova/tests/scheduler/test_scheduler.py')
-rw-r--r--nova/tests/scheduler/test_scheduler.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/nova/tests/scheduler/test_scheduler.py b/nova/tests/scheduler/test_scheduler.py
index 149c6d3c8..e2778a94b 100644
--- a/nova/tests/scheduler/test_scheduler.py
+++ b/nova/tests/scheduler/test_scheduler.py
@@ -527,6 +527,10 @@ class SchedulerDriverBaseTestCase(SchedulerTestCase):
self.assertRaises(NotImplementedError,
self.driver.select_hosts, self.context, {}, {})
+ def test_unimplemented_select_destinations(self):
+ self.assertRaises(NotImplementedError,
+ self.driver.select_destinations, self.context, {}, {})
+
class SchedulerDriverModuleTestCase(test.NoDBTestCase):
"""Test case for scheduler driver module methods."""