blob: d16cfc5c0705f9e1155d9f404029416f9fa42731 [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
George Keishing0fd3b242016-11-24 09:01:41 -060025 openbmc get request ${OPENBMC_BASE_URI}
Rahul Maheshwarif684ba72016-10-25 07:24:41 -050026
27 ${output}= Stop Journal Log
George Keishing0fd3b242016-11-24 09:01:41 -060028 Should Contain ${output} GET ${OPENBMC_BASE_URI} HTTP/1.1
Rahul Maheshwarif684ba72016-10-25 07:24:41 -050029
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
George Keishing0fd3b242016-11-24 09:01:41 -060037 openbmc post request ${OPENBMC_BASE_URI}records/events/action/clear data=${NIL}
Rahul Maheshwarif684ba72016-10-25 07:24:41 -050038
39 ${output}= Stop Journal Log
George Keishing0fd3b242016-11-24 09:01:41 -060040 Should Contain ${output} POST ${OPENBMC_BASE_URI}records/events/action/clear HTTP/1.1
Rahul Maheshwarif684ba72016-10-25 07:24:41 -050041
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}
George Keishing0fd3b242016-11-24 09:01:41 -060051 openbmc put request ${OPENBMC_BASE_URI}settings/host0/attr/boot_policy data=${valueDict}
Rahul Maheshwarif684ba72016-10-25 07:24:41 -050052
53 ${output}= Stop Journal Log
George Keishing0fd3b242016-11-24 09:01:41 -060054 Should Contain ${output} PUT ${OPENBMC_BASE_URI}settings/host0/attr/boot_policy HTTP/1.1
Rahul Maheshwarif684ba72016-10-25 07:24:41 -050055
56*** Keywords ***
57