blob: 6cf32e82822f42a2dc604e4d1854f2f2d4aaf2fb [file] [log] [blame]
Jordan Chen65868c62022-05-11 13:31:47 +00001*** Settings ***
George Keishingc5dbbdd2025-05-07 13:55:17 +05302Documentation Test BMC Redfish conformance using
3... https://github.com/DMTF/Redfish-Interop-Validator.
Jordan Chen65868c62022-05-11 13:31:47 +00004... DMTF tool.
George Keishingc5dbbdd2025-05-07 13:55:17 +05305... It validate the Redfish service based on an
6... interoperability profile given to it.
Jordan Chen65868c62022-05-11 13:31:47 +00007
8Resource ../../lib/dmtf_tools_utils.robot
9
10*** Variables ***
11
12${DEFAULT_PYTHON} python3
13${rsv_dir_path} Redfish-Interop-Validator
14${rsv_github_url} https://github.com/DMTF/Redfish-Interop-Validator.git
George Keishing2742a9c2023-08-29 10:30:26 -050015# In future, when the profile is available at https://redfish.dmtf.org/profiles/
16# Default profile available at data/openbmc_redfish_interop_profile.json
17${profile_path} ${EXECDIR}/data/openbmc_redfish_interop_profile.json
Jordan Chen65868c62022-05-11 13:31:47 +000018${cmd_str_master} ${DEFAULT_PYTHON} ${rsv_dir_path}${/}RedfishInteropValidator.py
George Keishing2742a9c2023-08-29 10:30:26 -050019... --ip https://${OPENBMC_HOST}:${HTTPS_PORT}
20... --authtype=Session
21... -u ${OPENBMC_USERNAME}
22... -p ${OPENBMC_PASSWORD}
23... --logdir ${EXECDIR}${/}logs${/}
24... ${profile_path}
25... --debugging
George Keishing18d3c8a2023-08-29 18:17:16 +053026${branch_name} main
Jordan Chen65868c62022-05-11 13:31:47 +000027
George Keishing409df052024-01-17 22:36:14 +053028*** Test Cases ***
Jordan Chen65868c62022-05-11 13:31:47 +000029
30Test BMC Redfish Using Redfish Interop Validator
31 [Documentation] Check conformance based on the OpenBMC Interoperability profile.
32 [Tags] Test_BMC_Redfish_Using_Redfish_Interop_Validator
33
ganesanbbca06d02023-04-15 10:52:51 +000034 Download DMTF Tool ${rsv_dir_path} ${rsv_github_url} ${branch_name}
Jordan Chen65868c62022-05-11 13:31:47 +000035
36 ${rc} ${output}= Run DMTF Tool ${rsv_dir_path} ${cmd_str_master} check_error=1
37
George Keishingc5dbbdd2025-05-07 13:55:17 +053038 IF ${rc} != 0 Fail Redfish-Interop-Validator Failed.