blob: 0925946266f8828843ba2bcbc394c1835676d6ea [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 Keishinga47c5d32017-01-09 09:03:17 -060023
George Keishing847a7bf2017-02-09 11:39:47 -060024Log BMC Driver Details
George Keishinga47c5d32017-01-09 09:03:17 -060025 [Documentation] Get BMC driver details and log.
26
George Keishinga47c5d32017-01-09 09:03:17 -060027 ${output} ${stderr}= Execute Command ${DRIVER_CMD}
28 ... return_stderr=True
29 Should Be Empty ${stderr}
30 Log ${output}
31 [Return] ${output}
32
33
George Keishing847a7bf2017-02-09 11:39:47 -060034Log PNOR Driver Details
George Keishinga47c5d32017-01-09 09:03:17 -060035 [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 Keishing847a7bf2017-02-09 11:39:47 -060051
52Log 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