Add Redfish login session for the suites
Change-Id: I5fb02f5b9dc2455bdcf3a3d8251bd0ba622c9773
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/ipmi/test_ipmi_chassis.robot b/ipmi/test_ipmi_chassis.robot
index d78164c..7d68b23 100644
--- a/ipmi/test_ipmi_chassis.robot
+++ b/ipmi/test_ipmi_chassis.robot
@@ -6,6 +6,8 @@
Resource ../lib/boot_utils.robot
Library ../lib/ipmi_utils.py
+Suite Setup Redfish.Login
+Suite Teardown Redfish.Logout
Test Teardown FFDC On Test Case Fail
*** Test Cases ***
diff --git a/ipmi/test_ipmi_resets.robot b/ipmi/test_ipmi_resets.robot
index f99f478..38fc96c 100755
--- a/ipmi/test_ipmi_resets.robot
+++ b/ipmi/test_ipmi_resets.robot
@@ -4,6 +4,9 @@
Resource ../lib/ipmi_client.robot
Resource ../lib/openbmc_ffdc.robot
+Suite Setup Redfish.Login
+Suite Teardown Redfish.Logout
+
Test Teardown FFDC On Test Case Fail
*** Variables ***
diff --git a/ipmi/test_ipmi_sdr.robot b/ipmi/test_ipmi_sdr.robot
index c5f9d47..5d2f66d 100755
--- a/ipmi/test_ipmi_sdr.robot
+++ b/ipmi/test_ipmi_sdr.robot
@@ -9,6 +9,7 @@
Library ../lib/ipmi_utils.py
Suite setup Suite Setup Execution
+Suite Teardown Redfish.Logout
Test Teardown Test Teardown Execution
Force Tags SDR_Test
@@ -285,6 +286,7 @@
Suite Setup Execution
[Documentation] Do the initial suite setup.
+ Redfish.Login
Redfish Power On stack_mode=skip quiet=1
${uri_list}= Read Properties ${OPENBMC_BASE_URI}list