| 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 | 
| George Keishing | ca709b0 | 2017-02-02 11:38:19 -0600 | [diff] [blame] | 9 | Resource        ../lib/state_manager.robot | 
| George Keishing | 92abc99 | 2016-10-18 13:29:25 -0500 | [diff] [blame] | 10 |  | 
| George Keishing | 92abc99 | 2016-10-18 13:29:25 -0500 | [diff] [blame] | 11 | Test Teardown   Test Exit Logs | 
 | 12 |  | 
 | 13 | *** Variables *** | 
 | 14 | ${LOOP_COUNT}    ${50} | 
 | 15 |  | 
 | 16 | *** Test Cases *** | 
 | 17 |  | 
| George Keishing | ca709b0 | 2017-02-02 11:38:19 -0600 | [diff] [blame] | 18 | Run Multiple Power Cycle | 
 | 19 |     [Documentation]  Execute multiple power cycles. | 
 | 20 |     [Setup]  Validate Parameters | 
 | 21 |     [Tags]  Run_Multiple_Power_Cycle | 
| George Keishing | 92abc99 | 2016-10-18 13:29:25 -0500 | [diff] [blame] | 22 |  | 
| George Keishing | ca709b0 | 2017-02-02 11:38:19 -0600 | [diff] [blame] | 23 |     # By default run test for 50 loops, else user input iteration. | 
 | 24 |     # Fails immediately if any of the execution rounds fail and | 
 | 25 |     # check if BMC is still pinging and FFDC is collected. | 
 | 26 |     Repeat Keyword  ${LOOP_COUNT} times  Power Cycle System Via PDU | 
 | 27 |  | 
 | 28 |  | 
 | 29 | Run Multiple Reboot | 
 | 30 |     [Documentation]  Execute multiple reboots. | 
 | 31 |     [Tags]  Run_Multiple_Reboot | 
 | 32 |  | 
 | 33 |     # By default run test for 50 loops, else user input iteration. | 
 | 34 |     # Fails immediately if any of the execution rounds fail and | 
 | 35 |     # check if BMC is still pinging and FFDC is collected. | 
 | 36 |     Repeat Keyword  ${LOOP_COUNT} times  BMC Reboot Cycle | 
| George Keishing | 92abc99 | 2016-10-18 13:29:25 -0500 | [diff] [blame] | 37 |  | 
 | 38 |  | 
 | 39 | *** Keywords *** | 
 | 40 |  | 
| George Keishing | ca709b0 | 2017-02-02 11:38:19 -0600 | [diff] [blame] | 41 | Power Cycle System Via PDU | 
 | 42 |     [Documentation]  Power cycle system and wait for BMC to reach Ready state. | 
 | 43 |     Log  "Doing power cycle" | 
| George Keishing | 92abc99 | 2016-10-18 13:29:25 -0500 | [diff] [blame] | 44 |     PDU Power Cycle | 
| George Keishing | ca709b0 | 2017-02-02 11:38:19 -0600 | [diff] [blame] | 45 |     Check If BMC Is Up  5 min  10 sec | 
| George Keishing | 92abc99 | 2016-10-18 13:29:25 -0500 | [diff] [blame] | 46 |  | 
| George Keishing | ca709b0 | 2017-02-02 11:38:19 -0600 | [diff] [blame] | 47 |     Wait Until Keyword Succeeds  10 min  10 sec  Is BMC Ready | 
 | 48 |  | 
 | 49 |  | 
 | 50 | BMC Reboot Cycle | 
 | 51 |     [Documentation]  Reboot BMC and wait for ready state. | 
 | 52 |     Log  "Doing Reboot cycle" | 
 | 53 |     Initiate BMC Reboot | 
 | 54 |     Wait Until Keyword Succeeds  10 min  10 sec  Is BMC Ready | 
| George Keishing | 92abc99 | 2016-10-18 13:29:25 -0500 | [diff] [blame] | 55 |  | 
 | 56 |  | 
 | 57 | Test Exit Logs | 
 | 58 |     Ping Host  ${OPENBMC_HOST} | 
| Gunnar Mills | eac1af2 | 2016-11-14 15:30:09 -0600 | [diff] [blame] | 59 |     FFDC On Test Case Fail | 
| George Keishing | 92abc99 | 2016-10-18 13:29:25 -0500 | [diff] [blame] | 60 |  | 
 | 61 |  | 
 | 62 | Validate Parameters | 
 | 63 |     Should Not Be Empty   ${PDU_IP} | 
 | 64 |     Should Not Be Empty   ${PDU_TYPE} | 
 | 65 |     Should Not Be Empty   ${PDU_SLOT_NO} | 
 | 66 |     Should Not Be Empty   ${PDU_USERNAME} | 
 | 67 |     Should Not Be Empty   ${PDU_PASSWORD} | 
 | 68 |  |