mirror of
https://github.com/Telecominfraproject/wlan-testing.git
synced 2025-10-29 18:12:34 +00:00
Wifi 8048 (#572)
* Changed response to json Signed-off-by: haricharan-jaka <haricharan.jaka@candelatech.com> * Changed response to json for test_firmware_upgrade_status_gateway and test_access_points_connectivity functions in get_device_by_serial number Signed-off-by: haricharan-jaka <haricharan.jaka@candelatech.com>
This commit is contained in:
@@ -216,6 +216,7 @@ class Controller(ConfigureController):
|
||||
|
||||
def get_device_uuid(self, serial_number):
|
||||
device_info = self.get_device_by_serial_number(serial_number=serial_number)
|
||||
device_info = device_info.json()
|
||||
return device_info["UUID"]
|
||||
|
||||
def add_device_to_gw(self, serial_number, payload):
|
||||
|
||||
@@ -170,6 +170,7 @@ class TestResources(object):
|
||||
allure.attach(name="SDK Pointed by AP: ", body=str(get_uci_show.split("=")[1]))
|
||||
for ap in get_configuration["access_point"]:
|
||||
out = setup_controller.get_device_by_serial_number(serial_number=ap["serial"])
|
||||
out = out.json()
|
||||
if "ErrorCode" in out.keys():
|
||||
print(out)
|
||||
allure.attach(name="Error Device not found in Gateway: ", body=str(out))
|
||||
@@ -318,6 +319,7 @@ class TestFMS(object):
|
||||
ap_version = ap_ssh.get_ap_version_ucentral()
|
||||
current_version_ap = str(ap_version).split()
|
||||
data = setup_controller.get_device_by_serial_number(serial_number=ap['serial'])
|
||||
data = data.json()
|
||||
allure.attach(name=str(data['firmware']) + str(current_version_ap), body="")
|
||||
status.append(current_version_ap == data['firmware'].split())
|
||||
assert False not in status
|
||||
|
||||
Reference in New Issue
Block a user