mirror of
https://github.com/Telecominfraproject/wlan-testing.git
synced 2025-11-02 11:57:49 +00:00
serialNumber added to GET commands API in GWservice (#705)
This commit is contained in:
committed by
GitHub
parent
d7435bb2e8
commit
1e89166b69
@@ -306,8 +306,8 @@ class Controller(ConfigureController):
|
||||
self.check_response("DELETE", resp, self.make_headers(), "", uri)
|
||||
return resp
|
||||
|
||||
def get_commands(self):
|
||||
uri = self.build_uri("commands")
|
||||
def get_commands(self, serial_number):
|
||||
uri = self.build_uri("commands?serialNumber=" + serial_number)
|
||||
print("Sending Command: " + "\n" +
|
||||
"TimeStamp: " + str(datetime.datetime.utcnow()) + "\n" +
|
||||
"URI: " + str(uri) + "\n" +
|
||||
|
||||
@@ -206,8 +206,9 @@ class TestUcentralGatewayService(object):
|
||||
|
||||
@pytest.mark.gw_commands
|
||||
@allure.title("Get OW Gateway Commands")
|
||||
def test_gw_commands(self, setup_controller):
|
||||
system_info = setup_controller.get_commands()
|
||||
def test_gw_commands(self, setup_controller, get_configuration):
|
||||
device_name = get_configuration['access_point'][0]['serial']
|
||||
system_info = setup_controller.get_commands(device_name)
|
||||
# print(system_info.json())
|
||||
# allure.attach(name="Gateway list of commands", body=str(system_info.json()),
|
||||
##attachment_type=#allure.#attachment_type.JSON)
|
||||
|
||||
Reference in New Issue
Block a user