165868c6aSJordan Chen*** Settings ***
265868c6aSJordan ChenDocumentation      Test BMC Redfish conformance using  https://github.com/DMTF/Redfish-Interop-Validator.
365868c6aSJordan Chen...                DMTF tool.
465868c6aSJordan Chen...                It validate the Redfish service based on an interoperability profile given to it.
565868c6aSJordan Chen
665868c6aSJordan ChenResource           ../../lib/dmtf_tools_utils.robot
765868c6aSJordan Chen
865868c6aSJordan Chen*** Variables ***
965868c6aSJordan Chen
1065868c6aSJordan Chen${DEFAULT_PYTHON}  python3
1165868c6aSJordan Chen${rsv_dir_path}    Redfish-Interop-Validator
1265868c6aSJordan Chen${rsv_github_url}  https://github.com/DMTF/Redfish-Interop-Validator.git
13*2742a9c9SGeorge Keishing# In future, when the profile is available at https://redfish.dmtf.org/profiles/
14*2742a9c9SGeorge Keishing# Default profile available at  data/openbmc_redfish_interop_profile.json
15*2742a9c9SGeorge Keishing${profile_path}    ${EXECDIR}/data/openbmc_redfish_interop_profile.json
1665868c6aSJordan Chen${cmd_str_master}  ${DEFAULT_PYTHON} ${rsv_dir_path}${/}RedfishInteropValidator.py
17*2742a9c9SGeorge Keishing...                --ip https://${OPENBMC_HOST}:${HTTPS_PORT}
18*2742a9c9SGeorge Keishing...                --authtype=Session
19*2742a9c9SGeorge Keishing...                -u ${OPENBMC_USERNAME}
20*2742a9c9SGeorge Keishing...                -p ${OPENBMC_PASSWORD}
21*2742a9c9SGeorge Keishing...                --logdir ${EXECDIR}${/}logs${/}
22*2742a9c9SGeorge Keishing...                ${profile_path}
23*2742a9c9SGeorge Keishing...                --debugging
2418d3c8adSGeorge Keishing${branch_name}     main
2565868c6aSJordan Chen
2665868c6aSJordan Chen*** Test Case ***
2765868c6aSJordan Chen
2865868c6aSJordan ChenTest BMC Redfish Using Redfish Interop Validator
2965868c6aSJordan Chen    [Documentation]  Check conformance based on the OpenBMC Interoperability profile.
3065868c6aSJordan Chen    [Tags]  Test_BMC_Redfish_Using_Redfish_Interop_Validator
3165868c6aSJordan Chen
32bca06d02Sganesanb    Download DMTF Tool  ${rsv_dir_path}  ${rsv_github_url}  ${branch_name}
3365868c6aSJordan Chen
3465868c6aSJordan Chen    ${rc}  ${output}=  Run DMTF Tool  ${rsv_dir_path}  ${cmd_str_master}  check_error=1
3565868c6aSJordan Chen
3665868c6aSJordan Chen    Run Keyword If  ${rc} != 0  Fail  Redfish-Interop-Validator Failed.
37