xref: /openbmc/openbmc-test-automation/redfish/dmtf_tools/Redfish_Reference_Checker.robot (revision 409df05d4b10b9a8c81e282da8fef0199db5bdea)
129987375SGeorge Keishing*** Settings ***
229987375SGeorge KeishingDocumentation             Test BMC using https://github.com/DMTF/Redfish-Reference-Checker
329987375SGeorge Keishing...                       DMTF tool.
429987375SGeorge Keishing
529987375SGeorge KeishingLibrary                   OperatingSystem
629987375SGeorge KeishingResource                  ../../lib/dmtf_tools_utils.robot
729987375SGeorge KeishingResource                  ../../lib/openbmc_ffdc.robot
829987375SGeorge Keishing
929987375SGeorge KeishingTest Setup                Test Setup Execution
1029987375SGeorge Keishing
1129987375SGeorge Keishing*** Variables ***
1229987375SGeorge Keishing
1329987375SGeorge Keishing${DEFAULT_PYTHON}         python3
1429987375SGeorge Keishing
1529987375SGeorge Keishing${rsv_github_url}         https://github.com/DMTF/Redfish-Reference-Checker.git
1629987375SGeorge Keishing${rsv_dir_path}           Redfish-Reference-Checker
1729987375SGeorge Keishing
1829987375SGeorge Keishing${command_string}  ${DEFAULT_PYTHON} ${rsv_dir_path}${/}RedfishReferenceTool.py
19d4ba2493SGeorge Keishing...                --nochkcert 'https://${OPENBMC_HOST}:${HTTPS_PORT}/redfish/v1/$metadata'
2029987375SGeorge Keishing
21bca06d02Sganesanb${branch_name}    main
22bca06d02Sganesanb
23*409df05dSGeorge Keishing*** Test Cases ***
2429987375SGeorge Keishing
2529987375SGeorge KeishingTest BMC Redfish Reference
2629987375SGeorge Keishing    [Documentation]  Checks for valid reference URLs in CSDL XML files.
2729987375SGeorge Keishing    [Tags]  Test_BMC_Redfish_Reference
2829987375SGeorge Keishing
29899ae01fSGeorge Keishing    ${rc}  ${output}=  Run DMTF Tool  ${rsv_dir_path}  ${command_string}  check_error=1
3029987375SGeorge Keishing
3129987375SGeorge Keishing    # Work complete, total failures:  0
3229987375SGeorge Keishing    Should Match Regexp    ${output}  Work complete, total failures:[ ]+0
33899ae01fSGeorge Keishing    Run Keyword If  ${rc} != 0  Fail  Redfish-Reference-Checker Failed.
3429987375SGeorge Keishing
3529987375SGeorge Keishing*** Keywords ***
3629987375SGeorge Keishing
3729987375SGeorge KeishingTest Setup Execution
3829987375SGeorge Keishing    [Documentation]  Do test case setup tasks.
3929987375SGeorge Keishing
4029987375SGeorge Keishing    Printn
41bca06d02Sganesanb    Download DMTF Tool  ${rsv_dir_path}  ${rsv_github_url}  ${branch_name}
4229987375SGeorge Keishing
43