1*** Settings ***
2Documentation             Test BMC using https://github.com/DMTF/Redfish-Reference-Checker
3...                       DMTF tool.
4
5Library                   OperatingSystem
6Resource                  ../../lib/dmtf_tools_utils.robot
7Resource                  ../../lib/openbmc_ffdc.robot
8
9Test Setup                Test Setup Execution
10
11*** Variables ***
12
13${DEFAULT_PYTHON}         python3
14
15${rsv_github_url}         https://github.com/DMTF/Redfish-Reference-Checker.git
16${rsv_dir_path}           Redfish-Reference-Checker
17
18${command_string}  ${DEFAULT_PYTHON} ${rsv_dir_path}${/}RedfishReferenceTool.py
19...                --nochkcert 'https://${OPENBMC_HOST}:${HTTPS_PORT}/redfish/v1/$metadata'
20
21*** Test Case ***
22
23Test BMC Redfish Reference
24    [Documentation]  Checks for valid reference URLs in CSDL XML files.
25    [Tags]  Test_BMC_Redfish_Reference
26
27    ${output}=  Run DMTF Tool  ${rsv_dir_path}  ${command_string}
28
29    # Work complete, total failures:  0
30    Should Match Regexp    ${output}  Work complete, total failures:[ ]+0
31
32*** Keywords ***
33
34Test Setup Execution
35    [Documentation]  Do test case setup tasks.
36
37    Printn
38    Download DMTF Tool  ${rsv_dir_path}  ${rsv_github_url}
39
40