Chris Austen | b29d2e8 | 2016-06-07 12:25:35 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | |
George Keishing | 4cfb0a5 | 2017-01-11 04:17:28 -0600 | [diff] [blame] | 3 | Documentation Test file corruption on hard power cycle. |
Chris Austen | b29d2e8 | 2016-06-07 12:25:35 -0500 | [diff] [blame] | 4 | |
George Keishing | 4d6c1da | 2016-07-15 05:51:22 -0500 | [diff] [blame] | 5 | Resource ../lib/pdu/pdu.robot |
| 6 | Resource ../lib/utils.robot |
| 7 | Resource ../lib/connection_client.robot |
George Keishing | d55a4be | 2016-08-26 03:28:17 -0500 | [diff] [blame] | 8 | Resource ../lib/openbmc_ffdc.robot |
Chris Austen | b29d2e8 | 2016-06-07 12:25:35 -0500 | [diff] [blame] | 9 | |
George Keishing | 4d6c1da | 2016-07-15 05:51:22 -0500 | [diff] [blame] | 10 | Suite Setup Open Connection And Log In |
| 11 | Suite Teardown Close All Connections |
Gunnar Mills | eac1af2 | 2016-11-14 15:30:09 -0600 | [diff] [blame] | 12 | Test Teardown FFDC On Test Case Fail |
Chris Austen | b29d2e8 | 2016-06-07 12:25:35 -0500 | [diff] [blame] | 13 | |
Matt Fischer | 6fb70d9 | 2023-10-24 19:06:33 -0600 | [diff] [blame] | 14 | Test Tags AC_Cycles |
Sweta Potthuri | 5db43e4 | 2017-06-15 05:36:44 -0500 | [diff] [blame] | 15 | |
Chris Austen | b29d2e8 | 2016-06-07 12:25:35 -0500 | [diff] [blame] | 16 | *** Test Cases *** |
George Keishing | 4cfb0a5 | 2017-01-11 04:17:28 -0600 | [diff] [blame] | 17 | |
| 18 | Test OpenBMC Buster |
Joy Onyerikwu | f4a807b | 2018-06-20 08:43:54 -0500 | [diff] [blame] | 19 | [Documentation] Test the OpenBMC buster. |
Sridevi Ramesh | b0208f2 | 2025-02-17 04:38:17 -0600 | [diff] [blame^] | 20 | [Tags] Test_OpenBMC_Buster |
| 21 | |
| 22 | Validate PDU Parameters |
George Keishing | 4cfb0a5 | 2017-01-11 04:17:28 -0600 | [diff] [blame] | 23 | ${output}= Execute Command |
| 24 | ... find /var/lib -type f |xargs -n 1 touch |
Chris Austen | b29d2e8 | 2016-06-07 12:25:35 -0500 | [diff] [blame] | 25 | PDU Power Cycle |
George Keishing | 4cfb0a5 | 2017-01-11 04:17:28 -0600 | [diff] [blame] | 26 | Wait For Host To Ping ${OPENBMC_HOST} |
Chris Austen | b29d2e8 | 2016-06-07 12:25:35 -0500 | [diff] [blame] | 27 | Sleep 1min |
George Keishing | 4d6c1da | 2016-07-15 05:51:22 -0500 | [diff] [blame] | 28 | |
| 29 | # Need to re connect the session |
Chris Austen | b29d2e8 | 2016-06-07 12:25:35 -0500 | [diff] [blame] | 30 | Open Connection And Log In |
George Keishing | 4cfb0a5 | 2017-01-11 04:17:28 -0600 | [diff] [blame] | 31 | ${stdout} ${stderr} ${rc}= Execute Command echo "hello world" |
| 32 | ... return_stderr=True return_rc=True |
| 33 | Should Be Equal As Integers ${rc} ${0} |
Chris Austen | b29d2e8 | 2016-06-07 12:25:35 -0500 | [diff] [blame] | 34 | |
| 35 | *** Keywords *** |
George Keishing | 4cfb0a5 | 2017-01-11 04:17:28 -0600 | [diff] [blame] | 36 | |
Sridevi Ramesh | b0208f2 | 2025-02-17 04:38:17 -0600 | [diff] [blame^] | 37 | Validate PDU Parameters |
Joy Onyerikwu | f4a807b | 2018-06-20 08:43:54 -0500 | [diff] [blame] | 38 | [Documentation] Validate the PDU parameters. |
Sridevi Ramesh | b0208f2 | 2025-02-17 04:38:17 -0600 | [diff] [blame^] | 39 | |
George Keishing | 4cfb0a5 | 2017-01-11 04:17:28 -0600 | [diff] [blame] | 40 | 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} |