From 73b41c82bcab8558af1898da4ae8ec97ea361f08 Mon Sep 17 00:00:00 2001 From: Rodion Promyshlennikov Date: Wed, 25 May 2016 18:03:14 +0300 Subject: [PATCH] Add basic createmirror test for InfluxDb-Grafana Change-Id: I9f5870de660b1bed0354b656e146e84a5df5d02f --- .../influxdb_grafana/test_system.py | 43 +++++++++++++++++-- 1 file changed, 39 insertions(+), 4 deletions(-) diff --git a/stacklight_tests/influxdb_grafana/test_system.py b/stacklight_tests/influxdb_grafana/test_system.py index a5ea676..dbaa0e8 100644 --- a/stacklight_tests/influxdb_grafana/test_system.py +++ b/stacklight_tests/influxdb_grafana/test_system.py @@ -41,7 +41,6 @@ class TestNodesInfluxdbPlugin(api.InfluxdbPluginApi): 7. Run OSTF Duration 120m - Snapshot add_remove_controller_influxdb_grafana """ self.env.revert_snapshot("deploy_ha_influxdb_grafana") @@ -85,7 +84,6 @@ class TestNodesInfluxdbPlugin(api.InfluxdbPluginApi): 7. Run OSTF Duration 120m - Snapshot add_remove_compute_influxdb_grafana """ self.env.revert_snapshot("deploy_ha_influxdb_grafana") @@ -130,7 +128,6 @@ class TestNodesInfluxdbPlugin(api.InfluxdbPluginApi): 7. Run OSTF Duration 120m - Snapshot add_remove_node_with_influxdb_grafana """ self.env.revert_snapshot("deploy_ha_influxdb_grafana") @@ -176,7 +173,6 @@ class TestNodesInfluxdbPlugin(api.InfluxdbPluginApi): 7. Run OSTF Duration 30m - Snaphost shutdown_influxdb_grafana_node """ self.env.revert_snapshot("deploy_ha_influxdb_grafana") @@ -191,3 +187,42 @@ class TestNodesInfluxdbPlugin(api.InfluxdbPluginApi): # TODO(rpromyshlennikov): check no data lost self.helpers.run_ostf() + + @test(depends_on_groups=["prepare_slaves_3"], + groups=["influxdb_grafana_createmirror_deploy_plugin", + "system", "influxdb_grafana", "createmirror"]) + @log_snapshot_after_test + def influxdb_grafana_createmirror_deploy_plugin(self): + """Run fuel-createmirror and deploy environment + + Scenario: + 1. Upload and install the InfluxDB/Grafana plugin + to the master node. + 2. Run the following command on the master node: + fuel-createmirror + 3. Create an environment with enabled plugin and deploy it. + 4. Run OSTF. + + Duration 60m + """ + self.env.revert_snapshot("ready_with_3_slaves") + + self.prepare_plugin() + + self.helpers.fuel_createmirror() + + self.helpers.create_cluster(name=self.__class__.__name__) + + self.activate_plugin() + + self.helpers.deploy_cluster( + { + 'slave-01': ['controller'], + 'slave-02': ['compute'], + 'slave-03': self.settings.role_name + } + ) + + self.check_plugin_online() + + self.helpers.run_ostf()