mirror of
https://github.com/Telecominfraproject/wlan-testing.git
synced 2025-11-03 12:27:53 +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):
|
def get_device_uuid(self, serial_number):
|
||||||
device_info = self.get_device_by_serial_number(serial_number=serial_number)
|
device_info = self.get_device_by_serial_number(serial_number=serial_number)
|
||||||
|
device_info = device_info.json()
|
||||||
return device_info["UUID"]
|
return device_info["UUID"]
|
||||||
|
|
||||||
def add_device_to_gw(self, serial_number, payload):
|
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]))
|
allure.attach(name="SDK Pointed by AP: ", body=str(get_uci_show.split("=")[1]))
|
||||||
for ap in get_configuration["access_point"]:
|
for ap in get_configuration["access_point"]:
|
||||||
out = setup_controller.get_device_by_serial_number(serial_number=ap["serial"])
|
out = setup_controller.get_device_by_serial_number(serial_number=ap["serial"])
|
||||||
|
out = out.json()
|
||||||
if "ErrorCode" in out.keys():
|
if "ErrorCode" in out.keys():
|
||||||
print(out)
|
print(out)
|
||||||
allure.attach(name="Error Device not found in Gateway: ", body=str(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()
|
ap_version = ap_ssh.get_ap_version_ucentral()
|
||||||
current_version_ap = str(ap_version).split()
|
current_version_ap = str(ap_version).split()
|
||||||
data = setup_controller.get_device_by_serial_number(serial_number=ap['serial'])
|
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="")
|
allure.attach(name=str(data['firmware']) + str(current_version_ap), body="")
|
||||||
status.append(current_version_ap == data['firmware'].split())
|
status.append(current_version_ap == data['firmware'].split())
|
||||||
assert False not in status
|
assert False not in status
|
||||||
|
|||||||
Reference in New Issue
Block a user