1*** Settings ***
2
3Documentation     Test file corruption on hard power cycle.
4
5Resource          ../lib/pdu/pdu.robot
6Resource          ../lib/utils.robot
7Resource          ../lib/connection_client.robot
8Resource          ../lib/openbmc_ffdc.robot
9
10Suite Setup       Open Connection And Log In
11Suite Teardown    Close All Connections
12Test Teardown     FFDC On Test Case Fail
13
14Force Tags  AC_Cycles
15
16*** Test Cases ***
17
18Test OpenBMC Buster
19    Validate Parameters
20    ${output}=  Execute Command
21    ...  find /var/lib -type f |xargs -n 1 touch
22    PDU Power Cycle
23    Wait For Host To Ping  ${OPENBMC_HOST}
24    Sleep   1min
25
26    # Need to re connect the session
27    Open Connection And Log In
28    ${stdout}   ${stderr}   ${rc}=  Execute Command  echo "hello world"
29    ...  return_stderr=True  return_rc=True
30    Should Be Equal As Integers  ${rc}    ${0}
31
32*** Keywords ***
33
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}
40