Skip to content

Commit

Permalink
dump_utils:Trigger BMC dump and return task ID
Browse files Browse the repository at this point in the history
Changes:
     - New keyword added to initiate BMC dump via Redfish and return task ID.

Tested:
     - Tested using a sample test

Signed-off-by: Anusha Dathatri <[email protected]>
Change-Id: I59cd58a1b30eaf616183e468e0de1abecffef030
  • Loading branch information
adathatri committed Aug 12, 2022
1 parent b18e15e commit 83ddaf9
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions lib/dump_utils.robot
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,23 @@ Trigger Core Dump
Should Be Equal As Integers ${rc} ${0}
... msg=BMC execute command return code is not zero.

Initiate BMC Dump Using Redfish And Return Task Id
[Documentation] Initiate BMC dump via Redfish and return its task ID.
${payload}= Create Dictionary DiagnosticDataType=Manager
${resp}= Redfish.Post
... /redfish/v1/Managers/bmc/LogServices/Dump/Actions/LogService.CollectDiagnosticData
... body=${payload} valid_status_codes=[${HTTP_ACCEPTED}]

# Example of response from above Redfish POST request.
# "@odata.id": "/redfish/v1/TaskService/Tasks/0",
# "@odata.type": "#Task.v1_4_3.Task",
# "Id": "0",
# "TaskState": "Running",
# "TaskStatus": "OK"

[Return] ${resp.dict['Id']}

Create User Initiated BMC Dump Via Redfish
[Documentation] Generate user initiated BMC dump via Redfish and return the dump id number (e.g., "5").
Expand Down

0 comments on commit 83ddaf9

Please sign in to comment.