Added wait step for initiated dump to complete
Changes:
- Added wait step for initiated dump to complete. Otherwise,on going dump would impact next test.
Tested:
-Ran above test case from sandbox successfully
Change-Id: I8506b562ad8222b8cf882f5df467fca1e6bf42e3
Signed-off-by: Nandish-Matti <nandish.matti@ibm.com>
diff --git a/redfish/managers/test_bmc_dumps.robot b/redfish/managers/test_bmc_dumps.robot
index d38c085..0129ef4 100644
--- a/redfish/managers/test_bmc_dumps.robot
+++ b/redfish/managers/test_bmc_dumps.robot
@@ -256,7 +256,7 @@
[Documentation] Verify error while initiating BMC dump during dumping state.
[Tags] Verify_Error_While_Initiating_BMC_Dump_During_Dumping_State
- Create User Initiated BMC Dump Via Redfish ${1}
+ ${task_id}= Create User Initiated BMC Dump Via Redfish ${1}
# Check error while initiating BMC dump while dump in progress.
${payload}= Create Dictionary DiagnosticDataType=Manager
@@ -264,6 +264,9 @@
... /redfish/v1/Managers/bmc/LogServices/Dump/Actions/LogService.CollectDiagnosticData
... body=${payload} valid_status_codes=[${HTTP_SERVICE_UNAVAILABLE}]
+ # Wait for above initiated dump to complete. Otherwise, on going dump would impact next test.
+ Wait Until Keyword Succeeds 5 min 15 sec Check Task Completion ${task_id}
+
Verify BMC Dump Create Errors While Another BMC Dump In Progress
[Documentation] Verify BMC dump creation error until older BMC dump completion.