Rahul Maheshwari | f684ba7 | 2016-10-25 07:24:41 -0500 | [diff] [blame^] | 1 | *** Settings *** |
| 2 | |
| 3 | Documentation This testsuite is for testing journal logs in openbmc. |
| 4 | |
| 5 | Resource ../lib/rest_client.robot |
| 6 | Resource ../lib/utils.robot |
| 7 | Resource ../lib/openbmc_ffdc.robot |
| 8 | |
| 9 | Suite Setup Open Connection And Log In |
| 10 | Suite Teardown Close All Connections |
| 11 | Test Teardown Log FFDC |
| 12 | |
| 13 | *** Variables *** |
| 14 | &{NIL} data=@{EMPTY} |
| 15 | |
| 16 | *** Test Cases *** |
| 17 | |
| 18 | Get 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 | |
| 30 | Post 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 | |
| 42 | Put 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 | |