summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRodion Promyshlennikov <rpromyshlennikov@mirantis.com>2016-07-25 16:02:45 +0300
committerRodion Promyshlennikov <rpromyshlennikov@mirantis.com>2016-07-25 16:02:45 +0300
commit9fe2d86f623852709769c0f3f93eb7b43a6714a8 (patch)
tree83fc76aa5992e08a989e6f29d11a0983e556a9e5
parentae6cd29346d85437ed9e0e3d12bf6d7ea5aa4842 (diff)
Add basic deployment test
Add check run before deployments. Change-Id: I6ff2cdd25d80bef89d0bb1c281dfcac22645758b
Notes
Notes (review): Code-Review+2: Victor Ryzhenkin (freerunner) <vryzhenkin@mirantis.com> Workflow+1: Victor Ryzhenkin (freerunner) <vryzhenkin@mirantis.com> Verified+2: Jenkins Submitted-by: Jenkins Submitted-at: Thu, 28 Jul 2016 23:29:51 +0000 Reviewed-on: https://review.openstack.org/344768 Project: openstack/fuel-plugin-murano-tests Branch: refs/heads/master
-rw-r--r--murano_plugin_tests/murano_plugin/test_murano_plugin_bvt.py46
1 files changed, 42 insertions, 4 deletions
diff --git a/murano_plugin_tests/murano_plugin/test_murano_plugin_bvt.py b/murano_plugin_tests/murano_plugin/test_murano_plugin_bvt.py
index 2f9adcc..1a7dcbe 100644
--- a/murano_plugin_tests/murano_plugin/test_murano_plugin_bvt.py
+++ b/murano_plugin_tests/murano_plugin/test_murano_plugin_bvt.py
@@ -22,8 +22,44 @@ from murano_plugin_tests.murano_plugin import api
22class TestMuranoPluginBvt(api.MuranoPluginApi): 22class TestMuranoPluginBvt(api.MuranoPluginApi):
23 """Class for bvt testing the Murano plugin.""" 23 """Class for bvt testing the Murano plugin."""
24 24
25 @test(depends_on_groups=['prepare_slaves_5'], 25 @test(depends_on_groups=["prepare_slaves_3"],
26 groups=["deploy_murano_bvt", "deploy", 26 groups=["deploy_murano_plugin", "deploy", "deploy_murano_bvt",
27 "murano", "bvt"])
28 @log_snapshot_after_test
29 def deploy_murano_plugin(self):
30 """Deploy a cluster with the Murano plugin
31
32 Scenario:
33 1. Upload the Murano plugin to the master node
34 2. Install the plugin
35 3. Create the cluster
36 4. Add 1 node with controller role
37 5. Add 1 node with compute and cinder roles
38 6. Add 1 node with murano-node roles
39 7. Deploy the cluster
40 8. Run OSTF
41
42 Duration 90m
43 Snapshot deploy_murano_plugin
44 """
45 self.check_run("deploy_murano_plugin")
46
47 self.env.revert_snapshot("ready_with_3_slaves")
48
49 self.prepare_plugin()
50
51 self.helpers.create_cluster(name=self.__class__.__name__)
52
53 self.activate_plugin()
54
55 self.helpers.deploy_cluster(self.base_nodes)
56
57 self.run_ostf()
58
59 self.env.make_snapshot("deploy_murano_plugin", is_make=True)
60
61 @test(depends_on_groups=["prepare_slaves_5"],
62 groups=["deploy_murano_plugin_ha", "deploy", "deploy_murano_bvt",
27 "murano", "bvt"]) 63 "murano", "bvt"])
28 @log_snapshot_after_test 64 @log_snapshot_after_test
29 def deploy_murano_plugin_ha(self): 65 def deploy_murano_plugin_ha(self):
@@ -40,8 +76,10 @@ class TestMuranoPluginBvt(api.MuranoPluginApi):
40 8. Run OSTF 76 8. Run OSTF
41 77
42 Duration 120m 78 Duration 120m
43 Snapshot deploy_murano_bvt 79 Snapshot deploy_murano_plugin_ha
44 """ 80 """
81 self.check_run("deploy_murano_plugin_ha")
82
45 self.env.revert_snapshot("ready_with_5_slaves") 83 self.env.revert_snapshot("ready_with_5_slaves")
46 84
47 self.prepare_plugin() 85 self.prepare_plugin()
@@ -54,4 +92,4 @@ class TestMuranoPluginBvt(api.MuranoPluginApi):
54 92
55 self.run_ostf() 93 self.run_ostf()
56 94
57 self.env.make_snapshot("deploy_murano_bvt", is_make=True) 95 self.env.make_snapshot("deploy_murano_plugin_ha", is_make=True)