redfish: extended: dump: fix read Size property failed from dump entry uri
Symptom:
After finish test item "Verify Core Dump Size" with PASS result then
run "Verify Dump After Host Watchdog Error Injection" will got failed.
From the log, we got "404 != 200" error message.
This error is relate to get size property fail from dump entry uri.
GET Request using : uri=/xyz/openbmc_project/dump/bmc/entry/1/attr/Size
got ${ret} = <Response [404]>. The expected result is 200.
Root cause:
"Trigger Core Dump" keyword will be executed in item "Verify Core Dump Size".
After that, the uri=/xyz/openbmc_project/dump/bmc/entry/1 be generated.
But, this uri will be deleted in "Redfish Delete All BMC Dumps" keword in item
"Verify Dump After Host Watchdog Error Injection".
Thus, cause read "Size" property got failed from the nonexistent uri.
Soluction:
Don't execute Redfish Delete All BMC Dumps this keyword. Remove it in test item.
Tested:
After finish test item "Verify Core Dump Size" with PASS result
then run "Verify Dump After Host Watchdog Error Injection" with PASS result.
Signed-off-by: Tim Lee <timlee660101@gmail.com>
Change-Id: Ica9b71111349c0667070e30b3c9a73297c19d5f2
diff --git a/redfish/extended/test_bmc_dump.robot b/redfish/extended/test_bmc_dump.robot
index cd7e2f1..a59a380 100644
--- a/redfish/extended/test_bmc_dump.robot
+++ b/redfish/extended/test_bmc_dump.robot
@@ -42,7 +42,7 @@
# Enable auto reboot
Set Auto Reboot ${1}
- Trigger Host Watchdog Error 2000 30
+ Set Watchdog Interval Using Busctl 2000
Wait Until Keyword Succeeds 300 sec 20 sec Is Host Rebooted