Merge "reorganization of Test folder in Releng"
authorMorgan Richomme <morgan.richomme@orange.com>
Thu, 10 Mar 2016 10:22:23 +0000 (10:22 +0000)
committerGerrit Code Review <gerrit@172.30.200.206>
Thu, 10 Mar 2016 10:22:23 +0000 (10:22 +0000)
15 files changed:
utils/test/dashboard/css/bootstrap.min.css [moved from utils/test/result_collection_api/tools/dashboard/css/bootstrap.min.css with 100% similarity]
utils/test/dashboard/css/opnfv_dashboard_tests.css [moved from utils/test/result_collection_api/tools/dashboard/css/opnfv_dashboard_tests.css with 100% similarity]
utils/test/dashboard/js/bootstrap.min.js [moved from utils/test/result_collection_api/tools/dashboard/js/bootstrap.min.js with 100% similarity]
utils/test/dashboard/js/dygraph-combined.js [moved from utils/test/result_collection_api/tools/dashboard/js/dygraph-combined.js with 100% similarity]
utils/test/dashboard/js/jquery-2.2.0.min.js [moved from utils/test/result_collection_api/tools/dashboard/js/jquery-2.2.0.min.js with 100% similarity]
utils/test/dashboard/js/opnfv_dashboard_tests.js [moved from utils/test/result_collection_api/tools/dashboard/js/opnfv_dashboard_tests.js with 100% similarity]
utils/test/dashboard/js/opnfv_dashboard_tests_conf.js [moved from utils/test/result_collection_api/tools/dashboard/js/opnfv_dashboard_tests_conf.js with 100% similarity]
utils/test/dashboard/opnfv_dashboard_tests.html [moved from utils/test/result_collection_api/tools/dashboard/opnfv_dashboard_tests.html with 100% similarity]
utils/test/reporting/default.css [moved from utils/test/result_collection_api/tools/reporting/default.css with 100% similarity]
utils/test/reporting/index-tempest-tmpl.html [moved from utils/test/result_collection_api/tools/reporting/index-tempest-tmpl.html with 100% similarity]
utils/test/reporting/index-tmpl.html [moved from utils/test/result_collection_api/tools/reporting/index-tmpl.html with 100% similarity]
utils/test/reporting/reporting-tempest.py [moved from utils/test/result_collection_api/tools/reporting/reporting-tempest.py with 94% similarity]
utils/test/reporting/reporting.py [moved from utils/test/result_collection_api/tools/reporting/reporting.py with 100% similarity]
utils/test/result_collection_api/samples/sample.json.postman_collection [moved from utils/test/result_collection_api/tools/samples/sample.json.postman_collection with 100% similarity]
utils/test/scripts/backup-db.sh [moved from utils/test/result_collection_api/tools/backup-db.sh with 100% similarity]

@@ -56,14 +56,15 @@ for installer in installers:
             crit_time = False
 
             # Expect that at least 200 tests are run
-            if nb_tests_run > 200:
+            if nb_tests_run >= 200:
                 crit_tests = True
 
             # Expect that at least 90% of success
-            if success_rate > 90:
+            if success_rate >= 90:
                 crit_rate = True
 
-            if result['details']['duration'] < 900:
+            # Expect that the suite duration is inferior to 45m
+            if result['details']['duration'] < 2700:
                 crit_time = True
 
             result['criteria'] = {'tests': crit_tests,