Skip to content

Commit 34298bf

Browse files
adathatrigkeishin
authored andcommitted
Clean up Redfish event notification subscriptions
Change-Id: I0e00c9ddfe9f0a756604c7fd06f88b0c2cfcbf7a Signed-off-by: Anusha Dathatri <[email protected]>
1 parent 1c3d86b commit 34298bf

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

extended/standby_bmc.robot

+10
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ Redfish Clean Up
9797
Run Keyword And Ignore Error Redfish Purge Event Log
9898
Run Keyword And Ignore Error Redfish Delete All BMC Dumps
9999
Run Keyword And Ignore Error Redfish Delete All System Dumps
100+
Run Keyword And Ignore Error Clear All Subscriptions
100101
Run Keyword And Ignore Error Delete All Redfish Sessions
101102

102103

@@ -168,3 +169,12 @@ MTU Ping Test
168169
... ping -M do -s ${mtu} -c 10 ${OPENBMC_HOST}
169170
Should Be Equal As Integers ${rc} 0
170171
Should Not Contain ${output} 100% packet loss
172+
173+
174+
Clear All Subscriptions
175+
[Documentation] Delete all subscriptions.
176+
177+
${subscriptions}= Redfish.Get Attribute /redfish/v1/EventService/Subscriptions Members
178+
FOR ${subscription} IN @{subscriptions}
179+
Redfish.Delete ${subscription['@odata.id']}
180+
END

0 commit comments

Comments
 (0)