Example #1
0
 def setUp(self):
     super(ProcessFailureTestCase, self).setUp()
     self.ctxt = context.get_admin_context()
     self.process_name = "nova-compute"
     self.service_host = "fake-host"
     self.novaclient = nova.API()
     self.fake_client = fakes.FakeNovaClient()
     # overriding 'wait_period_after_service_update' to 2 seconds
     # to reduce the wait period.
     self.override_config('wait_period_after_service_update', 2)
 def setUp(self):
     super(HostFailureTestCase, self).setUp()
     self.ctxt = context.get_admin_context()
     # overriding 'wait_period_after_evacuation' and
     # 'wait_period_after_service_update' to 2 seconds to
     # reduce the wait period.
     self.override_config("wait_period_after_evacuation", 2)
     self.override_config("wait_period_after_service_update", 2)
     self.override_config("evacuate_all_instances", False, "host_failure")
     self.instance_host = "fake-host"
     self.novaclient = nova.API()
     self.fake_client = fakes.FakeNovaClient()
Example #3
0
 def setUp(self):
     super(InstanceFailureTestCase, self).setUp()
     self.ctxt = context.get_admin_context()
     self.novaclient = nova.API()
     self.fake_client = fakes.FakeNovaClient()
     self.instance_id = "1"
     # overriding 'wait_period_after_power_off' and
     # 'wait_period_after_power_on' to 2 seconds to
     # reduce the wait period.
     self.override_config('wait_period_after_power_off', 2)
     self.override_config('wait_period_after_power_on', 2)
     self.override_config("process_all_instances",
                          False, "instance_failure")