Browse Source

Add uninstall feature tests

Change-Id: Ib891351c7744b6a478520fd7e230b84c82590cd7
Rodion Promyshlennikov 2 years ago
parent
commit
7ccad19159

+ 4
- 0
murano_plugin_tests/murano_plugin/api.py View File

@@ -73,3 +73,7 @@ class MuranoPluginApi(object):
73 73
         """Uninstall plugin from Fuel."""
74 74
         return self.helpers.uninstall_plugin(self.settings.name,
75 75
                                              self.settings.version)
76
+
77
+    def check_uninstall_failure(self):
78
+        return self.helpers.check_plugin_cannot_be_uninstalled(
79
+            self.settings.name, self.settings.version)

+ 42
- 0
murano_plugin_tests/murano_plugin/test_murano_plugin_bvt.py View File

@@ -93,3 +93,45 @@ class TestMuranoPluginBvt(api.MuranoPluginApi):
93 93
         self.run_ostf()
94 94
 
95 95
         self.env.make_snapshot("deploy_murano_plugin_ha", is_make=True)
96
+
97
+    @test(depends_on=[deploy_murano_plugin],
98
+          groups=["uninstall_deployed_murano_plugin", "uninstall",
99
+                  "murano_plugin", "smoke"])
100
+    @log_snapshot_after_test
101
+    def uninstall_deployed_murano_plugin(self):
102
+        """Uninstall the Murano plugin with a deployed environment
103
+
104
+        Scenario:
105
+            1.  Try to remove the plugins using the Fuel CLI
106
+            2.  Check plugins can't be uninstalled on deployed cluster.
107
+            3.  Remove the environment.
108
+            4.  Remove the plugins.
109
+
110
+        Duration 20m
111
+        """
112
+        self.env.revert_snapshot("deploy_murano_plugin")
113
+
114
+        self.check_uninstall_failure()
115
+
116
+        self.fuel_web.delete_env_wait(self.helpers.cluster_id)
117
+
118
+        self.uninstall_plugin()
119
+
120
+    @test(depends_on_groups=["prepare_slaves_3"],
121
+          groups=["uninstall_murano_plugin", "uninstall", "murano_plugin",
122
+                  "smoke"])
123
+    @log_snapshot_after_test
124
+    def uninstall_murano_plugin(self):
125
+        """Uninstall the Murano plugin
126
+
127
+        Scenario:
128
+            1.  Install the plugins.
129
+            2.  Remove the plugins.
130
+
131
+        Duration 5m
132
+        """
133
+        self.env.revert_snapshot("ready_with_3_slaves")
134
+
135
+        self.prepare_plugin()
136
+
137
+        self.uninstall_plugin()

Loading…
Cancel
Save