| George Keishing | 2998737 | 2019-04-15 11:35:27 -0500 | [diff] [blame] | 1 | *** Settings *** | 
|  | 2 | Documentation             Test BMC using https://github.com/DMTF/Redfish-Reference-Checker | 
|  | 3 | ...                       DMTF tool. | 
|  | 4 |  | 
|  | 5 | Library                   OperatingSystem | 
|  | 6 | Resource                  ../../lib/dmtf_tools_utils.robot | 
|  | 7 | Resource                  ../../lib/openbmc_ffdc.robot | 
|  | 8 |  | 
|  | 9 | Test 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 Keishing | d4ba249 | 2022-01-10 08:27:34 -0600 | [diff] [blame] | 19 | ...                --nochkcert 'https://${OPENBMC_HOST}:${HTTPS_PORT}/redfish/v1/$metadata' | 
| George Keishing | 2998737 | 2019-04-15 11:35:27 -0500 | [diff] [blame] | 20 |  | 
| ganesanb | bca06d0 | 2023-04-15 10:52:51 +0000 | [diff] [blame] | 21 | ${branch_name}    main | 
|  | 22 |  | 
| George Keishing | 409df05 | 2024-01-17 22:36:14 +0530 | [diff] [blame] | 23 | *** Test Cases *** | 
| George Keishing | 2998737 | 2019-04-15 11:35:27 -0500 | [diff] [blame] | 24 |  | 
|  | 25 | Test BMC Redfish Reference | 
|  | 26 | [Documentation]  Checks for valid reference URLs in CSDL XML files. | 
|  | 27 | [Tags]  Test_BMC_Redfish_Reference | 
|  | 28 |  | 
| George Keishing | 899ae01 | 2022-03-25 10:16:41 -0500 | [diff] [blame] | 29 | ${rc}  ${output}=  Run DMTF Tool  ${rsv_dir_path}  ${command_string}  check_error=1 | 
| George Keishing | 2998737 | 2019-04-15 11:35:27 -0500 | [diff] [blame] | 30 |  | 
|  | 31 | # Work complete, total failures:  0 | 
|  | 32 | Should Match Regexp    ${output}  Work complete, total failures:[ ]+0 | 
| George Keishing | c5dbbdd | 2025-05-07 13:55:17 +0530 | [diff] [blame] | 33 | IF  ${rc} != 0  Fail  Redfish-Reference-Checker Failed. | 
| George Keishing | 2998737 | 2019-04-15 11:35:27 -0500 | [diff] [blame] | 34 |  | 
|  | 35 | *** Keywords *** | 
|  | 36 |  | 
|  | 37 | Test Setup Execution | 
|  | 38 | [Documentation]  Do test case setup tasks. | 
|  | 39 |  | 
|  | 40 | Printn | 
| ganesanb | bca06d0 | 2023-04-15 10:52:51 +0000 | [diff] [blame] | 41 | Download DMTF Tool  ${rsv_dir_path}  ${rsv_github_url}  ${branch_name} | 
| George Keishing | 2998737 | 2019-04-15 11:35:27 -0500 | [diff] [blame] | 42 |  |