blob: 3609c3a37e55f0298a49dde3488eced6ac4d3b04 [file] [log] [blame]
Jordan Chen65868c62022-05-11 13:31:47 +00001*** Settings ***
2Documentation Test BMC Redfish conformance using https://github.com/DMTF/Redfish-Interop-Validator.
3... DMTF tool.
4... It validate the Redfish service based on an interoperability profile given to it.
5
6Resource ../../lib/dmtf_tools_utils.robot
7
8*** Variables ***
9
10${DEFAULT_PYTHON} python3
11${rsv_dir_path} Redfish-Interop-Validator
12${rsv_github_url} https://github.com/DMTF/Redfish-Interop-Validator.git
George Keishing2742a9c2023-08-29 10:30:26 -050013# In future, when the profile is available at https://redfish.dmtf.org/profiles/
14# Default profile available at data/openbmc_redfish_interop_profile.json
15${profile_path} ${EXECDIR}/data/openbmc_redfish_interop_profile.json
Jordan Chen65868c62022-05-11 13:31:47 +000016${cmd_str_master} ${DEFAULT_PYTHON} ${rsv_dir_path}${/}RedfishInteropValidator.py
George Keishing2742a9c2023-08-29 10:30:26 -050017... --ip https://${OPENBMC_HOST}:${HTTPS_PORT}
18... --authtype=Session
19... -u ${OPENBMC_USERNAME}
20... -p ${OPENBMC_PASSWORD}
21... --logdir ${EXECDIR}${/}logs${/}
22... ${profile_path}
23... --debugging
George Keishing18d3c8a2023-08-29 18:17:16 +053024${branch_name} main
Jordan Chen65868c62022-05-11 13:31:47 +000025
26*** Test Case ***
27
28Test BMC Redfish Using Redfish Interop Validator
29 [Documentation] Check conformance based on the OpenBMC Interoperability profile.
30 [Tags] Test_BMC_Redfish_Using_Redfish_Interop_Validator
31
ganesanbbca06d02023-04-15 10:52:51 +000032 Download DMTF Tool ${rsv_dir_path} ${rsv_github_url} ${branch_name}
Jordan Chen65868c62022-05-11 13:31:47 +000033
34 ${rc} ${output}= Run DMTF Tool ${rsv_dir_path} ${cmd_str_master} check_error=1
35
36 Run Keyword If ${rc} != 0 Fail Redfish-Interop-Validator Failed.