blob: ce3f794ba6e69508fa6a2a15be4a3276ccc97a96 [file] [log] [blame]
George Keishing8cca7fb2019-05-30 04:23:50 -05001*** Settings ***
2Documentation Inventory of hardware resources under systems.
3
4Resource ../../../lib/bmc_redfish_resource.robot
5Resource ../../../lib/bmc_redfish_utils.robot
6Resource ../../../lib/logging_utils.robot
7Resource ../../../lib/openbmc_ffdc.robot
8
9Suite Setup Suite Setup Execution
10Suite Teardown Suite Teardown Execution
11Test Teardown Test Teardown Execution
12
13*** Test Cases ***
14
15Event Log Check After BMC Reboot
16 [Documentation] Check event log after BMC rebooted.
17 [Tags] Event_Log_Check_After_BMC_Reboot
18
19 Redfish Purge Event Log
20 Event Log Should Not Exist
21
22 Redfish OBMC Reboot (off)
23
24 Redfish.Login
25 Wait Until Keyword Succeeds 1 mins 15 secs Redfish.Get ${EVENT_LOG_URI}Entries
26
27 Event Log Should Not Exist
28
29
30*** Keywords ***
31
32Suite Teardown Execution
33 [Documentation] Do the post suite teardown.
34
35 Redfish.Logout
36
37
38Suite Setup Execution
39 [Documentation] Do test case setup tasks.
40
41 Redfish.Login
42
43 ${status}= Run Keyword And Return Status Logging Test Binary Exist
44 Run Keyword If ${status} == ${False} Install Tarball
45
46
47Test Teardown Execution
48 [Documentation] Do the post test teardown.
49
50 FFDC On Test Case Fail
51
52
53Event Log Should Not Exist
54 [Documentation] Event log entries should not exist.
55
56 ${elogs}= Get Event Logs
57 Should Be Empty ${elogs} msg=System event log entry is not empty.