Пример #1
0
 def test_live_migration_abort_still_working(self):
     # Elapsed time is less than completion timeout
     self.assertFalse(migration.should_abort(self.instance,
                                             5000,
                                             4500, 2000,
                                             4500, 9000,
                                             "running"))
Пример #2
0
 def test_live_migration_abort_too_long(self):
     # Elapsed time is over completion timeout
     self.assertTrue(migration.should_abort(self.instance,
                                            5000,
                                            4500, 2000,
                                            4500, 2000,
                                            "running"))
Пример #3
0
 def test_live_migration_abort_no_comp_timeout(self):
     # Completion timeout is disabled
     self.assertFalse(migration.should_abort(self.instance,
                                             5000,
                                             4500, 2000,
                                             4500, 0,
                                             "running"))
Пример #4
0
 def test_live_migration_abort_no_prog_timeout(self):
     # Progress timeout is disabled
     self.assertFalse(migration.should_abort(self.instance,
                                             5000,
                                             1000, 0,
                                             4500, 9000,
                                             "running"))
Пример #5
0
 def test_live_migration_abort_not_stuck(self):
     # Progress time is less than progress timeout
     self.assertFalse(migration.should_abort(self.instance,
                                             5000,
                                             4500, 2000,
                                             4500, 9000,
                                             "running"))
Пример #6
0
 def test_live_migration_abort_still_working(self):
     # Elapsed time is less than completion timeout
     self.assertFalse(migration.should_abort(self.instance,
                                             5000,
                                             4500, 2000,
                                             4500, 9000,
                                             "running"))
Пример #7
0
 def test_live_migration_abort_stuck(self):
     # Progress time exceeds progress timeout
     self.assertTrue(migration.should_abort(self.instance,
                                            5000,
                                            1000, 2000,
                                            4500, 9000,
                                            "running"))
Пример #8
0
 def test_live_migration_abort_no_comp_timeout(self):
     # Completion timeout is disabled
     self.assertFalse(migration.should_abort(self.instance,
                                             5000,
                                             4500, 2000,
                                             4500, 0,
                                             "running"))
Пример #9
0
 def test_live_migration_abort_too_long(self):
     # Elapsed time is over completion timeout
     self.assertTrue(migration.should_abort(self.instance,
                                            5000,
                                            4500, 2000,
                                            4500, 2000,
                                            "running"))
Пример #10
0
 def test_live_migration_abort_not_stuck(self):
     # Progress time is less than progress timeout
     self.assertFalse(migration.should_abort(self.instance,
                                             5000,
                                             4500, 2000,
                                             4500, 9000,
                                             "running"))
Пример #11
0
 def test_live_migration_abort_no_prog_timeout(self):
     # Progress timeout is disabled
     self.assertFalse(migration.should_abort(self.instance,
                                             5000,
                                             1000, 0,
                                             4500, 9000,
                                             "running"))
Пример #12
0
 def test_live_migration_abort_stuck(self):
     # Progress time exceeds progress timeout
     self.assertTrue(migration.should_abort(self.instance,
                                            5000,
                                            1000, 2000,
                                            4500, 9000,
                                            "running"))