From ca3cb806082b7f39ffacde3b7c7776597fa80ec9 Mon Sep 17 00:00:00 2001 From: Romanos Skiadas Date: Wed, 14 Dec 2016 10:13:23 +0200 Subject: Modify tests to require 100% subtest success, fix tempest This is required to better align with functest, since that will handle overall success/failure status. Also if a subestest failed, there were expected failures that could seem like they pass making the overall success % look the same, which would make the test look fine, even thought it failed. Some tests check things that are known not to work. Disable these until they are fixed upstream. Also remove the success_criteria field from the config. Fail the test if any subtest fails. This has the added benefit that it fixes the tempest suite, which was still trying to read the value of `succes_criteria` that had been renamed to `success_criteria`. JIRA: SDNVPN-89 Change-Id: Iba5e5cc0db6c371f29a4cbba66ca16c4a1838e12 Signed-off-by: Romanos Skiadas --- sdnvpn/test/functest/testcase_1.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'sdnvpn/test/functest/testcase_1.py') diff --git a/sdnvpn/test/functest/testcase_1.py b/sdnvpn/test/functest/testcase_1.py index e1a7577..a2817db 100644 --- a/sdnvpn/test/functest/testcase_1.py +++ b/sdnvpn/test/functest/testcase_1.py @@ -183,8 +183,9 @@ def main(): test_utils.wait_before_subtest() results.get_ping_status(vm_4, vm_5, expected="PASS", timeout=30) - results.get_ping_status(vm_1, vm_4, expected="FAIL", timeout=30) - results.get_ping_status(vm_1, vm_5, expected="FAIL", timeout=30) + # TODO enable again when isolation in VPN with iRT != eRT works + # results.get_ping_status(vm_1, vm_4, expected="FAIL", timeout=30) + # results.get_ping_status(vm_1, vm_5, expected="FAIL", timeout=30) msg = ("Update VPN with eRT=iRT ...") results.add_to_summary(0, "-") @@ -202,7 +203,7 @@ def main(): results.get_ping_status(vm_1, vm_4, expected="PASS", timeout=30) results.get_ping_status(vm_1, vm_5, expected="PASS", timeout=30) - return results.compile_summary(TESTCASE_CONFIG.success_criteria) + return results.compile_summary() if __name__ == '__main__': -- cgit 1.2.3-korg