Files
test/testcases/cloud_platform/regression/rest/test_get_system.py
croy 82d417b9e6 New StarlingX Automation Framework
Fresh start for the StarlingX automation framework.

Change-Id: Ie265e0791024f45f71faad6315c2b91b022934d1
2024-11-29 16:01:57 -05:00

26 lines
696 B
Python

from pytest import mark
from keywords.cloud_platform.rest.configuration.system.get_system_keywords import GetSystemKeywords
from config.configuration_manager import ConfigurationManager
@mark.p0
def test_get_system():
"""
Test to validate get system rest call
Test Steps:
- call get system api
- validate that system mode is equal to the config system mode
"""
system_output = GetSystemKeywords().get_system()
# get lab config for comp purposes
lab_config = ConfigurationManager.get_lab_config()
system_object = system_output.get_system_object()
assert system_object.get_system_mode().lower() == lab_config.get_lab_type().lower()