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    [Documentation]  Test the OpenBMC buster.
20    Validate Parameters
21    ${output}=  Execute Command
22    ...  find /var/lib -type f |xargs -n 1 touch
23    PDU Power Cycle
24    Wait For Host To Ping  ${OPENBMC_HOST}
25    Sleep   1min
26
27    # Need to re connect the session
28    Open Connection And Log In
29    ${stdout}   ${stderr}   ${rc}=  Execute Command  echo "hello world"
30    ...  return_stderr=True  return_rc=True
31    Should Be Equal As Integers  ${rc}    ${0}
32
33*** Keywords ***
34
35Validate Parameters
36    [Documentation]  Validate the PDU parameters.
37    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}
42