blob: 65d3f741014864d6a985ec59443156a8a74e7564 [file] [log] [blame]
Rahul Maheshwari2483abf2017-07-31 15:25:25 -05001*** Settings ***
2Documentation Module for testing BMC inventory via XCAT.
3
4Resource ../lib/xcat/resource.txt
5Resource ../lib/xcat/xcat_utils.robot
6Resource ../lib/state_manager.robot
7
8Suite Setup XCAT Suite Setup
9
10*** Variables ***
11
12*** Test Cases ***
13
14Verify BMC Version Via XCAT
15 [Documentation] Verify BMC version using XCAT and REST.
16 [Tags] Verify_BMC_Version_Via_XCAT
17
18 # Get BMC version info via xcat
19 ${version_via_xcat}= Execute Command On XCAT rinv firm
20
21 # Get BMC version info via rest
22 ${version_via_rest}= Get BMC Version
23
24 Should contain ${version_via_xcat} ${version_via_rest}
25
26
27*** Keywords ***
28
29XCAT Suite Setup
30 [Documentation] XCAT suite setup.
31
32 Open Connection And Login To XCAT
33
34 # Check if XCAT is installed.
35 ${cmd_output}= Execute Command ${XCAT_DIR_PATH}/lsxcatd -v
36 Should Not Be Empty ${cmd_output} msg=XCAT not installed.
37
38 Add Nodes To XCAT ${OPENBMC_HOST}