blob: 8b02797926a2939dadde15c0c6ad393f6b3f5ad0 [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
Joy Onyerikwuf4a807b2018-06-20 08:43:54 -050019 [Documentation] Test the OpenBMC buster.
George Keishing4cfb0a52017-01-11 04:17:28 -060020 Validate Parameters
21 ${output}= Execute Command
22 ... find /var/lib -type f |xargs -n 1 touch
Chris Austenb29d2e82016-06-07 12:25:35 -050023 PDU Power Cycle
George Keishing4cfb0a52017-01-11 04:17:28 -060024 Wait For Host To Ping ${OPENBMC_HOST}
Chris Austenb29d2e82016-06-07 12:25:35 -050025 Sleep 1min
George Keishing4d6c1da2016-07-15 05:51:22 -050026
27 # Need to re connect the session
Chris Austenb29d2e82016-06-07 12:25:35 -050028 Open Connection And Log In
George Keishing4cfb0a52017-01-11 04:17:28 -060029 ${stdout} ${stderr} ${rc}= Execute Command echo "hello world"
30 ... return_stderr=True return_rc=True
31 Should Be Equal As Integers ${rc} ${0}
Chris Austenb29d2e82016-06-07 12:25:35 -050032
33*** Keywords ***
George Keishing4cfb0a52017-01-11 04:17:28 -060034
35Validate Parameters
Joy Onyerikwuf4a807b2018-06-20 08:43:54 -050036 [Documentation] Validate the PDU parameters.
George Keishing4cfb0a52017-01-11 04:17:28 -060037 Should Not Be Empty ${PDU_IP}
38 Should Not Be Empty ${PDU_TYPE}
39 Should Not Be Empty ${PDU_SLOT_NO}
40 Should Not Be Empty ${PDU_USERNAME}
41 Should Not Be Empty ${PDU_PASSWORD}