blob: c5c2f990afa9d1862ca2ec565af9fe1121d01471 [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
Sweta Potthuricd966342017-09-06 03:41:32 -05008Resource ../lib/code_update_utils.robot
George Keishinga47c5d32017-01-09 09:03:17 -06009
10Suite Setup System Driver Data
11
12*** Variables ***
13
14${DRIVER_CMD} cat /etc/os-release | grep ^VERSION_ID=
15
16*** Keyword ***
17
18System Driver Data
19 [Documentation] System driver information.
Vijay1a52c992017-09-19 08:37:26 -050020 Run Keyword And Ignore Error Clear System Entry From Knownhosts
George Keishing847a7bf2017-02-09 11:39:47 -060021 Open Connection And Log In
22 Run Keyword And Ignore Error Log BMC Driver Details
23 Run Keyword And Ignore Error Log PNOR Driver Details
24 Run Keyword And Ignore Error Log BMC Model
George Keishing7a520222017-02-27 09:44:30 -060025 Run Keyword And Ignore Error Enable Core Dump On BMC
George Keishinga47c5d32017-01-09 09:03:17 -060026
George Keishing847a7bf2017-02-09 11:39:47 -060027Log BMC Driver Details
George Keishinga47c5d32017-01-09 09:03:17 -060028 [Documentation] Get BMC driver details and log.
29
George Keishinga47c5d32017-01-09 09:03:17 -060030 ${output} ${stderr}= Execute Command ${DRIVER_CMD}
31 ... return_stderr=True
32 Should Be Empty ${stderr}
33 Log ${output}
34 [Return] ${output}
35
George Keishing847a7bf2017-02-09 11:39:47 -060036Log PNOR Driver Details
George Keishinga47c5d32017-01-09 09:03:17 -060037 [Documentation] Get PNOR driver details and log.
George Keishing90ab1772017-02-24 05:40:55 -060038 # Until the new REST interface is available using pflash to
39 # capture the PNOR details.
Sweta Potthuricd966342017-09-06 03:41:32 -050040 ${software}= Get Host Software Objects Details
41 Log ${software}
George Keishing847a7bf2017-02-09 11:39:47 -060042
43Log BMC Model
44 [Documentation] Fetch BMC Model name from system and log.
45 ${bmc_model}= Get BMC System Model
46 Log BMC Model=${bmc_model}