Add new test case to Nightly Sanity

This commit is contained in:
bealler
2020-12-01 20:45:06 -05:00
parent ab2f8d969c
commit 2332e0cc52
2 changed files with 15 additions and 4 deletions

View File

@@ -272,7 +272,8 @@ test_cases = [
5543,
5544,
5545,
5546
5546,
5547
]
##AP models for jfrog
@@ -480,13 +481,14 @@ for key in equipment_id_dict:
print(upgrade_fw)
if upgrade_fw["success"] == True:
print("CloudSDK Upgrade Request Success")
report_data['tests'][key][2233] = "running"
report_data['tests'][key][5547] = "passed"
client.update_testrail(case_id="5547", run_id=rid, status_id=1, msg='Upgrade request using API successful')
logger.info('Firmware upgrade API successfully sent')
else:
print("Cloud SDK Upgrade Request Error!")
# mark upgrade test case as failed with CloudSDK error
client.update_testrail(case_id="2233", run_id=rid, status_id=5, msg='Error calling CloudSDK firmware upgrade API')
report_data['tests'][key][2233] = "failed"
client.update_testrail(case_id="5547", run_id=rid, status_id=5, msg='Error requesting upgrade via API')
report_data['tests'][key][5547] = "failed"
logger.warning('Firmware upgrade API failed to send')
continue

View File

@@ -121,6 +121,15 @@ $json = json_decode($results, true);
<TD><?php echo print_r($json['tests']['ec420']['5540'],true) ?></TD>
</TR>
<TR ALIGN="CENTER">
<TD>5547</TD>
<TD ALIGN="LEFT">Request AP Upgrade using API</TD>
<TD><?php echo print_r($json['tests']['ea8300']['5547'],true) ?></TD>
<TD><?php echo print_r($json['tests']['ecw5211']['5547'],true) ?></TD>
<TD><?php echo print_r($json['tests']['ecw5410']['5547'],true) ?></TD>
<TD><?php echo print_r($json['tests']['ec420']['5547'],true) ?></TD>
</TR>
<TR ALIGN="CENTER">
<TD>2233</TD>
<TD ALIGN="LEFT">AP Upgrade Successful</TD>