Add Host shutdown in some BMC dump testcases
Changes:
- Added method to shutdown host before BMC dump initiation
when host booting is not required.
Tested:
- Executed the test cases with fix from sandbox successfully.
Change-Id: I47ab3f081ec3fc79684ee3636053d76a6f6256aa
Signed-off-by: manashsarma <manashsarma@in.ibm.com>
diff --git a/redfish/managers/test_bmc_dumps.robot b/redfish/managers/test_bmc_dumps.robot
index c20047c..65ec04f 100644
--- a/redfish/managers/test_bmc_dumps.robot
+++ b/redfish/managers/test_bmc_dumps.robot
@@ -50,6 +50,7 @@
[Documentation] Verify user initiated BMC dump size is under 20 MB.
[Tags] Verify_User_Initiated_BMC_Dump_Size
+ Redfish Power Off stack_mode=skip
${dump_id}= Create User Initiated BMC Dump Via Redfish
${resp}= Redfish.Get Properties /redfish/v1/Managers/bmc/LogServices/Dump/Entries/${dump_id}
@@ -95,6 +96,7 @@
... another successfully.
[Tags] Verify_Multiple_BMC_Dump_Creation
+ Redfish Power Off stack_mode=skip
${dump_count}= Evaluate random.randint(5, 10) modules=random
FOR ${INDEX} IN 1 ${dump_count}
Create User Initiated BMC Dump Via Redfish
@@ -105,6 +107,7 @@
[Documentation] Verify that BMC dump is created in its default location of BMC.
[Tags] Verify_BMC_Dump_Default_Location_In_BMC
+ Redfish Power Off stack_mode=skip
Redfish Delete All BMC Dumps
${dump_id}= Create User Initiated BMC Dump Via Redfish
${dump_file} ${stderr} ${rc}= BMC Execute Command
@@ -148,6 +151,7 @@
... persistency.
[Tags] Verify_Dump_Persistency_On_Dump_Service_Restart
+ Redfish Power Off stack_mode=skip
Create User Initiated BMC Dump Via Redfish
${dump_entries_before}= redfish_utils.get_member_list /redfish/v1/Managers/bmc/LogServices/Dump/Entries
@@ -180,6 +184,7 @@
[Documentation] Delete user initiated BMC dump and verify.
[Tags] Delete_User_Initiated_BMC_Dump_And_Verify
+ Redfish Power Off stack_mode=skip
${dump_id}= Create User Initiated BMC Dump Via Redfish
Redfish Delete BMC Dump ${dump_id}
@@ -207,6 +212,7 @@
[Documentation] Create two user initiated BMC dumps.
[Tags] Create_Two_User_Initiated_BMC_Dumps
+ Redfish Power Off stack_mode=skip
${dump_id1}= Create User Initiated BMC Dump Via Redfish
${dump_id2}= Create User Initiated BMC Dump Via Redfish
@@ -220,6 +226,7 @@
[Documentation] Create two dumps and delete the first.
[Tags] Create_Two_User_Initiated_BMC_Dumps_And_Delete_One
+ Redfish Power Off stack_mode=skip
${dump_id1}= Create User Initiated BMC Dump Via Redfish
${dump_id2}= Create User Initiated BMC Dump Via Redfish
@@ -234,6 +241,7 @@
[Documentation] Create and delete user initiated BMC dump multiple times.
[Tags] Create_And_Delete_User_Initiated_BMC_Dump_Multiple_Times
+ Redfish Power Off stack_mode=skip
FOR ${INDEX} IN 1 10
${dump_id}= Create User Initiated BMC Dump Via Redfish
Redfish Delete BMC Dump ${dump_id}
@@ -299,6 +307,7 @@
[Documentation] Verify error while initiating BMC dump during dumping state.
[Tags] Verify_Error_While_Initiating_BMC_Dump_During_Dumping_State
+ Redfish Power Off stack_mode=skip
${task_id}= Create User Initiated BMC Dump Via Redfish ${1}
# Check error while initiating BMC dump while dump in progress.
@@ -315,6 +324,8 @@
[Documentation] Verify BMC dump creation error until older BMC dump completion.
[Tags] Verify_BMC_Dump_Create_Errors_While_Another_BMC_Dump_In_Progress
+ Redfish Power Off stack_mode=skip
+
# Initiate a BMC dump that returns without completion.
${task_id}= Create User Initiated BMC Dump Via Redfish ${1}