| Rahul Maheshwari | 2483abf | 2017-07-31 15:25:25 -0500 | [diff] [blame] | 1 | *** Settings *** | 
 | 2 | Documentation   Module for testing BMC inventory via XCAT. | 
 | 3 |  | 
| Sandhya Somashekar | 839a0c2 | 2019-01-31 05:05:43 -0600 | [diff] [blame] | 4 | Resource        ../lib/xcat/resource.robot | 
| Rahul Maheshwari | 2483abf | 2017-07-31 15:25:25 -0500 | [diff] [blame] | 5 | Resource        ../lib/xcat/xcat_utils.robot | 
 | 6 | Resource        ../lib/state_manager.robot | 
 | 7 |  | 
 | 8 | Suite Setup     XCAT Suite Setup | 
 | 9 |  | 
| Rahul Maheshwari | 2483abf | 2017-07-31 15:25:25 -0500 | [diff] [blame] | 10 | *** Test Cases *** | 
 | 11 |  | 
 | 12 | Verify BMC Version Via XCAT | 
 | 13 |     [Documentation]  Verify BMC version using XCAT and REST. | 
 | 14 |     [Tags]  Verify_BMC_Version_Via_XCAT | 
 | 15 |  | 
 | 16 |     # Get BMC version info via xcat | 
 | 17 |     ${version_via_xcat}=  Execute Command On XCAT  rinv  firm | 
 | 18 |  | 
 | 19 |     # Get BMC version info via rest | 
 | 20 |     ${version_via_rest}=  Get BMC Version | 
 | 21 |  | 
| George Keishing | 88f1f01 | 2025-04-16 23:44:10 +0530 | [diff] [blame] | 22 |     Should Contain  ${version_via_xcat}  ${version_via_rest} | 
| Rahul Maheshwari | 2483abf | 2017-07-31 15:25:25 -0500 | [diff] [blame] | 23 |  | 
 | 24 | *** Keywords *** | 
 | 25 |  | 
 | 26 | XCAT Suite Setup | 
 | 27 |     [Documentation]  XCAT suite setup. | 
 | 28 |  | 
 | 29 |     Open Connection And Login To XCAT | 
 | 30 |  | 
 | 31 |     # Check if XCAT is installed. | 
 | 32 |     ${cmd_output}=  Execute Command  ${XCAT_DIR_PATH}/lsxcatd -v | 
 | 33 |     Should Not Be Empty  ${cmd_output}  msg=XCAT not installed. | 
 | 34 |  | 
 | 35 |     Add Nodes To XCAT  ${OPENBMC_HOST} |