blob: 505bee9f448d07995f33d66fa52eecf57e8d4441 [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
Sridevi Ramesh839fd6b2017-02-03 05:07:09 -060011Test Teardown FFDC On Test Case Fail
Rahul Maheshwarif684ba72016-10-25 07:24:41 -050012
Sweta Potthuri2c2a8be2017-10-30 03:39:23 -050013Force Tags Journal_Log
14
Rahul Maheshwarif684ba72016-10-25 07:24:41 -050015*** Variables ***
16&{NIL} data=@{EMPTY}
17
18*** Test Cases ***
19
20Get Request Journal Log
21 [Documentation] This testcase is to verify that proper log is logged in
22 ... journal log for GET request.
23 [Tags] Get_Request_Journal_Log
24
25 Start Journal Log
26
George Keishing0fd3b242016-11-24 09:01:41 -060027 openbmc get request ${OPENBMC_BASE_URI}
Rahul Maheshwarif684ba72016-10-25 07:24:41 -050028
29 ${output}= Stop Journal Log
George Keishing0fd3b242016-11-24 09:01:41 -060030 Should Contain ${output} GET ${OPENBMC_BASE_URI} HTTP/1.1
Rahul Maheshwarif684ba72016-10-25 07:24:41 -050031
32Post Request Journal Log
33 [Documentation] This testcase is to verify that proper log is logged in
34 ... journal log for POST request.
35 [Tags] Post_Request_Journal_Log
36
37 Start Journal Log
38
George Keishing0fd3b242016-11-24 09:01:41 -060039 openbmc post request ${OPENBMC_BASE_URI}records/events/action/clear data=${NIL}
Rahul Maheshwarif684ba72016-10-25 07:24:41 -050040
41 ${output}= Stop Journal Log
George Keishing0fd3b242016-11-24 09:01:41 -060042 Should Contain ${output} POST ${OPENBMC_BASE_URI}records/events/action/clear HTTP/1.1
Rahul Maheshwarif684ba72016-10-25 07:24:41 -050043
44Put Request Journal Log
45 [Documentation] This testcase is to verify that proper log is logged in
46 ... journal log for PUT request.
47 [Tags] Put_Request_Journal_Log
48
49 Start Journal Log
50
Gunnar Mills597ffa02016-12-06 11:26:53 -060051 ${bootpolicy}= Set Variable ONETIME
52 ${valueDict}= create dictionary data=${bootpolicy}
George Keishing0fd3b242016-11-24 09:01:41 -060053 openbmc put request ${OPENBMC_BASE_URI}settings/host0/attr/boot_policy data=${valueDict}
Rahul Maheshwarif684ba72016-10-25 07:24:41 -050054
55 ${output}= Stop Journal Log
George Keishing0fd3b242016-11-24 09:01:41 -060056 Should Contain ${output} PUT ${OPENBMC_BASE_URI}settings/host0/attr/boot_policy HTTP/1.1
Rahul Maheshwarif684ba72016-10-25 07:24:41 -050057
58*** Keywords ***
59