Beispiel #1
0
 def test_live_migration_postcopy_switch_fast_progress(self):
     # Migration progress is good
     self.assertFalse(
         migration.should_switch_to_postcopy(2, 100, 155, "running"))
Beispiel #2
0
 def test_live_migration_postcopy_switch_already_switched(self):
     # Migration already running in postcopy mode
     self.assertFalse(
         migration.should_switch_to_postcopy(2, 100, 105,
                                             "running (post-copy)"))
Beispiel #3
0
 def test_live_migration_postcopy_switch_too_soon(self):
     # First memory iteration not completed yet
     self.assertFalse(
         migration.should_switch_to_postcopy(1, 100, 105, "running"))
Beispiel #4
0
 def test_live_migration_postcopy_switch(self):
     # Migration progress is not fast enough
     self.assertTrue(
         migration.should_switch_to_postcopy(2, 100, 105, "running"))
Beispiel #5
0
 def test_live_migration_postcopy_switch_fast_progress(self):
     # Migration progress is good
     self.assertFalse(migration.should_switch_to_postcopy(
             2, 100, 155, "running"))
Beispiel #6
0
 def test_live_migration_postcopy_switch_too_soon(self):
     # First memory iteration not completed yet
     self.assertFalse(migration.should_switch_to_postcopy(
             1, 100, 105, "running"))
Beispiel #7
0
 def test_live_migration_postcopy_switch_already_switched(self):
     # Migration already running in postcopy mode
     self.assertFalse(migration.should_switch_to_postcopy(
             2, 100, 105, "running (post-copy)"))
Beispiel #8
0
 def test_live_migration_postcopy_switch(self):
     # Migration progress is not fast enough
     self.assertTrue(migration.should_switch_to_postcopy(
             2, 100, 105, "running"))