Browse Source

Correct snapshot used for murano failover on controller

Change-Id: I71ac6eff59334f36ec16a82724c7440da9e40e5b
Victor Ryzhenkin 2 years ago
parent
commit
d6dcba620f
1 changed files with 10 additions and 6 deletions
  1. 10
    6
      murano_plugin_tests/murano_plugin/test_failover.py

+ 10
- 6
murano_plugin_tests/murano_plugin/test_failover.py View File

@@ -24,8 +24,8 @@ class TestMuranoFailover(api.MuranoPluginApi):
24 24
     on controller or detached node fail.
25 25
     """
26 26
 
27
-    def _test_failover(self, operation, role_name):
28
-        self.env.revert_snapshot("deploy_murano_plugin")
27
+    def _test_failover(self, operation, role_name, snapshot_name):
28
+        self.env.revert_snapshot(snapshot_name)
29 29
 
30 30
         self.check_plugin_failover(operation, role_name)
31 31
 
@@ -47,7 +47,8 @@ class TestMuranoFailover(api.MuranoPluginApi):
47 47
         Duration 30m
48 48
         Snapshot soft_reboot_murano_node
49 49
         """
50
-        self._test_failover("soft_reboot", self.settings.role_name)
50
+        self._test_failover("soft_reboot", self.settings.role_name,
51
+                            "deploy_murano_plugin")
51 52
 
52 53
     @test(depends_on_groups=["deploy_murano_plugin"],
53 54
           groups=["failover", "murano", "system", "destructive",
@@ -65,7 +66,8 @@ class TestMuranoFailover(api.MuranoPluginApi):
65 66
         Duration 30m
66 67
         Snapshot hard_reboot_murano_node
67 68
         """
68
-        self._test_failover("hard_reboot", self.settings.role_name)
69
+        self._test_failover("hard_reboot", self.settings.role_name,
70
+                            "deploy_murano_plugin")
69 71
 
70 72
     @test(depends_on_groups=["deploy_murano_plugin_on_controller"],
71 73
           groups=["failover", "murano", "system", "destructive",
@@ -83,7 +85,8 @@ class TestMuranoFailover(api.MuranoPluginApi):
83 85
         Duration 30m
84 86
         Snapshot soft_reboot_controller_node_murano_plugin
85 87
         """
86
-        self._test_failover("soft_reboot", ["controller"])
88
+        self._test_failover("soft_reboot", ["controller"],
89
+                            "deploy_murano_plugin_on_controller")
87 90
 
88 91
     @test(depends_on_groups=["deploy_murano_plugin_on_controller"],
89 92
           groups=["failover", "murano", "system", "destructive",
@@ -101,4 +104,5 @@ class TestMuranoFailover(api.MuranoPluginApi):
101 104
         Duration 30m
102 105
         Snapshot hard_reboot_controller_node_murano_plugin
103 106
         """
104
-        self._test_failover("hard_reboot", ["controller"])
107
+        self._test_failover("hard_reboot", ["controller"],
108
+                            "deploy_murano_plugin_on_controller")

Loading…
Cancel
Save