aboutsummaryrefslogtreecommitdiffstats
path: root/functest/tests/unit/ci/test_tier_handler.py
diff options
context:
space:
mode:
authorjose.lausuch <jose.lausuch@ericsson.com>2017-05-16 11:28:14 +0200
committerJose Lausuch <jose.lausuch@ericsson.com>2017-05-16 14:29:48 +0000
commitd180eabc5a2c2453d04bb4a080874c329605c026 (patch)
treef41fb4c9cfcbe62c03868f25bc6c673a66651ecd /functest/tests/unit/ci/test_tier_handler.py
parent8cfa8d15a572cbae8bd46dae2a19f9b764684a12 (diff)
Add enabled flag in testcases.yaml
This will allow enable/disable test cases directly using true/false. Change-Id: Iaa7d051ebb8dd9e5a6f835a823f58f1e17a87b8d Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
Diffstat (limited to 'functest/tests/unit/ci/test_tier_handler.py')
-rw-r--r--functest/tests/unit/ci/test_tier_handler.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/functest/tests/unit/ci/test_tier_handler.py b/functest/tests/unit/ci/test_tier_handler.py
index 21df4098..28006274 100644
--- a/functest/tests/unit/ci/test_tier_handler.py
+++ b/functest/tests/unit/ci/test_tier_handler.py
@@ -32,6 +32,7 @@ class TierHandlerTesting(unittest.TestCase):
'test_ci_loop',
description='test_desc')
self.testcase = tier_handler.TestCase('test_name',
+ 'true',
self.mock_depend,
'test_criteria',
'test_blocking',
@@ -116,6 +117,10 @@ class TierHandlerTesting(unittest.TestCase):
self.assertEqual(self.tier.get_name(),
'test_tier')
+ def test_testcase_is_enabled(self):
+ self.assertEqual(self.testcase.is_enabled(),
+ 'true')
+
def test_testcase_get_criteria(self):
self.assertEqual(self.tier.get_order(),
'test_order')