mirror of
https://github.com/Telecominfraproject/wlan-testing.git
synced 2025-11-01 11:28:09 +00:00
Wifi 11044 (#711)
* Added sleep time 15 sec Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com> * Removed retry logic for config push Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com> * Added push_config_exception_variable Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com> Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
This commit is contained in:
@@ -313,7 +313,7 @@ class ChamberView:
|
|||||||
time.sleep(2)
|
time.sleep(2)
|
||||||
self.CreateChamberview.show_text_blob(None, None, True) # Show changes on GUI
|
self.CreateChamberview.show_text_blob(None, None, True) # Show changes on GUI
|
||||||
self.CreateChamberview.sync_cv()
|
self.CreateChamberview.sync_cv()
|
||||||
time.sleep(5)
|
time.sleep(15)
|
||||||
return self.CreateChamberview, self.scenario_name
|
return self.CreateChamberview, self.scenario_name
|
||||||
|
|
||||||
def add_vlan(self, vlan_ids=[]):
|
def add_vlan(self, vlan_ids=[]):
|
||||||
|
|||||||
@@ -711,24 +711,11 @@ class Fixtures_2x:
|
|||||||
|
|
||||||
#print(instantiate_profile_obj.base_profile_config)
|
#print(instantiate_profile_obj.base_profile_config)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
push_config_exception_variable = True
|
||||||
ap_logs = ap_ssh.get_logread()
|
ap_logs = ap_ssh.get_logread()
|
||||||
allure.attach(body=ap_logs, name="1st time Failure while pushing- AP Logs: ")
|
allure.attach(body=ap_logs, name="Failure while pushing- AP Logs: ")
|
||||||
allure.attach(body=str(e), name="1st time Exception data after config push: ")
|
allure.attach(body=str(e), name="Exception data after config push: ")
|
||||||
print(e)
|
print(e)
|
||||||
time.sleep(30)
|
|
||||||
print("Second time applying config")
|
|
||||||
try:
|
|
||||||
instantiate_profile_obj.push_config(serial_number=get_equipment_ref[0])
|
|
||||||
except Exception as e:
|
|
||||||
push_config_exception_variable = True
|
|
||||||
ap_logs = ap_ssh.get_logread()
|
|
||||||
allure.attach(body=ap_logs, name="2nd time Failure while pushing- AP Logs: ")
|
|
||||||
allure.attach(body=str(e), name="2nd time Exception data after config push: ")
|
|
||||||
print(e)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
config = json.loads(str(instantiate_profile_obj.base_profile_config).replace(" ", "").replace("'", '"').replace("True", "true"))
|
config = json.loads(str(instantiate_profile_obj.base_profile_config).replace(" ", "").replace("'", '"').replace("True", "true"))
|
||||||
config["uuid"] = 0
|
config["uuid"] = 0
|
||||||
@@ -883,9 +870,8 @@ class Fixtures_2x:
|
|||||||
allure.attach.file(source="lanforge_log_1.txt",
|
allure.attach.file(source="lanforge_log_1.txt",
|
||||||
name="lanforge_log_1")
|
name="lanforge_log_1")
|
||||||
|
|
||||||
request.addfinalizer(collect_logs_lf)
|
|
||||||
if push_config_exception_variable:
|
if push_config_exception_variable:
|
||||||
pytest.fail("Command Timed Out")
|
request.addfinalizer(collect_logs_lf)
|
||||||
|
|
||||||
return test_cases
|
return test_cases
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user