blob: d2fa50c1ae021c013fdb709a7772a29ce2701d48 [file] [log] [blame]
Chris Austenb29d2e82016-06-07 12:25:35 -05001*** Settings ***
2
George Keishing4cfb0a52017-01-11 04:17:28 -06003Documentation Test file corruption on hard power cycle.
Chris Austenb29d2e82016-06-07 12:25:35 -05004
George Keishing4d6c1da2016-07-15 05:51:22 -05005Resource ../lib/pdu/pdu.robot
6Resource ../lib/utils.robot
7Resource ../lib/connection_client.robot
George Keishingd55a4be2016-08-26 03:28:17 -05008Resource ../lib/openbmc_ffdc.robot
Chris Austenb29d2e82016-06-07 12:25:35 -05009
George Keishing4d6c1da2016-07-15 05:51:22 -050010Suite Setup Open Connection And Log In
11Suite Teardown Close All Connections
Gunnar Millseac1af22016-11-14 15:30:09 -060012Test Teardown FFDC On Test Case Fail
Chris Austenb29d2e82016-06-07 12:25:35 -050013
14*** Test Cases ***
George Keishing4cfb0a52017-01-11 04:17:28 -060015
16Test OpenBMC Buster
17 Validate Parameters
18 ${output}= Execute Command
19 ... find /var/lib -type f |xargs -n 1 touch
Chris Austenb29d2e82016-06-07 12:25:35 -050020 PDU Power Cycle
George Keishing4cfb0a52017-01-11 04:17:28 -060021 Wait For Host To Ping ${OPENBMC_HOST}
Chris Austenb29d2e82016-06-07 12:25:35 -050022 Sleep 1min
George Keishing4d6c1da2016-07-15 05:51:22 -050023
24 # Need to re connect the session
Chris Austenb29d2e82016-06-07 12:25:35 -050025 Open Connection And Log In
George Keishing4cfb0a52017-01-11 04:17:28 -060026 ${stdout} ${stderr} ${rc}= Execute Command echo "hello world"
27 ... return_stderr=True return_rc=True
28 Should Be Equal As Integers ${rc} ${0}
Chris Austenb29d2e82016-06-07 12:25:35 -050029
30*** Keywords ***
George Keishing4cfb0a52017-01-11 04:17:28 -060031
32Validate Parameters
33 Should Not Be Empty ${PDU_IP}
34 Should Not Be Empty ${PDU_TYPE}
35 Should Not Be Empty ${PDU_SLOT_NO}
36 Should Not Be Empty ${PDU_USERNAME}
37 Should Not Be Empty ${PDU_PASSWORD}