예제 #1
0
    def test_run_migration_which_is_in_running_state(self):
        """ Test run the migration which is already in running state"""
        test_migration = Migration(
            mount_points=self._mount_points,
            source=self._test_workload,
            migration_target=self._test_migration_target,
            migration_state=MigrationState.RUNNING)

        with self.assertRaises(Exception):
            test_migration.run()
예제 #2
0
    def test_run_migration_without_c(self):
        """ Test migration without main mount point (C:\\ drive in this case)"""
        self._mount_points[0].name = 'D:\\'
        test_migration = Migration(
            mount_points=self._mount_points,
            source=self._test_workload,
            migration_target=self._test_migration_target,
            migration_state=MigrationState.NOT_STARTED)

        with self.assertRaises(Exception):
            test_migration.run()