George Keishing | 92abc99 | 2016-10-18 13:29:25 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Documentation Power cycle loop. This is to test where network service |
| 3 | ... becomes unavailable during AC-Cycle stress test. |
| 4 | |
| 5 | Resource ../lib/rest_client.robot |
| 6 | Resource ../lib/pdu/pdu.robot |
| 7 | Resource ../lib/utils.robot |
| 8 | Resource ../lib/openbmc_ffdc.robot |
| 9 | |
| 10 | Test Setup Validate Parameters |
| 11 | Test Teardown Test Exit Logs |
| 12 | |
| 13 | *** Variables *** |
| 14 | ${LOOP_COUNT} ${50} |
| 15 | |
| 16 | *** Test Cases *** |
| 17 | |
| 18 | Test Power Cycle |
| 19 | [Documentation] By default run test for 50 loops, else user |
| 20 | ... input iteration. Fails immediately if any |
| 21 | ... of the execution rounds fail and checks if |
| 22 | ... BMC is still pinging and FFDC is collected. |
| 23 | |
| 24 | Repeat Keyword ${LOOP_COUNT} times BMC Power cycle |
| 25 | |
| 26 | |
| 27 | *** Keywords *** |
| 28 | |
| 29 | BMC Power cycle |
| 30 | [Documentation] Power cycle and wait for BMC to come |
| 31 | ... online to BMC_READY state. |
| 32 | Log "Doing power cycle" |
| 33 | PDU Power Cycle |
| 34 | Check If BMC is Up 5 min 10 sec |
| 35 | |
| 36 | Wait Until Keyword Succeeds |
| 37 | ... 10 min 10 sec Verify BMC State BMC_READY |
| 38 | |
| 39 | |
| 40 | Test Exit Logs |
| 41 | Ping Host ${OPENBMC_HOST} |
Gunnar Mills | eac1af2 | 2016-11-14 15:30:09 -0600 | [diff] [blame] | 42 | FFDC On Test Case Fail |
George Keishing | 92abc99 | 2016-10-18 13:29:25 -0500 | [diff] [blame] | 43 | |
| 44 | |
| 45 | Validate Parameters |
| 46 | Should Not Be Empty ${PDU_IP} |
| 47 | Should Not Be Empty ${PDU_TYPE} |
| 48 | Should Not Be Empty ${PDU_SLOT_NO} |
| 49 | Should Not Be Empty ${PDU_USERNAME} |
| 50 | Should Not Be Empty ${PDU_PASSWORD} |
| 51 | |