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