Files
wlan-testing/tests/controller_tests/ucentral_gateway/test_authentication.py
shivamcandela 06abff8064 uci api test cases
Signed-off-by: shivamcandela <shivam.thakur@candelatech.com>
2021-06-25 23:19:20 +05:30

30 lines
676 B
Python

"""
UCI Rest API Tests: Test Login, Logout API's
"""
import pytest
class TestUCIAUTHDEAUTH(object):
"""
pytest -m "uci_login or uci_logout" --ucentral
"""
@pytest.mark.uci_login
def test_uci_auth(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_uci_deauth(self, setup_controller):
"""
pytest -m "uci_logout" --ucentral
"""
resp = setup_controller.logout()
print(resp)
assert resp.status_code == 200