Automate the test case to check firmware version is same
Change-Id: I96df062e672f3c2ae48cca44e00997eba90e6dfe
Signed-off-by: Sushil Singh <susilsi7@in.ibm.com>
diff --git a/redfish/update_service/test_firmware_inventory.robot b/redfish/update_service/test_firmware_inventory.robot
index 6ac1d4e..7f90b08 100644
--- a/redfish/update_service/test_firmware_inventory.robot
+++ b/redfish/update_service/test_firmware_inventory.robot
@@ -165,6 +165,32 @@
END
+Verify Redfish Functional Version Is Same
+ [Documentation] Verify the redfish firmware inventory path version is same as redfish managers.
+ [Tags] Verify_Redfish_Functional_Version_Is_Same
+
+ # User defined state for software objects.
+ # Note: "Functional" term refers to firmware which system is currently booted with.
+
+ # sw_inv_dict:
+ # [b9101858]:
+ # [image_type]: BMC update
+ # [image_id]: b9101858
+ # [functional]: True
+ # [version]: 2.8.0-dev-150-g04508dc9f
+
+ ${sw_inv_dict}= Get Functional Firmware BMC image
+ ${sw_inv_dict}= Get Non Functional Firmware ${sw_inv_dict} True
+
+ # /redfish/v1/Managers/bmc
+ # "FirmwareVersion": "2.8.0-dev-150-g04508dc9f"
+
+ ${firmware_version}= Redfish.Get Attribute
+ ... ${REDFISH_BASE_URI}Managers/bmc FirmwareVersion
+
+ Should Be Equal ${sw_inv_dict['version']} ${firmware_version}
+
+
Verify Redfish BIOS Version
[Documentation] Get host firmware version from system inventory.
[Tags] Verify_Redfish_BIOS_Version