aboutsummaryrefslogtreecommitdiffstats
path: root/CI
diff options
context:
space:
mode:
authorjose.lausuch <jose.lausuch@ericsson.com>2016-04-25 18:08:22 +0200
committerjose.lausuch <jose.lausuch@ericsson.com>2016-04-27 15:34:56 +0200
commit9c13968cdb32806da738dc520d45270e019f0ad3 (patch)
tree50eb0e0889dc72a1ce4dec0da60607c834d91fc0 /CI
parent790fa04f4503dbf60123bf9414db131580f2c45a (diff)
Create prepare_env.py from prepare_env.sh and config_functest.py
JIRA: FUNCTEST-227 Change-Id: I1aa890b9f91ec524c766ba3c460666ed227f2126 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
Diffstat (limited to 'CI')
-rw-r--r--CI/__init__.py0
-rw-r--r--CI/testcases.yaml196
-rw-r--r--CI/tier_builder.py61
-rw-r--r--CI/tier_handler.py75
4 files changed, 0 insertions, 332 deletions
diff --git a/CI/__init__.py b/CI/__init__.py
deleted file mode 100644
index e69de29bb..000000000
--- a/CI/__init__.py
+++ /dev/null
diff --git a/CI/testcases.yaml b/CI/testcases.yaml
deleted file mode 100644
index 42458bbef..000000000
--- a/CI/testcases.yaml
+++ /dev/null
@@ -1,196 +0,0 @@
-tiers:
- -
- name: healthcheck
- order: 0
- ci: daily
- description : >-
- This is the first tier to be executed to verify the basic
- operations in the VIM.
- testcases:
- -
- name: healthcheck
- description: >-
- This test case verifies the basic OpenStack services like
- Keystone, Glance, Cinder, Neutron and Nova.
-
- dependencies:
- installer: ''
- scenario: ''
-
- -
- name: smoke
- order: 1
- ci: daily
- description : >-
- This is the second tier in Functest and consist of a set of basic
- Functional tests to validate the OpenStack deployment.
- testcases:
- -
- name: vping_ssh
- description: |-
- This test case verifies:
- ····1) SSH to an instance using floating IPs over the public network.
- ····2) Connectivity between 2 instances over a private network.
- dependencies:
- installer: ''
- scenario: '^((?!bgpvpn).)*$'
-
- -
- name: vping_userdata
- description: |-
- This test case verifies:
- ····1) Boot a VM with given userdata.
- ····2) Connectivity between 2 instances over a private network.
- dependencies:
- installer: ''
- scenario: ''
-
- -
- name: tempest_smoke_serial
- description: >-
- This test case runs the smoke subset of the OpenStack
- Tempest suite. The list of test cases is generated by
- Tempest automatically and depend on the parameters of
- the OpenStack deplopyment.
- dependencies:
- installer: ''
- scenario: ''
-
- -
- name: rally_sanity
- description: >-
- This test case runs a sub group of tests of the OpenStack
- Rally suite in smoke mode.
- dependencies:
- installer: ''
- scenario: ''
-
- -
- name: security_groups
- description: >-
- This test case verifies the functionality of the OpenStack
- security groups and that the port rules created are
- fullfilled.
- dependencies:
- installer: ''
- scenario: ''
-
- -
- name: sdn_suites
- order: 2
- ci: daily
- description : >-
- This tier contains the test suites corresponding to the different
- SDN Controllers existing in OPNFV.
- testcases:
- -
- name: odl
- description: >-
- Test Suite for the OpenDaylight SDN Controller. It integrates
- some test suites from upstream using Robot as the test
- framework.
- dependencies:
- installer: ''
- scenario: 'odl'
-
- -
- name: onos
- description: >-
- Test Suite for the ONOS SDN Controller. It integrates
- some test suites from upstream using TestON as the test
- framework.
- dependencies:
- installer: ''
- scenario: 'onos'
-
- -
- name: ovno
- description: >-
- Test Suite for the Open Contrail SDN Controller.
- framework.
- dependencies:
- installer: ''
- scenario: 'ocl'
-
- -
- name: features
- order: 3
- ci: daily
- description : >-
- This tier contains the test suites from feature projects
- integrated in functest
- testcases:
- -
- name: promise
- description: >-
- Test suite from Promise project.
- dependencies:
- installer: '(fuel)|(joid)'
- scenario: ''
-
- -
- name: doctor
- description: >-
- Test suite from Dcotor project.
- dependencies:
- installer: 'apex'
- scenario: ''
-
- -
- name: sdnvpn
- description: >-
- Test suite from SDNVPN project.
- dependencies:
- installer: '(fuel)|(apex)'
- scenario: 'bgpvpn'
-
- -
- name: tempest
- order: 4
- ci: weekly
- description : >-
- This tier contains the test suites from feature projects
- integrated in functest
- testcases:
- -
- name: tempest_full_parallel
- description: >-
- This test case runs the full set of the OpenStack
- Tempest suite. The list of test cases is generated by
- Tempest automatically and depend on the parameters of
- the OpenStack deplopyment.
- dependencies:
- installer: ''
- scenario: ''
-
- -
- name: rally
- order: 5
- ci: weekly
- description : >-
- This tier contains the Rally suite from the OpenStack community.
- testcases:
- -
- name: rally_full
- description: >-
- This test case runs the full suite of scenarios of the OpenStack
- Rally suite using several threads and iterations.
- dependencies:
- installer: ''
- scenario: ''
-
- -
- name: vnf
- order: 6
- ci: weekly
- description : >-
- This tier contains a collection of VNF test cases.
- testcases:
- -
- name: vims
- description: >-
- This test case deploys an OpenSource vIMS solution from Clearwater
- using the Cloudify orchestrator. It also runs some signaling traffic.
- dependencies:
- installer: ''
- scenario: '(ocl)|(nosdn)|^(os-odl)((?!bgpvpn).)*$'
diff --git a/CI/tier_builder.py b/CI/tier_builder.py
deleted file mode 100644
index e66e97a38..000000000
--- a/CI/tier_builder.py
+++ /dev/null
@@ -1,61 +0,0 @@
-#!/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
-#
-
-import yaml
-
-import tier_handler as th
-
-
-class TierBuilder:
- def __init__(self, ci_installer, ci_scenario, testcases_file):
- self.ci_installer = ci_installer
- self.ci_scenario = ci_scenario
- self.testcases_file = testcases_file
- self.dic_tier_array = None
- self.tier_objects = []
- self.testcases_yaml = None
- self.generate_tiers()
-
- def read_test_yaml(self):
- with open(self.testcases_file) as f:
- self.testcases_yaml = yaml.safe_load(f)
-
- self.dic_tier_array = []
- for tier in self.testcases_yaml.get("tiers"):
- self.dic_tier_array.append(tier)
-
- def generate_tiers(self):
- if self.dic_tier_array is None:
- self.read_test_yaml()
-
- del self.tier_objects[:]
- for dic_tier in self.dic_tier_array:
- tier = th.Tier(name=dic_tier['name'],
- order=dic_tier['order'],
- ci=dic_tier['ci'],
- description=dic_tier['description'])
-
- for dic_testcase in dic_tier['testcases']:
- installer = dic_testcase['dependencies']['installer']
- scenario = dic_testcase['dependencies']['scenario']
- dep = th.Dependency(installer, scenario)
-
- testcase = th.TestCase(name=dic_testcase['name'],
- dependency=dep,
- description=dic_testcase['description'])
- if testcase.is_compatible(self.ci_installer, self.ci_scenario):
- tier.add_test(testcase)
-
- self.tier_objects.append(tier)
-
- def __str__(self):
- output = ""
- for i in range(0, len(self.tier_objects)):
- output += str(self.tier_objects[i]) + "\n"
- return output
diff --git a/CI/tier_handler.py b/CI/tier_handler.py
deleted file mode 100644
index 0b7559498..000000000
--- a/CI/tier_handler.py
+++ /dev/null
@@ -1,75 +0,0 @@
-#!/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
-#
-
-
-import re
-
-
-class Tier:
- def __init__(self, name, order, ci, description=""):
- self.tests_array = []
- self.name = name
- self.order = order
- self.ci = ci
- self.description = description
-
- 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"
- " Name: " + self.name + "\n"
- " Description: " + self.description + "\n"
- " Order: " + str(self.order) + "\n"
- " Test cases: " + str(self.get_tests()) + "\n")
-
-
-class TestCase:
- def __init__(self, name, dependency, description=""):
- self.name = name
- self.dependency = dependency
- self.description = description
-
- def is_compatible(self, ci_installer, ci_scenario):
- if re.search(self.dependency.get_installer(), ci_installer) is None:
- return False
-
- if re.search(self.dependency.get_scenario(), ci_scenario) is None:
- return False
-
- return True
-
- def __str__(self):
- return ("Testcase info:\n"
- " Name: " + self.name + "\n"
- " Description: " + self.description + "\n"
- " " + str(self.dependency) + "\n")
-
-
-class Dependency:
- def __init__(self, installer, scenario):
- self.installer = installer
- self.scenario = scenario
-
- def get_installer(self):
- return self.installer
-
- def get_scenario(self):
- return self.scenario
-
- def __str__(self):
- return ("Dependency info:\n"
- " installer: " + self.installer + "\n"
- " scenario: " + self.scenario + "\n")