Add CloudSDK version to TestRail run for use in QA portal

This commit is contained in:
bealler
2021-02-17 19:57:34 -05:00
parent 49cc98223e
commit bb645baeb8
2 changed files with 28 additions and 21 deletions

View File

@@ -518,7 +518,12 @@ for key in equipment_ids:
with open(report_path + today + '/report_data.json', 'w') as report_json_file: with open(report_path + today + '/report_data.json', 'w') as report_json_file:
json.dump(report_data, report_json_file) json.dump(report_data, report_json_file)
###Test Create Firmware Version # Update TR Testrun with CloudSDK info for use in QA portal
sdk_description = cloudsdk_cluster_info["date"]+"(Commit ID: "+cloudsdk_cluster_info["commitId"]
update_test = client.update_testrun(rid,sdk_description)
print(update_test)
# Test Create Firmware Version
test_id_fw = test_cases["create_fw"] test_id_fw = test_cases["create_fw"]
latest_image = ap_latest_dict[key] latest_image = ap_latest_dict[key]
cloudModel = cloud_sdk_models[key] cloudModel = cloud_sdk_models[key]

View File

@@ -65,7 +65,9 @@ mimo_2dot4g = {
"wf194c": "4x4", "wf194c": "4x4",
"ex227": "", "ex227": "",
"ex447": "", "ex447": "",
"eap101": "2x2", "eap101": "2x2"
""
"",
"eap102": "4x4" "eap102": "4x4"
} }
@@ -87,14 +89,14 @@ customer_id = "2"
##Equipment IDs for Lab APs under test ##Equipment IDs for Lab APs under test
equipment_id_dict = { equipment_id_dict = {
"ea8300": "115", "ea8300": "3",
"ecw5410": "116", "ecw5410": "5",
"ecw5211": "117", "ecw5211": "2",
"ec420": "27", "ec420": "11",
"wf188n": "135", "wf188n": "1",
"ex227": "148", "ex227": "8",
"eap102": "147", "eap102": "7",
"wf194c": "152" "wf194c": "4"
} }
equipment_ip_dict = { equipment_ip_dict = {
@@ -178,13 +180,13 @@ test_cases = {
} }
## Other profiles ## Other profiles
radius_profile = 4159 radius_profile = 1234
rf_profile = 10 rf_profile = 10
###Testing AP Profile Information ###Testing AP Profile Information
profile_info_dict = { profile_info_dict = {
"ecw5410": { "ecw5410": {
"profile_id": "2", "profile_id": "6",
"childProfileIds": [ "childProfileIds": [
3647, 3647,
10, 10,
@@ -223,7 +225,7 @@ profile_info_dict = {
}, },
"ea8300": { "ea8300": {
"profile_id": "153", "profile_id": "6",
"childProfileIds": [ "childProfileIds": [
17, 17,
18, 18,
@@ -266,7 +268,7 @@ profile_info_dict = {
}, },
"ec420": { "ec420": {
"profile_id": "20", "profile_id": "6",
"childProfileIds": [ "childProfileIds": [
209, 209,
210, 210,
@@ -305,7 +307,7 @@ profile_info_dict = {
}, },
"ecw5211": { "ecw5211": {
"profile_id": "27", "profile_id": "6",
"childProfileIds": [ "childProfileIds": [
32, 32,
10, 10,
@@ -344,7 +346,7 @@ profile_info_dict = {
}, },
"wf188n": { "wf188n": {
"profile_id": "3724", "profile_id": "6",
"childProfileIds": [ "childProfileIds": [
3718, 3718,
3719, 3719,
@@ -383,7 +385,7 @@ profile_info_dict = {
}, },
"wf194c": { "wf194c": {
"profile_id": "4306", "profile_id": "6",
"childProfileIds": [ "childProfileIds": [
4307, 4307,
4308, 4308,
@@ -422,7 +424,7 @@ profile_info_dict = {
}, },
"ex227": { "ex227": {
"profile_id": "4964", "profile_id": "6",
"childProfileIds": [ "childProfileIds": [
4958, 4958,
4959, 4959,
@@ -461,7 +463,7 @@ profile_info_dict = {
}, },
"ex447": { "ex447": {
"profile_id": "5008", "profile_id": "6",
"childProfileIds": [ "childProfileIds": [
5002, 5002,
5003, 5003,
@@ -500,7 +502,7 @@ profile_info_dict = {
}, },
"eap101": { "eap101": {
"profile_id": "5029", "profile_id": "6",
"childProfileIds": [ "childProfileIds": [
5023, 5023,
5024, 5024,
@@ -539,7 +541,7 @@ profile_info_dict = {
}, },
"eap102": { "eap102": {
"profile_id": "5050", "profile_id": "6",
"childProfileIds": [ "childProfileIds": [
5044, 5044,
5045, 5045,