-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes: - Added test cases for Host reboot and host poweroff Tested: Ran successfully redfish/systems/LogServices/test_post_codes.robot Change-Id: Icff9eb93225ea0de5113adff14a439cafade8c7a Signed-off-by: George Keishing <[email protected]>
- Loading branch information
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,42 @@ Test PostCodes When Host Boots | |
Should Be True ${post_codes['[email protected]']} >= 1 msg=No BIOS POST Codes populated. | ||
|
||
|
||
Test PostCodes When Host Reboot | ||
[Documentation] Initiate Host reboot the system and verify PostCodes from host are logged. | ||
[Tags] Test_PostCodes_When_Host_Reboot | ||
# Boot to runtime and clear post codes. | ||
Redfish Power On stack_mode=skip | ||
Redfish Clear PostCodes | ||
|
||
RF SYS GracefulRestart | ||
${post_code_list}= Redfish Get PostCodes | ||
Rprint Vars post_code_list | ||
|
||
${post_codes}= Redfish.Get Properties | ||
... /redfish/v1/Systems/system/LogServices/PostCodes/Entries | ||
Log To Console BIOS POST Codes count: ${post_codes['[email protected]']} | ||
Should Be True ${post_codes['[email protected]']} >= 1 msg=No BIOS POST Codes populated. | ||
|
||
|
||
Test PostCodes When Host Powered Off | ||
[Documentation] Power off the system and verify PostCodes from host are logged. | ||
[Tags] Test_PostCodes_When_Host_Powered_Off | ||
# Boot to runtime and clear post codes. | ||
Redfish Power On stack_mode=skip | ||
Redfish Clear PostCodes | ||
|
||
Redfish Power Off | ||
${post_code_list}= Redfish Get PostCodes | ||
Rprint Vars post_code_list | ||
|
||
${post_codes}= Redfish.Get Properties | ||
... /redfish/v1/Systems/system/LogServices/PostCodes/Entries | ||
Log To Console BIOS POST Codes count: ${post_codes['[email protected]']} | ||
Should Be True ${post_codes['[email protected]']} >= 1 msg=No BIOS POST Codes populated. | ||
|
||
|
||
*** Keywords *** | ||
|
||
Test Setup Execution | ||
|