diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2020-09-05 10:55:05 +0200 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2020-09-05 11:12:12 +0200 |
commit | 150405525d6e9924858cd40c872600ddb2bfb57c (patch) | |
tree | 78239936aac8f7c8f407dfb64d71211c5906107e | |
parent | bbdc01c30dcf5a1365ad5a61ec0f7fee49b7fb59 (diff) |
Make testcases descriptions optional
Change-Id: If0e45f10816edd2199c589bb5fbfc03fbc0a4b77
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
-rw-r--r-- | xtesting/ci/tier_builder.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xtesting/ci/tier_builder.py b/xtesting/ci/tier_builder.py index 27afc7d1..747d2263 100644 --- a/xtesting/ci/tier_builder.py +++ b/xtesting/ci/tier_builder.py @@ -44,15 +44,15 @@ class TierBuilder(): for dic_tier in self.dic_tier_array: tier = tier_handler.Tier( name=dic_tier['name'], order=dic_tier['order'], - description=dic_tier['description']) + description=dic_tier.get('description', '')) for dic_testcase in dic_tier['testcases']: testcase = tier_handler.TestCase( name=dic_testcase['case_name'], enabled=dic_testcase.get('enabled', True), skipped=False, - criteria=dic_testcase['criteria'], - blocking=dic_testcase['blocking'], - description=dic_testcase['description'], + criteria=dic_testcase.get('criteria', 100), + blocking=dic_testcase.get('blocking', True), + description=dic_testcase.get('description', ''), project=dic_testcase['project_name']) if not dic_testcase.get('dependencies'): if testcase.is_enabled(): |