blob: ddca2396ea71c12feb9c31a24012db2a8f1dd0d2 [file] [log] [blame]
***Settings***
Documentation This module generates an inventory file using lshw
... commands. It will create a JSON file and a YAML file. It
... will get the processor, memory and specified I/O devices.
... Requires access to lshw, and json2yaml OS commands. This
... robot file should be run as root or sudo for lshw.
Library String
Library Collections
Library OperatingSystem
Resource ../syslib/utils_os.robot
***Variables***
# Path of the JSON Inventory file.
${json_inventory_file_path} ${EXECDIR}/os_inventory_final.json
***Test Case***
Create An Inventory
[Documentation] Snapshot system inventory to a JSON file.
[Tags] Inventory_Test
Create JSON Inventory File ${json_inventory_file_path}