blob: e0f5c61cacd4bc848515c8c3796ed04f36e914ee [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
Sridevi Rameshcf0c8b02025-09-17 06:22:35 -050011Test Tags Redfish_Reference_Checker
12
George Keishing29987372019-04-15 11:35:27 -050013*** Variables ***
14
15${DEFAULT_PYTHON} python3
16
17${rsv_github_url} https://github.com/DMTF/Redfish-Reference-Checker.git
18${rsv_dir_path} Redfish-Reference-Checker
19
20${command_string} ${DEFAULT_PYTHON} ${rsv_dir_path}${/}RedfishReferenceTool.py
George Keishingd4ba2492022-01-10 08:27:34 -060021... --nochkcert 'https://${OPENBMC_HOST}:${HTTPS_PORT}/redfish/v1/$metadata'
George Keishing29987372019-04-15 11:35:27 -050022
ganesanbbca06d02023-04-15 10:52:51 +000023${branch_name} main
24
George Keishing409df052024-01-17 22:36:14 +053025*** Test Cases ***
George Keishing29987372019-04-15 11:35:27 -050026
27Test BMC Redfish Reference
28 [Documentation] Checks for valid reference URLs in CSDL XML files.
29 [Tags] Test_BMC_Redfish_Reference
30
George Keishing899ae012022-03-25 10:16:41 -050031 ${rc} ${output}= Run DMTF Tool ${rsv_dir_path} ${command_string} check_error=1
George Keishing29987372019-04-15 11:35:27 -050032
33 # Work complete, total failures: 0
34 Should Match Regexp ${output} Work complete, total failures:[ ]+0
George Keishingc5dbbdd2025-05-07 13:55:17 +053035 IF ${rc} != 0 Fail Redfish-Reference-Checker Failed.
George Keishing29987372019-04-15 11:35:27 -050036
37*** Keywords ***
38
39Test Setup Execution
40 [Documentation] Do test case setup tasks.
41
42 Printn
ganesanbbca06d02023-04-15 10:52:51 +000043 Download DMTF Tool ${rsv_dir_path} ${rsv_github_url} ${branch_name}
George Keishing29987372019-04-15 11:35:27 -050044