mirror of
https://github.com/Telecominfraproject/wlan-testing.git
synced 2025-10-29 18:12:34 +00:00
Wifi 12301 (#806)
* Attached Ap logs if AP is in disconnected state on pre apply check Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com> * Attached disconnected ap logs Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com> * Replaced pytest exit with pytest fail Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com> * Attached ap logs if up0v0 interface is failed to have connectivity Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com> --------- Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
This commit is contained in:
@@ -102,6 +102,8 @@ class APLIBS:
|
||||
|
||||
if output.__contains__("INCOMPLETE") or output.__contains__("FAILED"):
|
||||
logging.error(output)
|
||||
ap_logs = self.get_dut_logs(idx=idx, print_log=False, attach_allure=False)
|
||||
allure.attach(body=ap_logs, name="AP logs")
|
||||
pytest.fail("up0v0 interface is failed to have connectivity!!!")
|
||||
|
||||
def get_uci_show(self, param="ucentral", idx=0, print_log=True, attach_allure=True):
|
||||
|
||||
@@ -638,6 +638,8 @@ class tip_2x:
|
||||
ret_val = self.dut_library_object.ubus_call_ucentral_status(idx=idx, attach_allure=False, retry=10)
|
||||
if not ret_val["connected"] or ret_val["connected"] is None:
|
||||
self.dut_library_object.check_connectivity(idx=idx)
|
||||
ap_logs = self.dut_library_object.get_dut_logs(idx=idx, print_log=False, attach_allure=False)
|
||||
allure.attach(body=ap_logs, name="AP Log pre_apply_check: ")
|
||||
pytest.fail("AP is in disconnected state from Ucentral gateway!!!")
|
||||
else:
|
||||
allure.step("Connected to Gateway after Restarting the ucentral Process!!!")
|
||||
|
||||
Reference in New Issue
Block a user