From b9ad73bd4290e04afcba1049700343e622444016 Mon Sep 17 00:00:00 2001 From: Yaroslav Lobankov Date: Wed, 1 Apr 2015 12:19:49 +0300 Subject: [PATCH] Fixing upload_tempest_test_suite.py Script upload_tempest_test_suite.py uploads Tempest tests suite to TestRail incorrectly. As a result of that, many tests appear in wrong sections. This change request fixes that. Change-Id: I8fc38b776d41142414d8b24c570de9dce6967f87 Closes-Bug: #1439073 --- .../testrail/upload_tempest_test_suite.py | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/fuelweb_test/testrail/upload_tempest_test_suite.py b/fuelweb_test/testrail/upload_tempest_test_suite.py index 05ea5de45..be4eb6017 100644 --- a/fuelweb_test/testrail/upload_tempest_test_suite.py +++ b/fuelweb_test/testrail/upload_tempest_test_suite.py @@ -13,29 +13,31 @@ # under the License. import subprocess + from joblib import Parallel, delayed + from settings import TestRailSettings from testrail_client import TestRailProject TEST_GROUPS = ["API", "CLI", "Scenario", "ThirdParty"] -TEST_SECTIONS = ["Nova", "Glance", "Heat", "Sahara", "Ceilometer", "Cinder", - "Network", "Keystone", "Object_storage", "Ironic", "Other"] +TEST_SECTIONS = ["Ceilometer", "Cinder", "Glance", "Heat", "Ironic", + "Keystone", "Network", "Nova", "Sahara", "Swift", "Other"] def generate_groups(line): section = "Other" - for group in [{"names": [".compute.", ], "tag": "Nova"}, + for group in [{"names": [".telemetry.", ], "tag": "Ceilometer"}, + {"names": [".volume.", ], "tag": "Cinder"}, {"names": [".image.", ], "tag": "Glance"}, {"names": [".orchestration.", ], "tag": "Heat"}, {"names": [".baremetal.", ], "tag": "Ironic"}, + {"names": [".identity.", ], "tag": "Keystone"}, + {"names": [".network.", ], "tag": "Network"}, + {"names": [".compute.", ], "tag": "Nova"}, {"names": [".data_processing.", ], "tag": "Sahara"}, - {"names": ["identity", "tenant", "auth", "account", - "credentials"], - "tag": "Keystone"}, - {"names": [".telemetry.", ], "tag": "Ceilometer"}, - {"names": [".volume.", ], "tag": "Cinder"}]: + {"names": [".object_storage.", ], "tag": "Swift"}]: for name in group["names"]: if name in line: section = group["tag"]