George Keishing | a47c5d3 | 2017-01-09 09:03:17 -0600 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Documentation Set metadata for test suite. |
| 3 | |
| 4 | Library SSHLibrary |
| 5 | Resource ../lib/connection_client.robot |
| 6 | Resource ../lib/rest_client.robot |
George Keishing | 847a7bf | 2017-02-09 11:39:47 -0600 | [diff] [blame] | 7 | Resource ../lib/utils.robot |
George Keishing | a47c5d3 | 2017-01-09 09:03:17 -0600 | [diff] [blame] | 8 | |
| 9 | Suite Setup System Driver Data |
| 10 | |
| 11 | *** Variables *** |
| 12 | |
| 13 | ${DRIVER_CMD} cat /etc/os-release | grep ^VERSION_ID= |
| 14 | |
| 15 | *** Keyword *** |
| 16 | |
| 17 | System Driver Data |
| 18 | [Documentation] System driver information. |
George Keishing | 847a7bf | 2017-02-09 11:39:47 -0600 | [diff] [blame] | 19 | Open Connection And Log In |
| 20 | Run Keyword And Ignore Error Log BMC Driver Details |
| 21 | Run Keyword And Ignore Error Log PNOR Driver Details |
| 22 | Run Keyword And Ignore Error Log BMC Model |
George Keishing | a47c5d3 | 2017-01-09 09:03:17 -0600 | [diff] [blame] | 23 | |
George Keishing | 847a7bf | 2017-02-09 11:39:47 -0600 | [diff] [blame] | 24 | Log BMC Driver Details |
George Keishing | a47c5d3 | 2017-01-09 09:03:17 -0600 | [diff] [blame] | 25 | [Documentation] Get BMC driver details and log. |
| 26 | |
George Keishing | a47c5d3 | 2017-01-09 09:03:17 -0600 | [diff] [blame] | 27 | ${output} ${stderr}= Execute Command ${DRIVER_CMD} |
| 28 | ... return_stderr=True |
| 29 | Should Be Empty ${stderr} |
| 30 | Log ${output} |
| 31 | [Return] ${output} |
| 32 | |
| 33 | |
George Keishing | 847a7bf | 2017-02-09 11:39:47 -0600 | [diff] [blame] | 34 | Log PNOR Driver Details |
George Keishing | a47c5d3 | 2017-01-09 09:03:17 -0600 | [diff] [blame] | 35 | [Documentation] Get PNOR driver details and log. |
| 36 | ${resp}= |
| 37 | ... OpenBMC Get Request ${INVENTORY_URI}system/bios |
| 38 | Should Be Equal As Strings ${resp.status_code} ${HTTP_OK} |
| 39 | ${jsondata}= To Json ${resp.content} |
| 40 | Log ${jsondata["data"]["Name"]} |
| 41 | Log ${jsondata["data"]["Version"]} |
| 42 | Log ${jsondata["data"]["Custom Field 1"]} |
| 43 | Log ${jsondata["data"]["Custom Field 2"]} |
| 44 | Log ${jsondata["data"]["Custom Field 3"]} |
| 45 | Log ${jsondata["data"]["Custom Field 4"]} |
| 46 | Log ${jsondata["data"]["Custom Field 5"]} |
| 47 | Log ${jsondata["data"]["Custom Field 6"]} |
| 48 | Log ${jsondata["data"]["Custom Field 7"]} |
| 49 | Log ${jsondata["data"]["Custom Field 8"]} |
| 50 | |
George Keishing | 847a7bf | 2017-02-09 11:39:47 -0600 | [diff] [blame] | 51 | |
| 52 | Log BMC Model |
| 53 | [Documentation] Fetch BMC Model name from system and log. |
| 54 | ${bmc_model}= Get BMC System Model |
| 55 | Log BMC Model=${bmc_model} |
| 56 | |