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 | |
Sweta Potthuri | 5db43e4 | 2017-06-15 05:36:44 -0500 | [diff] [blame] | 14 | Force Tags AC_Cycles |
| 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. |
George Keishing | 4cfb0a5 | 2017-01-11 04:17:28 -0600 | [diff] [blame] | 20 | Validate Parameters |
| 21 | ${output}= Execute Command |
| 22 | ... find /var/lib -type f |xargs -n 1 touch |
Chris Austen | b29d2e8 | 2016-06-07 12:25:35 -0500 | [diff] [blame] | 23 | PDU Power Cycle |
George Keishing | 4cfb0a5 | 2017-01-11 04:17:28 -0600 | [diff] [blame] | 24 | Wait For Host To Ping ${OPENBMC_HOST} |
Chris Austen | b29d2e8 | 2016-06-07 12:25:35 -0500 | [diff] [blame] | 25 | Sleep 1min |
George Keishing | 4d6c1da | 2016-07-15 05:51:22 -0500 | [diff] [blame] | 26 | |
| 27 | # Need to re connect the session |
Chris Austen | b29d2e8 | 2016-06-07 12:25:35 -0500 | [diff] [blame] | 28 | Open Connection And Log In |
George Keishing | 4cfb0a5 | 2017-01-11 04:17:28 -0600 | [diff] [blame] | 29 | ${stdout} ${stderr} ${rc}= Execute Command echo "hello world" |
| 30 | ... return_stderr=True return_rc=True |
| 31 | Should Be Equal As Integers ${rc} ${0} |
Chris Austen | b29d2e8 | 2016-06-07 12:25:35 -0500 | [diff] [blame] | 32 | |
| 33 | *** Keywords *** |
George Keishing | 4cfb0a5 | 2017-01-11 04:17:28 -0600 | [diff] [blame] | 34 | |
| 35 | Validate Parameters |
Joy Onyerikwu | f4a807b | 2018-06-20 08:43:54 -0500 | [diff] [blame] | 36 | [Documentation] Validate the PDU parameters. |
George Keishing | 4cfb0a5 | 2017-01-11 04:17:28 -0600 | [diff] [blame] | 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} |