blob: 9ff1295ea8e720ce69488d206eedbad86f5552bb [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
Sweta Potthuri5db43e42017-06-15 05:36:44 -050014Force Tags AC_Cycles
15
Chris Austenb29d2e82016-06-07 12:25:35 -050016*** Test Cases ***
George Keishing4cfb0a52017-01-11 04:17:28 -060017
18Test OpenBMC Buster
19 Validate Parameters
20 ${output}= Execute Command
21 ... find /var/lib -type f |xargs -n 1 touch
Chris Austenb29d2e82016-06-07 12:25:35 -050022 PDU Power Cycle
George Keishing4cfb0a52017-01-11 04:17:28 -060023 Wait For Host To Ping ${OPENBMC_HOST}
Chris Austenb29d2e82016-06-07 12:25:35 -050024 Sleep 1min
George Keishing4d6c1da2016-07-15 05:51:22 -050025
26 # Need to re connect the session
Chris Austenb29d2e82016-06-07 12:25:35 -050027 Open Connection And Log In
George Keishing4cfb0a52017-01-11 04:17:28 -060028 ${stdout} ${stderr} ${rc}= Execute Command echo "hello world"
29 ... return_stderr=True return_rc=True
30 Should Be Equal As Integers ${rc} ${0}
Chris Austenb29d2e82016-06-07 12:25:35 -050031
32*** Keywords ***
George Keishing4cfb0a52017-01-11 04:17:28 -060033
34Validate Parameters
35 Should Not Be Empty ${PDU_IP}
36 Should Not Be Empty ${PDU_TYPE}
37 Should Not Be Empty ${PDU_SLOT_NO}
38 Should Not Be Empty ${PDU_USERNAME}
39 Should Not Be Empty ${PDU_PASSWORD}