Advertisement
Guest User

Untitled

a guest
Jul 28th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.70 KB | None | 0 0
  1. @pytest.mark.need_ready_cluster
  2. @pytest.mark.test_compute_warm_restart
  3. def test_compute_warm_restart(self, fuel_master_migration):
  4.  
  5. @pytest.mark.need_ready_cluster
  6. @pytest.mark.test_compute_hard_restart
  7. def test_compute_hard_restart(self, fuel_master_migration):
  8.  
  9. @pytest.fixture(scope='session')
  10. def fuel_master_migration(request):
  11.     """Fixture which migrate Fuel Master to a compute"""
  12.  
  13.     instance = request.instance
  14.     cluster_id = instance._storage['cluster_id']
  15.     instance.start_fuel_migration()
  16.     instance.check_migration_status()
  17.     instance.run_checkers()
  18.     instance.manager.fuel_web.verify_network(cluster_id)
  19.     instance.manager.fuel_web.run_ostf(cluster_id=cluster_id)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement