blob: c2ee90a1448f4caa9071b74506032a287c74f8a1 [file] [log] [blame]
George Keishinga47c5d32017-01-09 09:03:17 -06001*** Settings ***
2Documentation Set metadata for test suite.
3
4Library SSHLibrary
5Resource ../lib/connection_client.robot
6Resource ../lib/rest_client.robot
George Keishing847a7bf2017-02-09 11:39:47 -06007Resource ../lib/utils.robot
George Keishinga47c5d32017-01-09 09:03:17 -06008
9Suite Setup System Driver Data
10
11*** Variables ***
12
13${DRIVER_CMD} cat /etc/os-release | grep ^VERSION_ID=
14
15*** Keyword ***
16
17System Driver Data
18 [Documentation] System driver information.
George Keishing847a7bf2017-02-09 11:39:47 -060019 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 Keishing7a520222017-02-27 09:44:30 -060023 Run Keyword And Ignore Error Enable Core Dump On BMC
George Keishinga47c5d32017-01-09 09:03:17 -060024
George Keishing847a7bf2017-02-09 11:39:47 -060025Log BMC Driver Details
George Keishinga47c5d32017-01-09 09:03:17 -060026 [Documentation] Get BMC driver details and log.
27
George Keishinga47c5d32017-01-09 09:03:17 -060028 ${output} ${stderr}= Execute Command ${DRIVER_CMD}
29 ... return_stderr=True
30 Should Be Empty ${stderr}
31 Log ${output}
32 [Return] ${output}
33
34
George Keishing847a7bf2017-02-09 11:39:47 -060035Log PNOR Driver Details
George Keishinga47c5d32017-01-09 09:03:17 -060036 [Documentation] Get PNOR driver details and log.
37 ${resp}=
38 ... OpenBMC Get Request ${INVENTORY_URI}system/bios
39 Should Be Equal As Strings ${resp.status_code} ${HTTP_OK}
40 ${jsondata}= To Json ${resp.content}
41 Log ${jsondata["data"]["Name"]}
42 Log ${jsondata["data"]["Version"]}
43 Log ${jsondata["data"]["Custom Field 1"]}
44 Log ${jsondata["data"]["Custom Field 2"]}
45 Log ${jsondata["data"]["Custom Field 3"]}
46 Log ${jsondata["data"]["Custom Field 4"]}
47 Log ${jsondata["data"]["Custom Field 5"]}
48 Log ${jsondata["data"]["Custom Field 6"]}
49 Log ${jsondata["data"]["Custom Field 7"]}
50 Log ${jsondata["data"]["Custom Field 8"]}
51
George Keishing847a7bf2017-02-09 11:39:47 -060052
53Log BMC Model
54 [Documentation] Fetch BMC Model name from system and log.
55 ${bmc_model}= Get BMC System Model
56 Log BMC Model=${bmc_model}
57