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)
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
def setUp(self): super(TestNodeStracker, self).setUp() self.container_driver = fake_driver.FakeDriver() self._resource_tracker = compute_node_tracker.ComputeNodeTracker( 'testhost', self.container_driver)