blob: 786f9c16bc279cc7b43bc4fa34c407234ae0ebf7 [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
9
10Test Setup Validate Parameters
11Test Teardown Test Exit Logs
12
13*** Variables ***
14${LOOP_COUNT} ${50}
15
16*** Test Cases ***
17
18Test 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
29BMC 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
40Test Exit Logs
41 Ping Host ${OPENBMC_HOST}
42 Log FFDC
43
44
45Validate 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