Rahul Maheshwari | 2483abf | 2017-07-31 15:25:25 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Documentation Module for testing BMC inventory via XCAT. |
| 3 | |
| 4 | Resource ../lib/xcat/resource.txt |
| 5 | Resource ../lib/xcat/xcat_utils.robot |
| 6 | Resource ../lib/state_manager.robot |
| 7 | |
| 8 | Suite Setup XCAT Suite Setup |
| 9 | |
| 10 | *** Variables *** |
| 11 | |
| 12 | *** Test Cases *** |
| 13 | |
| 14 | Verify 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 | |
| 29 | XCAT 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} |