Add test with the platform components

Change-Id: Ie62998bd04248e5914946238722212e8d58d88ed
This commit is contained in:
Vladimir Ushakov 2016-07-28 15:02:07 +03:00 committed by vgusev
parent f1efad8e0c
commit 50083025b9

View File

@ -420,3 +420,55 @@ class TestNodesToolchain(api.ToolchainApi):
self.check_plugins_online()
self.helpers.run_ostf()
@test(depends_on_groups=["prepare_slaves_9"],
groups=["deploy_toolchain_ha_platform_components", "deploy",
"deploy_ha", "toolchain", "smoke"])
@log_snapshot_after_test
def deploy_toolchain_ha_platform_components(self):
"""Deploy plugins with platform components
Scenario:
1. Create new environment with plugins and enable Ceilometer,
Sahara, Murano and Ironic.
2. Add 3 controllers+mongo, 3 compute+cinder+ironic,
3 toolchain nodes and deploy the environment.
3. Check that plugins work.
4. Run OSTF.
Duration 120m
"""
self.env.revert_snapshot("ready_with_9_slaves")
self.prepare_plugins()
data = {
'ironic': True,
'sahara': True,
'murano': True,
'ceilometer': True
}
self.helpers.create_cluster(name=self.__class__.__name__,
settings=data)
self.activate_plugins()
node_roles = {
'slave-01': ['controller', 'mongo'],
'slave-02': ['controller', 'mongo'],
'slave-03': ['controller', 'mongo'],
'slave-04': ['compute', 'cinder', 'ironic'],
'slave-05': ['compute', 'cinder', 'ironic'],
'slave-06': ['compute', 'cinder', 'ironic'],
'slave-07': self.settings.stacklight_roles,
'slave-08': self.settings.stacklight_roles,
'slave-09': self.settings.stacklight_roles
}
self.helpers.deploy_cluster(node_roles)
self.check_plugins_online()
self.helpers.run_ostf()