1*** 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
13${cmd_str_master}  ${DEFAULT_PYTHON} ${rsv_dir_path}${/}RedfishInteropValidator.py
14...                --ip https://${OPENBMC_HOST}:${HTTPS_PORT} --authtype=Session -u ${OPENBMC_USERNAME}
15...                -p ${OPENBMC_PASSWORD} --logdir ${EXECDIR}${/}logs${/} --debugging
16...                ${EXECDIR}/data/openbmc_redfish_interop_profile.json
17${branch_name}     master
18
19*** Test Case ***
20
21Test BMC Redfish Using Redfish Interop Validator
22    [Documentation]  Check conformance based on the OpenBMC Interoperability profile.
23    [Tags]  Test_BMC_Redfish_Using_Redfish_Interop_Validator
24
25    Download DMTF Tool  ${rsv_dir_path}  ${rsv_github_url}  ${branch_name}
26
27    ${rc}  ${output}=  Run DMTF Tool  ${rsv_dir_path}  ${cmd_str_master}  check_error=1
28
29    Run Keyword If  ${rc} != 0  Fail  Redfish-Interop-Validator Failed.
30