Handled delete redfish sessions while rebooting the bmc
Changes:
- In suite setup disable the delete redfish session while reboot the bmc.
- In suite teardown enable the delete redfish session while reboot the bmc.
Tested:
- Ran All The Scripts Successfully
Change-Id: Icba0e9ab99142e34f4288c2c0156605b17445027
Signed-off-by: ganesanb <ganesanb@ami.com>
diff --git a/redfish/service_root/test_sessions_connection.robot b/redfish/service_root/test_sessions_connection.robot
index 1d619b5..d5f5303 100644
--- a/redfish/service_root/test_sessions_connection.robot
+++ b/redfish/service_root/test_sessions_connection.robot
@@ -5,7 +5,8 @@
Resource ../../lib/bmc_redfish_utils.robot
Resource ../../lib/openbmc_ffdc.robot
-Suite Teardown Redfish.Logout
+Suite Setup Disable Redfish Delete Session
+Suite Teardown Run Keywords Enable Redfish Delete Session AND Redfish.Logout
Test Setup Printn
Test Teardown FFDC On Test Case Fail
@@ -60,3 +61,14 @@
# Verify session is still active and no issues on connection after reboot.
Repeat Keyword ${reboot_interval} Send Heartbeat
+Disable Redfish Delete Session
+ [Documentation] Disable delete redfish while performing power operation keyword.
+
+ ${REDFISH_DELETE_SESSIONS}= Set Variable ${0}
+ Set Suite Variable ${REDFISH_DELETE_SESSIONS}
+
+Enable Redfish Delete Session
+ [Documentation] Enable delete redfish while performing power operation keyword.
+
+ ${REDFISH_DELETE_SESSIONS}= Set Variable ${1}
+ Set Suite Variable ${REDFISH_DELETE_SESSIONS}
\ No newline at end of file