summaryrefslogtreecommitdiffstats
path: root/CI
diff options
context:
space:
mode:
authorjose.lausuch <jose.lausuch@ericsson.com>2016-04-11 23:27:56 +0200
committerjose.lausuch <jose.lausuch@ericsson.com>2016-04-20 15:33:28 +0200
commit3a85a34474a9d7a9384f22bce35e7b81177830e3 (patch)
tree351b815b7477ab20e63c943aef6f3c758cf79438 /CI
parent4f94345cd8532528c561a32fd462d5b4f709e60e (diff)
Add Tier scripts handlers and list of test cases yaml
JIRA: FUNCTEST-190 Change-Id: If63034be36e5a7a5d8b3f549444d53fb9ce28b55 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
Diffstat (limited to 'CI')
-rw-r--r--CI/testcases.yaml117
-rw-r--r--CI/tier_manager.py62
2 files changed, 179 insertions, 0 deletions
diff --git a/CI/testcases.yaml b/CI/testcases.yaml
new file mode 100644
index 000000000..1a71f91a1
--- /dev/null
+++ b/CI/testcases.yaml
@@ -0,0 +1,117 @@
+healthcheck:
+ order: 0
+ description : |
+ This is the optional healthcheck
+ that can provided by the installer
+ or the internal in functest
+ testcases:
+ healthcheck:
+ installer: any
+ sdn: any
+ feat: any
+ mode: any
+smoke:
+ order: 1
+ description : |
+ This is the set of basic functest
+ tests and smoke tempest in serial mode.
+ testcases:
+ vping_ssh:
+ installer: any
+ sdn: any
+ feat: any
+ mode: any
+
+ vping_userdata:
+ installer: any
+ sdn: any
+ feat: any
+ mode: any
+
+ tempest_smoke_serial:
+ installer: any
+ sdn: any
+ feat: any
+ mode: any
+
+ rally_smoke:
+ installer: any
+ sdn: any
+ feat: any
+ mode: any
+
+ security_groups:
+ installer: any
+ sdn: any
+ feat: any
+ mode: any
+sdn_suites:
+ order: 2
+ description : |
+ test cases for the SDN controllers
+ testcases:
+ odl:
+ installer: any
+ sdn: odl_l2|odl_l3
+ feat: any
+ mode: any
+ onos:
+ installer: any
+ sdn: onos
+ feat: any
+ mode: any
+ ovno:
+ installer: any
+ sdn: ocl
+ feat: any
+ mode: any
+features:
+ order: 4
+ description : |
+ test from feature projects integrated in functest
+ testcases:
+ promise:
+ installer: fuel|joid
+ sdn: any
+ feat: any
+ mode: any
+ sdnvpn:
+ installer: fuel|apex
+ sdn: odl_l2
+ feat: bgpvpn
+ mode: any
+ policy-test:
+ installer: any
+ sdn: odl_l2|odl_l3
+ feat: any
+ mode: any
+tempest:
+ order: 5
+ description : |
+ this is the execution of the full tempest suite in parallel
+ testcases:
+ tempest_full_parallel:
+ installer: any
+ sdn: any
+ feat: any
+ mode: any
+rally:
+ order: 6
+ description : |
+ Full Rally suite
+ testcases:
+ tempest_full_parallel:
+ installer: any
+ sdn: any
+ feat: any
+ mode: any
+vnf:
+ order: 7
+ description : |
+ collection of VNF test cases
+ testcases:
+ vims:
+ installer: any
+ sdn: any
+ feat: any
+ mode: any \ No newline at end of file
diff --git a/CI/tier_manager.py b/CI/tier_manager.py
new file mode 100644
index 000000000..f13bca1f6
--- /dev/null
+++ b/CI/tier_manager.py
@@ -0,0 +1,62 @@
+#!/usr/bin/env python
+#
+# jose.lausuch@ericsson.com
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+
+class Tier:
+ def __init__(self, name, description, order):
+ self.tests_array = []
+ self.name = name
+ self.description = description
+ self.order = order
+
+
+ def add_test(self,testcase):
+ self.tests_array.append(testcase)
+
+ def get_tests(self):
+ array_str = []
+ for test in self.tests_array:
+ array_str.append(test.name)
+ return array_str
+
+ def __str__(self):
+ return "Tier info:\n"+\
+ "\tName: " + self.name + "\n" +\
+ "\tDescription: " + self.description + "\n" +\
+ "\tOrder: " + self.order + "\n" +\
+ "\tTest cases: " + str(self.get_tests()) + "\n"
+
+
+class Testcase:
+ def __init__(self, name, description, dependency):
+ self.name = name
+ self.description = description
+ self.dependency = dependency
+
+ def __str__(self):
+ return "Testcase info:\n"+\
+ "\tName: " + self.name + "\n" +\
+ "\tDescription: " + self.description + "\n" +\
+ "\tDependencies: " + str(self.dependency) + "\n"
+
+
+class Dependency:
+ def __init__(self, installer, sdn, feature, mode):
+ self.installer = installer
+ self.sdn = sdn
+ self.feature = feature
+ self.mode = mode
+
+ def __str__(self):
+ return "Dependency info:\n"+\
+ "\t" + self.installer + " os-[" + self.sdn + "]-[" + \
+ self.feature + "]-[" + self.mode + "]" + "\n" +\
+ "\t\t- installer: " + self.installer + "\n" +\
+ "\t\t- sdn Controller: " + self.sdn + "\n" +\
+ "\t\t- feature: " + self.feature + "\n" +\
+ "\t\t- mode: " + self.mode + "\n"