Exemple #1
0
 def setUp(self):
     super(TestGetMatrix, self).setUp()
     self.fast_solver = fast_solver.FastSolver()
     self.fake_hosts = [
         host_manager.SolverSchedulerHostState('fake_host%s' % x,
                                               'fake-node')
         for x in xrange(1, 5)
     ]
     self.fake_hosts += [
         host_manager.SolverSchedulerHostState('fake_multihost',
                                               'fake-node%s' % x)
         for x in xrange(1, 5)
     ]
Exemple #2
0
 def setUp(self):
     super(TestPulpSolver, self).setUp()
     self.pulp_solver = pulp_solver.PulpSolver()
     self.fake_hosts = [
         host_manager.SolverSchedulerHostState('fake_host%s' % x,
                                               'fake-node')
         for x in xrange(1, 5)
     ]
     self.fake_hosts += [
         host_manager.SolverSchedulerHostState('fake_multihost',
                                               'fake-node%s' % x)
         for x in xrange(1, 5)
     ]
Exemple #3
0
 def setUp(self, mock_init_agg, mock_init_inst):
     super(SolverSchedulerHostManagerTestCase, self).setUp()
     self.host_manager = host_manager.SolverSchedulerHostManager()
     self.fake_hosts = [
         host_manager.SolverSchedulerHostState('fake_host%s' % x,
                                               'fake-node')
         for x in xrange(1, 5)
     ]
     self.fake_hosts += [
         host_manager.SolverSchedulerHostState('fake_multihost',
                                               'fake-node%s' % x)
         for x in xrange(1, 5)
     ]
     self.addCleanup(timeutils.clear_time_override)