Improve reusability of NeutronTunHaBase

Add check_run(snapshot) to the beggining of deploy_neutron_tun_ha_base
Add forced snapshot creation to the end of deploy_neutron_tun_ha_base

Change-Id: Ie26abad63f45eb1b9c8236e5349761fbe508f3f1
Closes-Bug: 1486671
This commit is contained in:
Dmitry Kalashnik 2015-08-19 19:42:55 +03:00
parent a2424cdf83
commit 79b8704ff1
1 changed files with 2 additions and 1 deletions

View File

@ -25,6 +25,7 @@ class NeutronTunHaBase(TestBasic):
"""NeutronTunHaBase.""" # TODO documentation
def deploy_neutron_tun_ha_base(self, snapshot_name):
self.check_run(snapshot_name)
self.env.revert_snapshot("ready_with_5_slaves")
cluster_id = self.fuel_web.create_cluster(
@ -74,4 +75,4 @@ class NeutronTunHaBase(TestBasic):
cluster_id=cluster_id,
test_sets=['ha', 'smoke', 'sanity'])
self.env.make_snapshot(snapshot_name)
self.env.make_snapshot(snapshot_name, is_make=True)