diff options
author | 2016-05-31 11:39:51 +0200 | |
---|---|---|
committer | 2016-06-01 12:20:53 +0200 | |
commit | 69fe5baee1cfb9f55c798620dda3151eab700bc7 (patch) | |
tree | c251f280704cfb390212a466662ce0c1615c2005 /ci/tier_handler.py | |
parent | 063eac6f79662606d11a68617e0cb2aaa1c449b6 (diff) |
Add criteria in testcases.yaml and Test class
JIRA: FUNCTEST-257
Added example of usage in vping_ssh
Change-Id: Iac143b811db163f0f86682b0688948c20843ede5
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
Diffstat (limited to 'ci/tier_handler.py')
-rw-r--r-- | ci/tier_handler.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ci/tier_handler.py b/ci/tier_handler.py index b1ef52d8..20a47e99 100644 --- a/ci/tier_handler.py +++ b/ci/tier_handler.py @@ -102,10 +102,11 @@ class Tier: class TestCase: - def __init__(self, name, dependency, description=""): + def __init__(self, name, dependency, criteria, description=""): self.name = name self.dependency = dependency self.description = description + self.criteria = criteria def is_compatible(self, ci_installer, ci_scenario): try: @@ -124,6 +125,9 @@ class TestCase: def get_name(self): return self.name + def get_criteria(self): + return self.criteria + def __str__(self): lines = split_text(self.description, LINE_LENGTH - 6) @@ -134,6 +138,8 @@ class TestCase: out += ("| Description:".ljust(LINE_LENGTH - 1) + "|\n") for line in lines: out += ("| " + line.ljust(LINE_LENGTH - 7) + " |\n") + out += ("| Criteria: " + + self.criteria.ljust(LINE_LENGTH - 14) + "|\n") out += ("| Dependencies:".ljust(LINE_LENGTH - 1) + "|\n") installer = self.dependency.get_installer() scenario = self.dependency.get_scenario() |