mirror of
https://github.com/Telecominfraproject/wlan-testing.git
synced 2026-03-20 03:41:54 +00:00
Merge branch 'WIFI-1321-create-a-lan-forge-pip-module' of https://github.com/Telecominfraproject/wlan-testing into WIFI-1321-create-a-lan-forge-pip-module
This commit is contained in:
@@ -473,8 +473,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)
|
||||
logging.info("Sending Command: " + "\n" +
|
||||
"TimeStamp: " + str(datetime.datetime.utcnow()) + "\n" +
|
||||
"URI: " + str(uri) + "\n" +
|
||||
|
||||
@@ -205,13 +205,14 @@ class TestUcentralGatewayService(object):
|
||||
assert system_info.status_code == 200
|
||||
|
||||
@pytest.mark.gw_commands
|
||||
@pytest.mark.anil
|
||||
@allure.title("Get OW Gateway Commands")
|
||||
def test_gw_commands(self, get_target_object):
|
||||
system_info = get_target_object.controller_library_object.get_commands()
|
||||
# print(system_info.json())
|
||||
def test_gw_commands(self, get_target_object, get_testbed_details):
|
||||
device_name = get_testbed_details['device_under_tests'][0]['identifier']
|
||||
resp = get_target_object.controller_library_object.get_commands(device_name)
|
||||
# print(resp.json())
|
||||
# allure.attach(name="Gateway list of commands", body=str(system_info.json()),
|
||||
##attachment_type=#allure.#attachment_type.JSON)
|
||||
assert system_info.status_code == 200
|
||||
assert resp.status_code == 200
|
||||
|
||||
@pytest.mark.gw_device_logs
|
||||
@allure.title("Get Device Logs")
|
||||
|
||||
@@ -12,7 +12,7 @@ import time
|
||||
import allure
|
||||
import pytest
|
||||
|
||||
pytestmark = [pytest.mark.client_connect_tests, pytest.mark.vlan, pytest.mark.enterprise, pytest.mark.ow_sanity_interop]
|
||||
pytestmark = [pytest.mark.client_connect_tests, pytest.mark.vlan, pytest.mark.enterprise]
|
||||
|
||||
setup_params_enterprise = {
|
||||
"mode": "VLAN",
|
||||
|
||||
Reference in New Issue
Block a user