| George Keishing | 4d9b7e1 | 2019-03-26 02:03:47 -0500 | [diff] [blame] | 1 | *** Settings *** |
| George Keishing | 6a69d26 | 2019-04-03 03:45:27 -0500 | [diff] [blame] | 2 | Documentation Test BMC using https://github.com/DMTF/Redfish-Usecase-Checkers |
| 3 | ... DMTF tool. |
| George Keishing | 4d9b7e1 | 2019-03-26 02:03:47 -0500 | [diff] [blame] | 4 | |
| George Keishing | fc3d8f1 | 2022-03-24 10:57:31 -0500 | [diff] [blame] | 5 | Resource ../../lib/resource.robot |
| George Keishing | 6a69d26 | 2019-04-03 03:45:27 -0500 | [diff] [blame] | 6 | Resource ../../lib/dmtf_tools_utils.robot |
| 7 | Resource ../../lib/openbmc_ffdc.robot |
| George Keishing | fc3d8f1 | 2022-03-24 10:57:31 -0500 | [diff] [blame] | 8 | Library OperatingSystem |
| 9 | Library ../../lib/state.py |
| George Keishing | 4d9b7e1 | 2019-03-26 02:03:47 -0500 | [diff] [blame] | 10 | |
| George Keishing | 6a69d26 | 2019-04-03 03:45:27 -0500 | [diff] [blame] | 11 | Test Setup Test Setup Execution |
| 12 | Test Teardown Test Teardown Execution |
| George Keishing | 4d9b7e1 | 2019-03-26 02:03:47 -0500 | [diff] [blame] | 13 | |
| Sridevi Ramesh | cf0c8b0 | 2025-09-17 06:22:35 -0500 | [diff] [blame] | 14 | Test Tags Redfish_Usecase_Checkers |
| 15 | |
| George Keishing | 4d9b7e1 | 2019-03-26 02:03:47 -0500 | [diff] [blame] | 16 | *** Variables *** |
| 17 | |
| George Keishing | 6a69d26 | 2019-04-03 03:45:27 -0500 | [diff] [blame] | 18 | ${DEFAULT_PYTHON} python3 |
| George Keishing | 4d9b7e1 | 2019-03-26 02:03:47 -0500 | [diff] [blame] | 19 | |
| George Keishing | 6a69d26 | 2019-04-03 03:45:27 -0500 | [diff] [blame] | 20 | ${rsv_github_url} https://github.com/DMTF/Redfish-Usecase-Checkers.git |
| 21 | ${rsv_dir_path} Redfish-Usecase-Checkers |
| George Keishing | 4d9b7e1 | 2019-03-26 02:03:47 -0500 | [diff] [blame] | 22 | |
| Igor Kanyuka | 4d395f2 | 2025-10-22 23:14:08 +0100 | [diff] [blame^] | 23 | ${command_account} ${DEFAULT_PYTHON} ${rsv_dir_path}${/}rf_use_case_checkers.py |
| 24 | ... -r https://${OPENBMC_HOST} -u ${OPENBMC_USERNAME} |
| 25 | ... -p ${OPENBMC_PASSWORD} --test-list AccountManagement |
| George Keishing | 6a69d26 | 2019-04-03 03:45:27 -0500 | [diff] [blame] | 26 | |
| Igor Kanyuka | 4d395f2 | 2025-10-22 23:14:08 +0100 | [diff] [blame^] | 27 | ${command_power_control} ${DEFAULT_PYTHON} ${rsv_dir_path}${/}rf_use_case_checkers.py |
| 28 | ... -r https://${OPENBMC_HOST} -u ${OPENBMC_USERNAME} |
| 29 | ... -p ${OPENBMC_PASSWORD} --test-list PowerControl |
| George Keishing | 6a69d26 | 2019-04-03 03:45:27 -0500 | [diff] [blame] | 30 | |
| 31 | ${power_on_timeout} 15 mins |
| 32 | ${power_off_timeout} 15 mins |
| 33 | ${state_change_timeout} 3 mins |
| ganesanb | bca06d0 | 2023-04-15 10:52:51 +0000 | [diff] [blame] | 34 | ${branch_name} main |
| George Keishing | 4d9b7e1 | 2019-03-26 02:03:47 -0500 | [diff] [blame] | 35 | |
| George Keishing | 409df05 | 2024-01-17 22:36:14 +0530 | [diff] [blame] | 36 | *** Test Cases *** |
| George Keishing | 4d9b7e1 | 2019-03-26 02:03:47 -0500 | [diff] [blame] | 37 | |
| 38 | Test BMC Redfish Account Management |
| 39 | [Documentation] Check Account Management with a Redfish interface. |
| 40 | [Tags] Test_BMC_Redfish_Account_Management |
| 41 | |
| Igor Kanyuka | 4d395f2 | 2025-10-22 23:14:08 +0100 | [diff] [blame^] | 42 | ${rc} ${output}= Run DMTF Tool ${rsv_dir_path} ${command_account} check_error=1 |
| George Keishing | 4d9b7e1 | 2019-03-26 02:03:47 -0500 | [diff] [blame] | 43 | |
| Igor Kanyuka | 4d395f2 | 2025-10-22 23:14:08 +0100 | [diff] [blame^] | 44 | Should Be Equal ${rc} ${0} |
| 45 | Should Match Regexp ${output} Summary - PASS: \\d+, WARN: \\d+, FAIL: 0, NOT TESTED: \\d+ |
| manashsarma | a053fb3 | 2020-06-08 08:43:32 -0500 | [diff] [blame] | 46 | |
| George Keishing | 6a69d26 | 2019-04-03 03:45:27 -0500 | [diff] [blame] | 47 | |
| Peter D Phan | 1c5d325 | 2021-12-30 12:53:49 -0600 | [diff] [blame] | 48 | Test BMC Redfish Power Control Usecase |
| 49 | [Documentation] Power Control Usecase Test. |
| George Keishing | e23afb5 | 2022-03-17 08:25:49 -0500 | [diff] [blame] | 50 | [Tags] Test_BMC_Redfish_Power_Control_Usecase |
| George Keishing | 6a69d26 | 2019-04-03 03:45:27 -0500 | [diff] [blame] | 51 | |
| Peter D Phan | 1c5d325 | 2021-12-30 12:53:49 -0600 | [diff] [blame] | 52 | DMTF Power |
| George Keishing | 6a69d26 | 2019-04-03 03:45:27 -0500 | [diff] [blame] | 53 | |
| 54 | |
| George Keishing | 4d9b7e1 | 2019-03-26 02:03:47 -0500 | [diff] [blame] | 55 | *** Keywords *** |
| 56 | |
| 57 | Test Setup Execution |
| 58 | [Documentation] Do test case setup tasks. |
| 59 | |
| George Keishing | 6a69d26 | 2019-04-03 03:45:27 -0500 | [diff] [blame] | 60 | Printn |
| ganesanb | bca06d0 | 2023-04-15 10:52:51 +0000 | [diff] [blame] | 61 | Download DMTF Tool ${rsv_dir_path} ${rsv_github_url} ${branch_name} |
| George Keishing | 4d9b7e1 | 2019-03-26 02:03:47 -0500 | [diff] [blame] | 62 | |
| George Keishing | 6a69d26 | 2019-04-03 03:45:27 -0500 | [diff] [blame] | 63 | |
| George Keishing | 4d9b7e1 | 2019-03-26 02:03:47 -0500 | [diff] [blame] | 64 | Test Teardown Execution |
| 65 | [Documentation] Do the post-test teardown. |
| 66 | |
| George Keishing | 6a69d26 | 2019-04-03 03:45:27 -0500 | [diff] [blame] | 67 | Printn |
| George Keishing | 4d9b7e1 | 2019-03-26 02:03:47 -0500 | [diff] [blame] | 68 | FFDC On Test Case Fail |
| George Keishing | 6a69d26 | 2019-04-03 03:45:27 -0500 | [diff] [blame] | 69 | |
| 70 | |
| Peter D Phan | 1c5d325 | 2021-12-30 12:53:49 -0600 | [diff] [blame] | 71 | DMTF Power |
| George Keishing | 6a69d26 | 2019-04-03 03:45:27 -0500 | [diff] [blame] | 72 | [Documentation] Power the BMC machine on via DMTF tools. |
| 73 | |
| Igor Kanyuka | 4d395f2 | 2025-10-22 23:14:08 +0100 | [diff] [blame^] | 74 | ${rc} ${output}= Run DMTF Tool ${rsv_dir_path} ${command_power_control} check_error=1 |
| 75 | Log ${rc} |
| George Keishing | fc3d8f1 | 2022-03-24 10:57:31 -0500 | [diff] [blame] | 76 | Log ${output} |
| George Keishing | 6a69d26 | 2019-04-03 03:45:27 -0500 | [diff] [blame] | 77 | |
| Igor Kanyuka | 4d395f2 | 2025-10-22 23:14:08 +0100 | [diff] [blame^] | 78 | Should Be Equal ${rc} ${0} |
| 79 | Should Match Regexp ${output} Summary - PASS: \\d+, WARN: \\d+, FAIL: 0, NOT TESTED: \\d+ |