Move test_fuel_migration from system tests to pytest

Test is checking functionality of Fuel Master node after migration.

Change-Id: I4be00cfcfb5fd3cd95ea2520a6ce30849b7c0fa2
This commit is contained in:
Alisa Tselovalnikova 2016-09-13 12:19:18 +03:00 committed by Sergey Novikov
parent 0749cb6447
commit e5ce40863c
1 changed files with 25 additions and 0 deletions

View File

@ -40,6 +40,7 @@ def fuel_master_migration(request):
@pytest.mark.get_logs
@pytest.mark.fail_snapshot
@pytest.mark.fuel_master_migrate
class TestFuelMasterMigrate(object):
compute = None
@ -55,6 +56,30 @@ class TestFuelMasterMigrate(object):
}
}
@pytest.mark.need_ready_cluster
@pytest.mark.usefixtures("fuel_master_migration")
@pytest.mark.test_fuel_master_migrate
def test_fuel_master_migrate(self):
"""Fuel master migration to VM
Scenario:
1. Create environment with two computes and three controllers
2. Run network checker
3. Deploy environment
4. Run network checker
5. Migrate Fuel Master to the compute node
6. Run network checker
7. Run OSTF
"""
self.manager.show_step(1)
self.manager.show_step(2)
self.manager.show_step(3)
self.manager.show_step(4)
self.manager.show_step(5)
self.manager.show_step(6)
self.manager.show_step(7)
@pytest.mark.need_ready_cluster
@pytest.mark.usefixtures("fuel_master_migration")
@pytest.mark.test_compute_hard_restart