From 4f3c5411d92d488b78f06212912fc7ae6d225b79 Mon Sep 17 00:00:00 2001 From: Andrew Laski Date: Mon, 17 Jun 2013 10:36:46 -0400 Subject: 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 --- nova/tests/scheduler/test_scheduler.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'nova/tests/scheduler/test_scheduler.py') 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.""" -- cgit