Jordan Chen | 65868c6 | 2022-05-11 13:31:47 +0000 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Documentation Test BMC Redfish conformance using https://github.com/DMTF/Redfish-Interop-Validator. |
| 3 | ... DMTF tool. |
| 4 | ... It validate the Redfish service based on an interoperability profile given to it. |
| 5 | |
| 6 | Resource ../../lib/dmtf_tools_utils.robot |
| 7 | |
| 8 | *** Variables *** |
| 9 | |
| 10 | ${DEFAULT_PYTHON} python3 |
| 11 | ${rsv_dir_path} Redfish-Interop-Validator |
| 12 | ${rsv_github_url} https://github.com/DMTF/Redfish-Interop-Validator.git |
George Keishing | 2742a9c | 2023-08-29 10:30:26 -0500 | [diff] [blame] | 13 | # In future, when the profile is available at https://redfish.dmtf.org/profiles/ |
| 14 | # Default profile available at data/openbmc_redfish_interop_profile.json |
| 15 | ${profile_path} ${EXECDIR}/data/openbmc_redfish_interop_profile.json |
Jordan Chen | 65868c6 | 2022-05-11 13:31:47 +0000 | [diff] [blame] | 16 | ${cmd_str_master} ${DEFAULT_PYTHON} ${rsv_dir_path}${/}RedfishInteropValidator.py |
George Keishing | 2742a9c | 2023-08-29 10:30:26 -0500 | [diff] [blame] | 17 | ... --ip https://${OPENBMC_HOST}:${HTTPS_PORT} |
| 18 | ... --authtype=Session |
| 19 | ... -u ${OPENBMC_USERNAME} |
| 20 | ... -p ${OPENBMC_PASSWORD} |
| 21 | ... --logdir ${EXECDIR}${/}logs${/} |
| 22 | ... ${profile_path} |
| 23 | ... --debugging |
George Keishing | 18d3c8a | 2023-08-29 18:17:16 +0530 | [diff] [blame] | 24 | ${branch_name} main |
Jordan Chen | 65868c6 | 2022-05-11 13:31:47 +0000 | [diff] [blame] | 25 | |
| 26 | *** Test Case *** |
| 27 | |
| 28 | Test BMC Redfish Using Redfish Interop Validator |
| 29 | [Documentation] Check conformance based on the OpenBMC Interoperability profile. |
| 30 | [Tags] Test_BMC_Redfish_Using_Redfish_Interop_Validator |
| 31 | |
ganesanb | bca06d0 | 2023-04-15 10:52:51 +0000 | [diff] [blame] | 32 | Download DMTF Tool ${rsv_dir_path} ${rsv_github_url} ${branch_name} |
Jordan Chen | 65868c6 | 2022-05-11 13:31:47 +0000 | [diff] [blame] | 33 | |
| 34 | ${rc} ${output}= Run DMTF Tool ${rsv_dir_path} ${cmd_str_master} check_error=1 |
| 35 | |
| 36 | Run Keyword If ${rc} != 0 Fail Redfish-Interop-Validator Failed. |