Manage criteria in TestCase
authorCédric Ollivier <cedric.ollivier@orange.com>
Mon, 24 Apr 2017 06:58:20 +0000 (08:58 +0200)
committerCédric Ollivier <cedric.ollivier@orange.com>
Wed, 26 Apr 2017 07:35:47 +0000 (09:35 +0200)
commit37c98a6fa101be2b32129dd5d71ad750f5245b88
tree9b3f8700cb5af4054593c667a7f82aa160e32a8f
parente620488a6747318c40eb973c2607ae6d44e95b8f
Manage criteria in TestCase

It converts all criteria values to the corresponding percent in
functest/ci/testcases.yaml.

Result is expected to be equal or greater than criteria. If both are 0,
result is considered as false.

It is compatible with the old behavior but warns to update.
It will allow a safer remove.

It also fixes a bug in test_tempest to allow merging [1] and
tier_handler.py which required that type criteria was str.

[1] https://gerrit.opnfv.org/gerrit/#/c/27949/

Change-Id: Ib6edcfa3103b7d51b0bdc83119f1cea2a8be9fbc
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
functest/ci/testcases.yaml
functest/ci/tier_handler.py
functest/core/feature.py
functest/core/testcase.py
functest/tests/unit/core/test_feature.py
functest/tests/unit/core/test_testcase.py
functest/tests/unit/openstack/tempest/test_tempest.py
functest/tests/unit/utils/test_functest_utils.py
functest/utils/functest_utils.py