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# 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
16${cmd_str_master}  ${DEFAULT_PYTHON} ${rsv_dir_path}${/}RedfishInteropValidator.py
17...                --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
24${branch_name}     main
25
26*** Test Cases ***
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
32    Download DMTF Tool  ${rsv_dir_path}  ${rsv_github_url}  ${branch_name}
33
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.
37