blob: 9be6e20188ff2151946ff121ba424af6ffacfcaf [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
Sridevi Rameshcf0c8b02025-09-17 06:22:35 -050010Test Tags Redfish_Interop_Validator
11
Jordan Chen65868c62022-05-11 13:31:47 +000012*** Variables ***
13
14${DEFAULT_PYTHON} python3
15${rsv_dir_path} Redfish-Interop-Validator
16${rsv_github_url} https://github.com/DMTF/Redfish-Interop-Validator.git
George Keishing2742a9c2023-08-29 10:30:26 -050017# In future, when the profile is available at https://redfish.dmtf.org/profiles/
18# Default profile available at data/openbmc_redfish_interop_profile.json
19${profile_path} ${EXECDIR}/data/openbmc_redfish_interop_profile.json
Jordan Chen65868c62022-05-11 13:31:47 +000020${cmd_str_master} ${DEFAULT_PYTHON} ${rsv_dir_path}${/}RedfishInteropValidator.py
George Keishing2742a9c2023-08-29 10:30:26 -050021... --ip https://${OPENBMC_HOST}:${HTTPS_PORT}
22... --authtype=Session
23... -u ${OPENBMC_USERNAME}
24... -p ${OPENBMC_PASSWORD}
25... --logdir ${EXECDIR}${/}logs${/}
26... ${profile_path}
27... --debugging
George Keishing18d3c8a2023-08-29 18:17:16 +053028${branch_name} main
Jordan Chen65868c62022-05-11 13:31:47 +000029
George Keishing409df052024-01-17 22:36:14 +053030*** Test Cases ***
Jordan Chen65868c62022-05-11 13:31:47 +000031
32Test BMC Redfish Using Redfish Interop Validator
33 [Documentation] Check conformance based on the OpenBMC Interoperability profile.
34 [Tags] Test_BMC_Redfish_Using_Redfish_Interop_Validator
35
ganesanbbca06d02023-04-15 10:52:51 +000036 Download DMTF Tool ${rsv_dir_path} ${rsv_github_url} ${branch_name}
Jordan Chen65868c62022-05-11 13:31:47 +000037
38 ${rc} ${output}= Run DMTF Tool ${rsv_dir_path} ${cmd_str_master} check_error=1
39
George Keishingc5dbbdd2025-05-07 13:55:17 +053040 IF ${rc} != 0 Fail Redfish-Interop-Validator Failed.