George Keishing | 22872e5 | 2019-01-30 22:44:04 -0600 | [diff] [blame] | 1 | *** Settings *** |
Joy Onyerikwu | dbfe97d | 2019-03-11 19:44:56 -0500 | [diff] [blame] | 2 | Documentation Test BMC Manager functionality. |
George Keishing | 2db7bca | 2019-02-14 13:03:08 -0600 | [diff] [blame] | 3 | Resource ../../lib/resource.robot |
George Keishing | 22872e5 | 2019-01-30 22:44:04 -0600 | [diff] [blame] | 4 | Resource ../../lib/bmc_redfish_resource.robot |
| 5 | Resource ../../lib/common_utils.robot |
George Keishing | 3298d5c | 2019-02-12 06:59:25 -0600 | [diff] [blame] | 6 | Resource ../../lib/openbmc_ffdc.robot |
George Keishing | ba0441c | 2019-03-09 22:22:57 -0600 | [diff] [blame] | 7 | Resource ../../lib/boot_utils.robot |
George Keishing | 44f890b | 2019-04-22 13:32:15 -0500 | [diff] [blame] | 8 | Resource ../../lib/open_power_utils.robot |
George Keishing | 22872e5 | 2019-01-30 22:44:04 -0600 | [diff] [blame] | 9 | |
George Keishing | 97c9394 | 2019-03-04 12:45:07 -0600 | [diff] [blame] | 10 | Test Setup Test Setup Execution |
George Keishing | 49f4633 | 2019-03-26 08:13:05 -0500 | [diff] [blame] | 11 | Test Teardown Test Teardown Execution |
George Keishing | 22872e5 | 2019-01-30 22:44:04 -0600 | [diff] [blame] | 12 | |
| 13 | *** Test Cases *** |
| 14 | |
George Keishing | 5ee33d9 | 2019-02-02 12:33:25 -0600 | [diff] [blame] | 15 | Verify Redfish BMC Firmware Version |
George Keishing | 22872e5 | 2019-01-30 22:44:04 -0600 | [diff] [blame] | 16 | [Documentation] Get firmware version from BMC manager. |
George Keishing | 5ee33d9 | 2019-02-02 12:33:25 -0600 | [diff] [blame] | 17 | [Tags] Verify_Redfish_BMC_Firmware_Version |
George Keishing | 22872e5 | 2019-01-30 22:44:04 -0600 | [diff] [blame] | 18 | |
George Keishing | 97c9394 | 2019-03-04 12:45:07 -0600 | [diff] [blame] | 19 | Redfish.Login |
| 20 | ${resp}= Redfish.Get /redfish/v1/Managers/bmc |
George Keishing | 22872e5 | 2019-01-30 22:44:04 -0600 | [diff] [blame] | 21 | Should Be Equal As Strings ${resp.status} ${HTTP_OK} |
| 22 | ${bmc_version}= Get BMC Version |
| 23 | Should Be Equal As Strings |
| 24 | ... ${resp.dict["FirmwareVersion"]} ${bmc_version.strip('"')} |
George Keishing | 22872e5 | 2019-01-30 22:44:04 -0600 | [diff] [blame] | 25 | |
| 26 | |
George Keishing | 5ee33d9 | 2019-02-02 12:33:25 -0600 | [diff] [blame] | 27 | Verify Redfish BMC Manager Properties |
George Keishing | 22872e5 | 2019-01-30 22:44:04 -0600 | [diff] [blame] | 28 | [Documentation] Verify BMC managers resource properties. |
George Keishing | 5ee33d9 | 2019-02-02 12:33:25 -0600 | [diff] [blame] | 29 | [Tags] Verify_Redfish_BMC_Manager_Properties |
George Keishing | 22872e5 | 2019-01-30 22:44:04 -0600 | [diff] [blame] | 30 | |
George Keishing | 97c9394 | 2019-03-04 12:45:07 -0600 | [diff] [blame] | 31 | Redfish.Login |
| 32 | ${resp}= Redfish.Get /redfish/v1/Managers/bmc |
George Keishing | 22872e5 | 2019-01-30 22:44:04 -0600 | [diff] [blame] | 33 | Should Be Equal As Strings ${resp.status} ${HTTP_OK} |
| 34 | # Example: |
| 35 | # "Description": "Baseboard Management Controller" |
| 36 | # "Id": "bmc" |
| 37 | # "Model": "OpenBmc", |
| 38 | # "Name": "OpenBmc Manager", |
| 39 | # "UUID": "xxxxxxxx-xxx-xxx-xxx-xxxxxxxxxxxx" |
| 40 | # "PowerState": "On" |
| 41 | |
| 42 | Should Be Equal As Strings |
| 43 | ... ${resp.dict["Description"]} Baseboard Management Controller |
| 44 | Should Be Equal As Strings ${resp.dict["Id"]} bmc |
| 45 | Should Be Equal As Strings ${resp.dict["Model"]} OpenBmc |
| 46 | Should Be Equal As Strings ${resp.dict["Name"]} OpenBmc Manager |
| 47 | Should Not Be Empty ${resp.dict["UUID"]} |
| 48 | Should Be Equal As Strings ${resp.dict["PowerState"]} On |
George Keishing | 22872e5 | 2019-01-30 22:44:04 -0600 | [diff] [blame] | 49 | |
| 50 | |
George Keishing | ba0441c | 2019-03-09 22:22:57 -0600 | [diff] [blame] | 51 | Redfish BMC Manager GracefulRestart When Host Off |
| 52 | [Documentation] BMC graceful restart when host is powered off. |
| 53 | [Tags] Redfish_BMC_Manager_GracefulRestart_When_Host_Off |
George Keishing | 22872e5 | 2019-01-30 22:44:04 -0600 | [diff] [blame] | 54 | |
George Keishing | 22872e5 | 2019-01-30 22:44:04 -0600 | [diff] [blame] | 55 | # "Actions": { |
| 56 | # "#Manager.Reset": { |
| 57 | # "ResetType@Redfish.AllowableValues": [ |
| 58 | # "GracefulRestart" |
| 59 | # ], |
| 60 | # "target": "/redfish/v1/Managers/bmc/Actions/Manager.Reset" |
| 61 | # } |
| 62 | |
George Keishing | ba0441c | 2019-03-09 22:22:57 -0600 | [diff] [blame] | 63 | Redfish OBMC Reboot (off) |
George Keishing | 22872e5 | 2019-01-30 22:44:04 -0600 | [diff] [blame] | 64 | |
George Keishing | ba0441c | 2019-03-09 22:22:57 -0600 | [diff] [blame] | 65 | |
| 66 | Redfish BMC Manager GracefulRestart When Host Booted |
| 67 | [Documentation] BMC graceful restart when host is running. |
| 68 | [Tags] Redfish_BMC_Manager_GracefulRestart_When_Host_Booted |
| 69 | |
| 70 | Redfish OBMC Reboot (run) |
| 71 | |
George Keishing | 44f890b | 2019-04-22 13:32:15 -0500 | [diff] [blame] | 72 | # TODO: Replace OCC state check with redfish property when available. |
| 73 | Verify OCC State |
| 74 | |
George Keishing | 22872e5 | 2019-01-30 22:44:04 -0600 | [diff] [blame] | 75 | |
George Keishing | 97c9394 | 2019-03-04 12:45:07 -0600 | [diff] [blame] | 76 | *** Keywords *** |
George Keishing | 22872e5 | 2019-01-30 22:44:04 -0600 | [diff] [blame] | 77 | |
George Keishing | 97c9394 | 2019-03-04 12:45:07 -0600 | [diff] [blame] | 78 | Test Setup Execution |
| 79 | [Documentation] Do test case setup tasks. |
| 80 | |
| 81 | redfish.Login |
| 82 | |
| 83 | |
| 84 | Test Teardown Execution |
| 85 | [Documentation] Do the post test teardown. |
| 86 | |
| 87 | FFDC On Test Case Fail |
| 88 | redfish.Logout |