Skip to content

Commit

Permalink
Add test for BIOS Post codes
Browse files Browse the repository at this point in the history
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
gkeishin committed Aug 12, 2022
1 parent 83ddaf9 commit 8b5d53a
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions redfish/systems/LogServices/test_post_codes.robot
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8b5d53a

Please sign in to comment.