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
This commit is contained in:
parent
c53b860d1d
commit
b9ad73bd42
|
@ -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"]
|
||||
|
|
Loading…
Reference in New Issue