Files
wlan-testing/tests/controller_tests/test_api_login.py
shivamcandela efbd6025a2 test cases fixed for sanity suite
Signed-off-by: shivamcandela <shivam.thakur@candelatech.com>
2021-05-26 18:03:44 +05:30

30 lines
1.2 KiB
Python

"""
Test Case Module: Testing Basic Cloud
"""
import pytest
from configuration import CONFIGURATION
@pytest.mark.sanity
@pytest.mark.sdk_version_check
def test_cloud_sdk_version(setup_controller, testbed, test_cases, update_report):
try:
response = setup_controller.portal_ping()
if CONFIGURATION[testbed]['controller']['version'] == response._project_version:
update_report.update_testrail(case_id=test_cases["cloud_ver"],
status_id=1, msg='Read CloudSDK version from API successfully')
PASS = True
else:
update_report.update_testrail(case_id=test_cases["cloud_ver"],
status_id=0, msg='Could not read CloudSDK version from API - '
'version missmatch')
PASS = False
except Exception as e:
print(e)
update_report.update_testrail(case_id=test_cases["cloud_ver"],
status_id=0, msg='Could not read CloudSDK version from API - Exception '
'occured')
PASS = False
assert PASS