diff options
-rw-r--r-- | nova/tests/functional/integrated_helpers.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/nova/tests/functional/integrated_helpers.py b/nova/tests/functional/integrated_helpers.py index 47980d8703..2afafd0a22 100644 --- a/nova/tests/functional/integrated_helpers.py +++ b/nova/tests/functional/integrated_helpers.py @@ -376,6 +376,14 @@ class InstanceHelperMixin(object): self.fail('The line "%(log_line)s" did not appear in the log') + def _live_migrate(self, server, migration_final_status): + self.api.post_server_action( + server['id'], + {'os-migrateLive': {'host': None, + 'block_migration': 'auto'}}) + self._wait_for_state_change(self.api, server, 'ACTIVE') + self._wait_for_migration_status(server, [migration_final_status]) + class ProviderUsageBaseTestCase(test.TestCase, InstanceHelperMixin): """Base test class for functional tests that check provider usage |