blob: c8a9f9470db6c498833cb3ad8b3af671dd32a12d [file] [log] [blame]
Rahul Maheshwari2483abf2017-07-31 15:25:25 -05001*** Settings ***
2Documentation Module for testing BMC inventory via XCAT.
3
Sandhya Somashekar839a0c22019-01-31 05:05:43 -06004Resource ../lib/xcat/resource.robot
Rahul Maheshwari2483abf2017-07-31 15:25:25 -05005Resource ../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}