Added new test cases to BMC protocol settings
- Enable IPMI Protocol And Check Persistency On BMC Reboot
- Disable IPMI Protocol And Check Persistency On BMC Reboot
Change-Id: I5a5053baa54de1f814fb60f940e1d7a0487ba3c8
Signed-off-by: meghagn <Megha.GN@ibm.com>
diff --git a/redfish/managers/test_bmc_protocol_settings.robot b/redfish/managers/test_bmc_protocol_settings.robot
index ca7356c..251c05b 100644
--- a/redfish/managers/test_bmc_protocol_settings.robot
+++ b/redfish/managers/test_bmc_protocol_settings.robot
@@ -159,6 +159,41 @@
... msg=IPMI commands are working after disabling IPMI.
+Enable IPMI Protocol And Check Persistency On BMC Reboot
+ [Documentation] Set the IPMI protocol attribute to True, reset BMC, and verify that the setting persists.
+ [Tags] Enable_IPMI_Protocol_And_Check_Persistency_On_BMC_Reboot
+
+ Enable IPMI Protocol ${True}
+
+ Redfish OBMC Reboot (off) stack_mode=skip
+
+ # Check if the IPMI enabled is set.
+ Verify IPMI Protocol State ${True}
+
+ # Confirm that IPMI commands to access BMC work.
+ Verify IPMI Works lan print
+
+
+Disable IPMI Protocol And Check Persistency On BMC Reboot
+ [Documentation] Set the IPMI protocol attribute to False, reset BMC, and verify that the setting persists.
+ [Tags] Disable_IPMI_Protocol_And_Check_Persistency_On_BMC_Reboot
+
+ # Disable IPMI interface.
+ Enable IPMI Protocol ${False}
+
+ Redfish OBMC Reboot (off) stack_mode=skip
+
+ # Check if the IPMI disabled is set.
+ Verify IPMI Protocol State ${False}
+
+ # Confirm that IPMI connection request fails.
+ ${status}= Run Keyword And Return Status
+ ... Verify IPMI Works lan print
+
+ Should Be Equal As Strings ${status} False
+ ... msg=IPMI commands are working after disabling IPMI.
+
+
*** Keywords ***
Suite Setup Execution