Ejemplo n.º 1
0
 def test_live_migration_abort_still_working(self):
     # Elapsed time is less than completion timeout
     self.assertFalse(
         migration.should_trigger_timeout_action(self.instance, 4500, 9000,
                                                 "running"))
Ejemplo n.º 2
0
 def test_live_migration_abort_no_comp_timeout(self):
     # Completion timeout is disabled
     self.assertFalse(
         migration.should_trigger_timeout_action(self.instance, 4500, 0,
                                                 "running"))
Ejemplo n.º 3
0
 def test_live_migration_abort_too_long(self):
     # Elapsed time is over completion timeout
     self.assertTrue(
         migration.should_trigger_timeout_action(self.instance, 4500, 2000,
                                                 "running"))
Ejemplo n.º 4
0
 def test_live_migration_abort_still_working(self):
     # Elapsed time is less than completion timeout
     self.assertFalse(migration.should_trigger_timeout_action(
         self.instance, 4500, 9000, "running"))
Ejemplo n.º 5
0
 def test_live_migration_abort_no_comp_timeout(self):
     # Completion timeout is disabled
     self.assertFalse(migration.should_trigger_timeout_action(
         self.instance, 4500, 0, "running"))
Ejemplo n.º 6
0
 def test_live_migration_abort_too_long(self):
     # Elapsed time is over completion timeout
     self.assertTrue(migration.should_trigger_timeout_action(
         self.instance, 4500, 2000, "running"))