Correct snapshot used for murano failover on controller

Change-Id: I71ac6eff59334f36ec16a82724c7440da9e40e5b
This commit is contained in:
Victor Ryzhenkin 2016-09-06 15:57:09 +03:00
parent 344a800c3e
commit d6dcba620f
1 changed files with 10 additions and 6 deletions

View File

@ -24,8 +24,8 @@ class TestMuranoFailover(api.MuranoPluginApi):
on controller or detached node fail.
"""
def _test_failover(self, operation, role_name):
self.env.revert_snapshot("deploy_murano_plugin")
def _test_failover(self, operation, role_name, snapshot_name):
self.env.revert_snapshot(snapshot_name)
self.check_plugin_failover(operation, role_name)
@ -47,7 +47,8 @@ class TestMuranoFailover(api.MuranoPluginApi):
Duration 30m
Snapshot soft_reboot_murano_node
"""
self._test_failover("soft_reboot", self.settings.role_name)
self._test_failover("soft_reboot", self.settings.role_name,
"deploy_murano_plugin")
@test(depends_on_groups=["deploy_murano_plugin"],
groups=["failover", "murano", "system", "destructive",
@ -65,7 +66,8 @@ class TestMuranoFailover(api.MuranoPluginApi):
Duration 30m
Snapshot hard_reboot_murano_node
"""
self._test_failover("hard_reboot", self.settings.role_name)
self._test_failover("hard_reboot", self.settings.role_name,
"deploy_murano_plugin")
@test(depends_on_groups=["deploy_murano_plugin_on_controller"],
groups=["failover", "murano", "system", "destructive",
@ -83,7 +85,8 @@ class TestMuranoFailover(api.MuranoPluginApi):
Duration 30m
Snapshot soft_reboot_controller_node_murano_plugin
"""
self._test_failover("soft_reboot", ["controller"])
self._test_failover("soft_reboot", ["controller"],
"deploy_murano_plugin_on_controller")
@test(depends_on_groups=["deploy_murano_plugin_on_controller"],
groups=["failover", "murano", "system", "destructive",
@ -101,4 +104,5 @@ class TestMuranoFailover(api.MuranoPluginApi):
Duration 30m
Snapshot hard_reboot_controller_node_murano_plugin
"""
self._test_failover("hard_reboot", ["controller"])
self._test_failover("hard_reboot", ["controller"],
"deploy_murano_plugin_on_controller")