George Keishing | 3df030f | 2017-12-09 13:24:41 -0600 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Documentation Test suite to verify if the Robot setup is ready for use. |
| 3 | |
Sandhya Somashekar | 839a0c2 | 2019-01-31 05:05:43 -0600 | [diff] [blame] | 4 | Resource ../lib/resource.robot |
George Keishing | 3df030f | 2017-12-09 13:24:41 -0600 | [diff] [blame] | 5 | Resource ../lib/rest_client.robot |
| 6 | Resource ../lib/connection_client.robot |
| 7 | Resource ../lib/ipmi_client.robot |
George Keishing | 998c16c | 2019-12-11 11:22:58 -0600 | [diff] [blame] | 8 | Resource ../lib/bmc_redfish_resource.robot |
George Keishing | 3df030f | 2017-12-09 13:24:41 -0600 | [diff] [blame] | 9 | |
| 10 | *** Test Cases *** |
| 11 | |
George Keishing | 998c16c | 2019-12-11 11:22:58 -0600 | [diff] [blame] | 12 | Test Redfish Setup |
| 13 | [Documentation] Verify Redfish works. |
George Keishing | 3df030f | 2017-12-09 13:24:41 -0600 | [diff] [blame] | 14 | |
George Keishing | 998c16c | 2019-12-11 11:22:58 -0600 | [diff] [blame] | 15 | Redfish.Login |
| 16 | Redfish.Get /redfish/v1/ |
| 17 | Redfish.Logout |
| 18 | |
| 19 | |
| 20 | Test REST Setup |
| 21 | [Documentation] Verify REST works. |
George Keishing | 3df030f | 2017-12-09 13:24:41 -0600 | [diff] [blame] | 22 | |
| 23 | # REST Connection and request. |
| 24 | Initialize OpenBMC |
| 25 | # Raw GET REST operation to verify session is established. |
| 26 | ${resp}= Get Request openbmc /xyz/openbmc_project/ |
| 27 | Should Be Equal As Strings ${resp.status_code} ${HTTP_OK} |
| 28 | ${content}= To JSON ${resp.content} pretty_print=True |
| 29 | Log To Console \n ${content} |
| 30 | |
George Keishing | 3df030f | 2017-12-09 13:24:41 -0600 | [diff] [blame] | 31 | |
George Keishing | 998c16c | 2019-12-11 11:22:58 -0600 | [diff] [blame] | 32 | Test SSH Setup |
| 33 | [Documentation] Verify SSH works. |
George Keishing | 3df030f | 2017-12-09 13:24:41 -0600 | [diff] [blame] | 34 | |
George Keishing | 998c16c | 2019-12-11 11:22:58 -0600 | [diff] [blame] | 35 | BMC Execute Command uname -a |
George Keishing | 3df030f | 2017-12-09 13:24:41 -0600 | [diff] [blame] | 36 | |
George Keishing | 998c16c | 2019-12-11 11:22:58 -0600 | [diff] [blame] | 37 | |
| 38 | Test IPMI Setup |
| 39 | [Documentation] Verify Out-of-band works. |
| 40 | |
George Keishing | 3df030f | 2017-12-09 13:24:41 -0600 | [diff] [blame] | 41 | ${chassis_status}= Run IPMI Standard Command chassis status |
| 42 | Log To Console \n ${chassis_status} |