blob: 6caefe42569d1695c2d5b73ae2cca5856b4f4bc9 [file] [log] [blame]
George Keishing92abc992016-10-18 13:29:25 -05001*** Settings ***
2Documentation Power cycle loop. This is to test where network service
3... becomes unavailable during AC-Cycle stress test.
4
5Resource ../lib/rest_client.robot
6Resource ../lib/pdu/pdu.robot
7Resource ../lib/utils.robot
8Resource ../lib/openbmc_ffdc.robot
George Keishingca709b02017-02-02 11:38:19 -06009Resource ../lib/state_manager.robot
George Keishing92abc992016-10-18 13:29:25 -050010
George Keishing92abc992016-10-18 13:29:25 -050011Test Teardown Test Exit Logs
12
13*** Variables ***
14${LOOP_COUNT} ${50}
15
16*** Test Cases ***
17
George Keishingca709b02017-02-02 11:38:19 -060018Run Multiple Power Cycle
19 [Documentation] Execute multiple power cycles.
20 [Setup] Validate Parameters
21 [Tags] Run_Multiple_Power_Cycle
George Keishing92abc992016-10-18 13:29:25 -050022
George Keishingca709b02017-02-02 11:38:19 -060023 # 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
29Run 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 Keishing92abc992016-10-18 13:29:25 -050037
38
39*** Keywords ***
40
George Keishingca709b02017-02-02 11:38:19 -060041Power Cycle System Via PDU
42 [Documentation] Power cycle system and wait for BMC to reach Ready state.
43 Log "Doing power cycle"
George Keishing92abc992016-10-18 13:29:25 -050044 PDU Power Cycle
George Keishingca709b02017-02-02 11:38:19 -060045 Check If BMC Is Up 5 min 10 sec
George Keishing92abc992016-10-18 13:29:25 -050046
George Keishingca709b02017-02-02 11:38:19 -060047 Wait Until Keyword Succeeds 10 min 10 sec Is BMC Ready
48
49
50BMC 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 Keishing92abc992016-10-18 13:29:25 -050055
56
57Test Exit Logs
58 Ping Host ${OPENBMC_HOST}
Gunnar Millseac1af22016-11-14 15:30:09 -060059 FFDC On Test Case Fail
George Keishing92abc992016-10-18 13:29:25 -050060
61
62Validate 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