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:
Haricharan Jaka
2022-05-25 15:32:14 +05:30
committed by GitHub
parent decd4d63b3
commit 79a84d4f6d
2 changed files with 3 additions and 0 deletions

View File

@@ -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):

View File

@@ -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