Beispiel #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"))
Beispiel #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"))
Beispiel #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"))
Beispiel #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"))
Beispiel #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"))
Beispiel #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"))
Beispiel #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"))
Beispiel #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"))
Beispiel #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"))
Beispiel #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"))
Beispiel #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"))
Beispiel #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"))