uc sanity markers

Signed-off-by: shivamcandela <shivam.thakur@candelatech.com>
This commit is contained in:
shivamcandela
2021-06-25 23:46:55 +05:30
parent 06abff8064
commit 74438a8694
4 changed files with 32 additions and 3 deletions

View File

@@ -0,0 +1,29 @@
"""
UCI Rest API Tests: Test Devices API
"""
import pytest
class TestUCIAUTHDEAUTH(object):
"""
pytest -m "uci_login or uci_logout" --ucentral
"""
@pytest.mark.uci_login
def test_get_all_devices(self, setup_controller):
"""
pytest -m "uci_login" --ucentral
"""
print(setup_controller.login_resp)
assert setup_controller.login_resp.status_code == 200
@pytest.mark.uci_logout
def test_get_device_by_serial(self, setup_controller):
"""
pytest -m "uci_logout" --ucentral
"""
resp = setup_controller.logout()
print(resp)
assert resp.status_code == 200

View File

@@ -27,7 +27,7 @@ setup_params_general = {
"radius": False
}
@pytest.mark.uc_sanity
@pytest.mark.suiteA
@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY")
@pytest.mark.parametrize(

View File

@@ -27,7 +27,7 @@ setup_params_general = {
"radius": False
}
@pytest.mark.uc_sanity
@pytest.mark.suiteA
@pytest.mark.sanity_ucentral
@allure.feature("NAT MODE CLIENT CONNECTIVITY")

View File

@@ -27,7 +27,7 @@ setup_params_general = {
"radius": False
}
@pytest.mark.uc_sanity
@pytest.mark.suiteA
@allure.feature("vlan MODE CLIENT CONNECTIVITY")
@pytest.mark.parametrize(