Rahul Maheshwari | 8dd7ed8 | 2017-03-22 17:11:41 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | |
| 3 | Documentation Test reset reload functionality of BMC. |
| 4 | |
| 5 | Resource ../lib/rest_client.robot |
| 6 | Resource ../lib/state_manager.robot |
| 7 | Resource ../lib/openbmc_ffdc.robot |
| 8 | |
| 9 | Test Setup Open Connection And Log In |
George Keishing | c6f5701 | 2017-12-18 02:32:33 -0600 | [diff] [blame^] | 10 | Test Teardown Test Teardown Execution |
Rahul Maheshwari | 8dd7ed8 | 2017-03-22 17:11:41 -0500 | [diff] [blame] | 11 | |
| 12 | *** Variables *** |
| 13 | |
| 14 | |
| 15 | *** Test Cases *** |
| 16 | |
Rahul Maheshwari | b70a316 | 2017-05-17 04:41:10 -0500 | [diff] [blame] | 17 | Verify BMC Reset Reload With System On |
| 18 | [Documentation] Validate chassis "ON" and host "Running" state is |
| 19 | ... unchanged after BMC reset reload. |
| 20 | [Tags] Verify_BMC_Reset_Reload_With_System_On |
Rahul Maheshwari | 8dd7ed8 | 2017-03-22 17:11:41 -0500 | [diff] [blame] | 21 | |
| 22 | Initiate Host Boot |
Rahul Maheshwari | 8dd7ed8 | 2017-03-22 17:11:41 -0500 | [diff] [blame] | 23 | |
| 24 | Trigger Reset Reload via BMC Reboot |
| 25 | |
George Keishing | c6f5701 | 2017-12-18 02:32:33 -0600 | [diff] [blame^] | 26 | ${rr_status}= Check Reset Reload Status |
Rahul Maheshwari | 8dd7ed8 | 2017-03-22 17:11:41 -0500 | [diff] [blame] | 27 | Should Be Equal ${rr_status} Yes |
| 28 | |
George Keishing | c6f5701 | 2017-12-18 02:32:33 -0600 | [diff] [blame^] | 29 | Wait Until Keyword Succeeds 5 min 10 sec Is OS Booted |
Rahul Maheshwari | b70a316 | 2017-05-17 04:41:10 -0500 | [diff] [blame] | 30 | |
Rahul Maheshwari | 8dd7ed8 | 2017-03-22 17:11:41 -0500 | [diff] [blame] | 31 | |
| 32 | *** Keywords *** |
| 33 | |
| 34 | Check Reset Reload Status |
Gunnar Mills | 28e403b | 2017-10-25 16:16:38 -0500 | [diff] [blame] | 35 | [Documentation] Returns reset reload status based on file presence. |
Rahul Maheshwari | 8dd7ed8 | 2017-03-22 17:11:41 -0500 | [diff] [blame] | 36 | |
| 37 | ${rr_status}= Execute Command On BMC |
| 38 | ... test -e /run/openbmc/chassis@0-on && echo "Yes" || echo "No" |
| 39 | [Return] ${rr_status} |
| 40 | |
| 41 | |
| 42 | Trigger Reset Reload via BMC Reboot |
| 43 | [Documentation] Initiate Reset reload using BMC Reboot. |
| 44 | |
| 45 | Initiate BMC Reboot |
| 46 | Wait Until Keyword Succeeds 10 min 10 sec Is BMC Ready |
| 47 | |
| 48 | |
George Keishing | c6f5701 | 2017-12-18 02:32:33 -0600 | [diff] [blame^] | 49 | Test Teardown Execution |
Rahul Maheshwari | 8dd7ed8 | 2017-03-22 17:11:41 -0500 | [diff] [blame] | 50 | [Documentation] Do the post test teardown. |
| 51 | ... 1. Capture FFDC on test failure. |
| 52 | ... 2. Close all open SSH connections. |
| 53 | |
| 54 | FFDC On Test Case Fail |
| 55 | Close All Connections |