Add uninstall feature tests

Change-Id: Ib891351c7744b6a478520fd7e230b84c82590cd7
This commit is contained in:
Rodion Promyshlennikov 2016-07-21 16:19:13 +03:00
parent 9fe2d86f62
commit 7ccad19159
2 changed files with 46 additions and 0 deletions

View File

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

View File

@ -93,3 +93,45 @@ class TestMuranoPluginBvt(api.MuranoPluginApi):
self.run_ostf()
self.env.make_snapshot("deploy_murano_plugin_ha", is_make=True)
@test(depends_on=[deploy_murano_plugin],
groups=["uninstall_deployed_murano_plugin", "uninstall",
"murano_plugin", "smoke"])
@log_snapshot_after_test
def uninstall_deployed_murano_plugin(self):
"""Uninstall the Murano plugin with a deployed environment
Scenario:
1. Try to remove the plugins using the Fuel CLI
2. Check plugins can't be uninstalled on deployed cluster.
3. Remove the environment.
4. Remove the plugins.
Duration 20m
"""
self.env.revert_snapshot("deploy_murano_plugin")
self.check_uninstall_failure()
self.fuel_web.delete_env_wait(self.helpers.cluster_id)
self.uninstall_plugin()
@test(depends_on_groups=["prepare_slaves_3"],
groups=["uninstall_murano_plugin", "uninstall", "murano_plugin",
"smoke"])
@log_snapshot_after_test
def uninstall_murano_plugin(self):
"""Uninstall the Murano plugin
Scenario:
1. Install the plugins.
2. Remove the plugins.
Duration 5m
"""
self.env.revert_snapshot("ready_with_3_slaves")
self.prepare_plugin()
self.uninstall_plugin()