blob: 65e66d64adb27e40df70350adf2cd508c38c2080 [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
Matt Fischer6fb70d92023-10-24 19:06:33 -060014Test Tags AC_Cycles
Sweta Potthuri5db43e42017-06-15 05:36:44 -050015
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.
Sridevi Rameshb0208f22025-02-17 04:38:17 -060020 [Tags] Test_OpenBMC_Buster
21
22 Validate PDU Parameters
George Keishing4cfb0a52017-01-11 04:17:28 -060023 ${output}= Execute Command
24 ... find /var/lib -type f |xargs -n 1 touch
Chris Austenb29d2e82016-06-07 12:25:35 -050025 PDU Power Cycle
George Keishing4cfb0a52017-01-11 04:17:28 -060026 Wait For Host To Ping ${OPENBMC_HOST}
Chris Austenb29d2e82016-06-07 12:25:35 -050027 Sleep 1min
George Keishing4d6c1da2016-07-15 05:51:22 -050028
29 # Need to re connect the session
Chris Austenb29d2e82016-06-07 12:25:35 -050030 Open Connection And Log In
George Keishing4cfb0a52017-01-11 04:17:28 -060031 ${stdout} ${stderr} ${rc}= Execute Command echo "hello world"
32 ... return_stderr=True return_rc=True
33 Should Be Equal As Integers ${rc} ${0}
Chris Austenb29d2e82016-06-07 12:25:35 -050034
35*** Keywords ***
George Keishing4cfb0a52017-01-11 04:17:28 -060036
Sridevi Rameshb0208f22025-02-17 04:38:17 -060037Validate PDU Parameters
Joy Onyerikwuf4a807b2018-06-20 08:43:54 -050038 [Documentation] Validate the PDU parameters.
Sridevi Rameshb0208f22025-02-17 04:38:17 -060039
George Keishing4cfb0a52017-01-11 04:17:28 -060040 Should Not Be Empty ${PDU_IP}
41 Should Not Be Empty ${PDU_TYPE}
42 Should Not Be Empty ${PDU_SLOT_NO}
43 Should Not Be Empty ${PDU_USERNAME}
44 Should Not Be Empty ${PDU_PASSWORD}