Browse Source

Add basic deployment test

Add check run before deployments.

Change-Id: I6ff2cdd25d80bef89d0bb1c281dfcac22645758b
changes/68/344768/4
Rodion Promyshlennikov 2 years ago
parent
commit
9fe2d86f62
1 changed files with 42 additions and 4 deletions
  1. 42
    4
      murano_plugin_tests/murano_plugin/test_murano_plugin_bvt.py

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

@@ -22,8 +22,44 @@ from murano_plugin_tests.murano_plugin import api
22 22
 class TestMuranoPluginBvt(api.MuranoPluginApi):
23 23
     """Class for bvt testing the Murano plugin."""
24 24
 
25
-    @test(depends_on_groups=['prepare_slaves_5'],
26
-          groups=["deploy_murano_bvt", "deploy",
25
+    @test(depends_on_groups=["prepare_slaves_3"],
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 63
                   "murano", "bvt"])
28 64
     @log_snapshot_after_test
29 65
     def deploy_murano_plugin_ha(self):
@@ -40,8 +76,10 @@ class TestMuranoPluginBvt(api.MuranoPluginApi):
40 76
             8. Run OSTF
41 77
 
42 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 83
         self.env.revert_snapshot("ready_with_5_slaves")
46 84
 
47 85
         self.prepare_plugin()
@@ -54,4 +92,4 @@ class TestMuranoPluginBvt(api.MuranoPluginApi):
54 92
 
55 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)

Loading…
Cancel
Save