Esempio n. 1
0
 def setUp(self):
     super(TestNodeStracker, self).setUp()
     self.container_driver = fake_driver.FakeDriver()
     self.capsule_driver = fake_driver.FakeDriver()
     self.report_client_mock = mock.MagicMock()
     self._resource_tracker = compute_node_tracker.ComputeNodeTracker(
         'testhost', self.container_driver, self.capsule_driver,
         self.report_client_mock)
Esempio n. 2
0
 def _get_resource_tracker(self):
     if not self._resource_tracker:
         rt = compute_node_tracker.ComputeNodeTracker(
             self.host, self.driver)
         self._resource_tracker = rt
     return self._resource_tracker
Esempio n. 3
0
 def setUp(self):
     super(TestNodeStracker, self).setUp()
     self.container_driver = fake_driver.FakeDriver()
     self._resource_tracker = compute_node_tracker.ComputeNodeTracker(
         'testhost', self.container_driver)