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