xref: /openbmc/openbmc-test-automation/redfish/dmtf_tools/Redfish_Interop_Validator.robot (revision 49c1b53931191184251a4d1d9ba9ab127ee9f9fb)
1*** Settings ***
2Documentation      Test BMC Redfish conformance using
3...                https://github.com/DMTF/Redfish-Interop-Validator.
4...                DMTF tool.
5...                It validate the Redfish service based on an
6...                interoperability profile given to it.
7
8Resource           ../../lib/dmtf_tools_utils.robot
9
10*** Variables ***
11
12${DEFAULT_PYTHON}  python3
13${rsv_dir_path}    Redfish-Interop-Validator
14${rsv_github_url}  https://github.com/DMTF/Redfish-Interop-Validator.git
15# In future, when the profile is available at https://redfish.dmtf.org/profiles/
16# Default profile available at  data/openbmc_redfish_interop_profile.json
17${profile_path}    ${EXECDIR}/data/openbmc_redfish_interop_profile.json
18${cmd_str_master}  ${DEFAULT_PYTHON} ${rsv_dir_path}${/}RedfishInteropValidator.py
19...                --ip https://${OPENBMC_HOST}:${HTTPS_PORT}
20...                --authtype=Session
21...                -u ${OPENBMC_USERNAME}
22...                -p ${OPENBMC_PASSWORD}
23...                --logdir ${EXECDIR}${/}logs${/}
24...                ${profile_path}
25...                --debugging
26${branch_name}     main
27
28*** Test Cases ***
29
30Test BMC Redfish Using Redfish Interop Validator
31    [Documentation]  Check conformance based on the OpenBMC Interoperability profile.
32    [Tags]  Test_BMC_Redfish_Using_Redfish_Interop_Validator
33
34    Download DMTF Tool  ${rsv_dir_path}  ${rsv_github_url}  ${branch_name}
35
36    ${rc}  ${output}=  Run DMTF Tool  ${rsv_dir_path}  ${cmd_str_master}  check_error=1
37
38    IF  ${rc} != 0  Fail  Redfish-Interop-Validator Failed.
39