blob: 62d154f4626e13586d93b4f9ef57bf0a87a2e6a5 [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
George Keishingfb762032017-11-14 11:18:21 -060019 [Documentation] System driver information and enable defaults settings.
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 Keishingef74a8c2017-10-20 10:23:52 -050026 Run Keyword And Ignore Error Set Boot Defaults
George Keishingad55a672017-12-12 12:30:44 -060027 Set BMC Power Policy ${ALWAYS_POWER_OFF}
George Keishing3e28ea32017-12-19 03:13:52 -060028 Run Keyword If ${FIELD_MODE} == ${True}
29 ... Enable Field Mode And Verify Unmount
George Keishingef74a8c2017-10-20 10:23:52 -050030
31Set Boot Defaults
32 Set Control Boot Mode ${CONTROL_HOST_URI}/boot ${BOOT_MODE_REGULAR}
33 Set Control Boot Mode
34 ... ${CONTROL_HOST_URI}/boot/one_time ${BOOT_MODE_REGULAR}
George Keishinga47c5d32017-01-09 09:03:17 -060035
George Keishing847a7bf2017-02-09 11:39:47 -060036Log BMC Driver Details
George Keishinga47c5d32017-01-09 09:03:17 -060037 [Documentation] Get BMC driver details and log.
38
George Keishinga47c5d32017-01-09 09:03:17 -060039 ${output} ${stderr}= Execute Command ${DRIVER_CMD}
40 ... return_stderr=True
41 Should Be Empty ${stderr}
42 Log ${output}
43 [Return] ${output}
44
George Keishing847a7bf2017-02-09 11:39:47 -060045Log PNOR Driver Details
George Keishinga47c5d32017-01-09 09:03:17 -060046 [Documentation] Get PNOR driver details and log.
George Keishing90ab1772017-02-24 05:40:55 -060047 # Until the new REST interface is available using pflash to
48 # capture the PNOR details.
Sweta Potthuricd966342017-09-06 03:41:32 -050049 ${software}= Get Host Software Objects Details
50 Log ${software}
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}