blob: 191117168173b220624606e79d614bbe5e560f16 [file] [log] [blame]
George Keishing29987372019-04-15 11:35:27 -05001*** 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
George Keishingd4ba2492022-01-10 08:27:34 -060019... --nochkcert 'https://${OPENBMC_HOST}:${HTTPS_PORT}/redfish/v1/$metadata'
George Keishing29987372019-04-15 11:35:27 -050020
ganesanbbca06d02023-04-15 10:52:51 +000021${branch_name} main
22
George Keishing29987372019-04-15 11:35:27 -050023*** Test Case ***
24
25Test BMC Redfish Reference
26 [Documentation] Checks for valid reference URLs in CSDL XML files.
27 [Tags] Test_BMC_Redfish_Reference
28
George Keishing899ae012022-03-25 10:16:41 -050029 ${rc} ${output}= Run DMTF Tool ${rsv_dir_path} ${command_string} check_error=1
George Keishing29987372019-04-15 11:35:27 -050030
31 # Work complete, total failures: 0
32 Should Match Regexp ${output} Work complete, total failures:[ ]+0
George Keishing899ae012022-03-25 10:16:41 -050033 Run Keyword If ${rc} != 0 Fail Redfish-Reference-Checker Failed.
George Keishing29987372019-04-15 11:35:27 -050034
35*** Keywords ***
36
37Test Setup Execution
38 [Documentation] Do test case setup tasks.
39
40 Printn
ganesanbbca06d02023-04-15 10:52:51 +000041 Download DMTF Tool ${rsv_dir_path} ${rsv_github_url} ${branch_name}
George Keishing29987372019-04-15 11:35:27 -050042