1 ##############################################################################
2 # Copyright (c) 2019 AT&T Intellectual Property. #
3 # Copyright (c) 2019 Nokia. #
5 # Licensed under the Apache License, Version 2.0 (the "License"); #
6 # you maynot use this file except in compliance with the License. #
8 # You may obtain a copy of the License at #
9 # http://www.apache.org/licenses/LICENSE-2.0 #
11 # Unless required by applicable law or agreed to in writing, software #
12 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT #
13 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
14 # See the License for the specific language governing permissions and #
15 # limitations under the License. #
16 ##############################################################################
20 Documentation Check BIOS and HW details
22 Library OperatingSystem
23 Suite Setup Open Connection And Log In
24 Suite Teardown Close All Connections
28 #${USERNAME} localadmin
29 #${SYSINFO} PowerEdge R740xd
31 ${SSH_KEYFILE} /root/.ssh/id_rsa
32 ${LOG} ${LOG_PATH}${/}${SUITE_NAME.replace(' ','_')}.log
36 [Documentation] Verify HW details
37 Start Command dmidecode | grep -A3 '^System Information' sudo=True
38 ${stdout}= Read Command Output
39 Append To File ${LOG} ${stdout}${\n}
40 Should Contain ${stdout} ${SYSINFO}
43 [Documentation] Verify BIOS Revision
44 Start Command dmidecode | more | grep 'BIOS Revision' sudo=True
45 ${stdout}= Read Command Output
46 Append To File ${LOG} ${stdout}${\n}
47 Should Contain ${stdout} BIOS Revision: ${BIOS_REVISION}
50 [Documentation] NUMAs and CPU components
51 ${output}= Execute Command lscpu
52 Append To File ${LOG} ${output}${\n}
53 Should Contain ${output} CPU(s): 88
56 [Documentation] Reads the sysfs filesystem
57 ${output}= Execute Command lsblk
58 Append To File ${LOG} ${output}${\n}
59 Should Contain ${output} sdg4
62 Open Connection And Log In
63 Open Connection ${HOST}
64 Login With Public Key ${USERNAME} ${SSH_KEYFILE}