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
14*** Test Cases ***
15
16Test OpenBMC Buster
17    Validate Parameters
18    ${output}=  Execute Command
19    ...  find /var/lib -type f |xargs -n 1 touch
20    PDU Power Cycle
21    Wait For Host To Ping  ${OPENBMC_HOST}
22    Sleep   1min
23
24    # Need to re connect the session
25    Open Connection And Log In
26    ${stdout}   ${stderr}   ${rc}=  Execute Command  echo "hello world"
27    ...  return_stderr=True  return_rc=True
28    Should Be Equal As Integers  ${rc}    ${0}
29
30*** Keywords ***
31
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}
38