summaryrefslogtreecommitdiffstats
path: root/nova/tests/conductor
diff options
context:
space:
mode:
authorRussell Bryant <rbryant@redhat.com>2013-05-20 17:44:02 -0400
committerAndrew Laski <andrew.laski@rackspace.com>2013-05-24 12:52:45 -0400
commitc08cf464e3a81d48f3017e36c2209800f28c14a7 (patch)
treefcfcb48d2da79562e62af8548353cbae13c1005c /nova/tests/conductor
parent73077b4c5dd137ed5c0571c963319c0ec92b4e80 (diff)
downloadnova-c08cf464e3a81d48f3017e36c2209800f28c14a7.tar.gz
nova-c08cf464e3a81d48f3017e36c2209800f28c14a7.tar.xz
nova-c08cf464e3a81d48f3017e36c2209800f28c14a7.zip
Set up 'compute_task' conductor namespace.
This patch sets up a new API to be exposed by the nova-conductor service. The existing methods exposed by conductor are all proxy operations on behalf of compute nodes. For Havana, we have plans to add methods that go the other direction. Operations initiated by the API will be processed by the conductor, which will include telling one or more compute nodes what to do. By putting all operations of this form in their own API, it will keep things a bit more clearly separated. Change-Id: Ifa3d443b9bd7f406a7a3bd837351bc689bf2b6c8
Diffstat (limited to 'nova/tests/conductor')
-rw-r--r--nova/tests/conductor/test_conductor.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/nova/tests/conductor/test_conductor.py b/nova/tests/conductor/test_conductor.py
index 3aebf76af..8195a0bc6 100644
--- a/nova/tests/conductor/test_conductor.py
+++ b/nova/tests/conductor/test_conductor.py
@@ -1083,16 +1083,22 @@ class ConductorImportTest(test.TestCase):
self.flags(use_local=True, group='conductor')
self.assertTrue(isinstance(conductor.API(),
conductor_api.LocalAPI))
+ self.assertTrue(isinstance(conductor.ComputeTaskAPI(),
+ conductor_api.LocalComputeTaskAPI))
def test_import_conductor_rpc(self):
self.flags(use_local=False, group='conductor')
self.assertTrue(isinstance(conductor.API(),
conductor_api.API))
+ self.assertTrue(isinstance(conductor.ComputeTaskAPI(),
+ conductor_api.ComputeTaskAPI))
def test_import_conductor_override_to_local(self):
self.flags(use_local=False, group='conductor')
self.assertTrue(isinstance(conductor.API(use_local=True),
conductor_api.LocalAPI))
+ self.assertTrue(isinstance(conductor.ComputeTaskAPI(use_local=True),
+ conductor_api.LocalComputeTaskAPI))
class ConductorPolicyTest(test.TestCase):