xref: /openbmc/openbmc-test-automation/redfish/dmtf_tools/Redfish_Interop_Validator.robot (revision 025063e5276721ce64b872bc18df6ce96cb8aa95)
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
10Test Tags          Redfish_Interop_Validator
11
12*** Variables ***
13
14${DEFAULT_PYTHON}  python3
15${rsv_dir_path}    Redfish-Interop-Validator
16${rsv_github_url}  https://github.com/DMTF/Redfish-Interop-Validator.git
17# In future, when the profile is available at https://redfish.dmtf.org/profiles/
18# Default profile available at  data/openbmc_redfish_interop_profile.json
19${profile_path}    ${EXECDIR}/data/openbmc_redfish_interop_profile.json
20${cmd_str_master}  ${DEFAULT_PYTHON} ${rsv_dir_path}${/}RedfishInteropValidator.py
21...                --ip https://${OPENBMC_HOST}:${HTTPS_PORT}
22...                --authtype=Session
23...                -u ${OPENBMC_USERNAME}
24...                -p ${OPENBMC_PASSWORD}
25...                --logdir ${EXECDIR}${/}logs${/}
26...                ${profile_path}
27...                --debugging
28${branch_name}     main
29
30*** Test Cases ***
31
32Test BMC Redfish Using Redfish Interop Validator
33    [Documentation]  Check conformance based on the OpenBMC Interoperability profile.
34    [Tags]  Test_BMC_Redfish_Using_Redfish_Interop_Validator
35
36    Download DMTF Tool  ${rsv_dir_path}  ${rsv_github_url}  ${branch_name}
37
38    ${rc}  ${output}=  Run DMTF Tool  ${rsv_dir_path}  ${cmd_str_master}  check_error=1
39
40    IF  ${rc} != 0  Fail  Redfish-Interop-Validator Failed.
41