blob: cc5802cf25da25a600a66fb91b1e41c94ff7e0f4 [file] [log] [blame]
Rahul Maheshwarif684ba72016-10-25 07:24:41 -05001*** Settings ***
2
3Documentation This testsuite is for testing journal logs in openbmc.
4
5Resource ../lib/rest_client.robot
6Resource ../lib/utils.robot
7Resource ../lib/openbmc_ffdc.robot
8
9Suite Setup Open Connection And Log In
10Suite Teardown Close All Connections
11Test Teardown Log FFDC
12
13*** Variables ***
14&{NIL} data=@{EMPTY}
15
16*** Test Cases ***
17
18Get Request Journal Log
19 [Documentation] This testcase is to verify that proper log is logged in
20 ... journal log for GET request.
21 [Tags] Get_Request_Journal_Log
22
23 Start Journal Log
24
25 openbmc get request /org/openbmc/
26
27 ${output}= Stop Journal Log
28 Should Contain ${output} GET /org/openbmc/ HTTP/1.1
29
30Post Request Journal Log
31 [Documentation] This testcase is to verify that proper log is logged in
32 ... journal log for POST request.
33 [Tags] Post_Request_Journal_Log
34
35 Start Journal Log
36
37 openbmc post request /org/openbmc/records/events/action/clear data=${NIL}
38
39 ${output}= Stop Journal Log
40 Should Contain ${output} POST /org/openbmc/records/events/action/clear HTTP/1.1
41
42Put Request Journal Log
43 [Documentation] This testcase is to verify that proper log is logged in
44 ... journal log for PUT request.
45 [Tags] Put_Request_Journal_Log
46
47 Start Journal Log
48
49 ${bootpolicy} = Set Variable ONETIME
50 ${valueDict} = create dictionary data=${bootpolicy}
51 openbmc put request /org/openbmc/settings/host0/attr/boot_policy data=${valueDict}
52
53 ${output}= Stop Journal Log
54 Should Contain ${output} PUT /org/openbmc/settings/host0/attr/boot_policy HTTP/1.1
55
56*** Keywords ***
57