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 |
Sridevi Ramesh | 839fd6b | 2017-02-03 05:07:09 -0600 | [diff] [blame] | 11 | Test Teardown FFDC On Test Case Fail |
Rahul Maheshwari | f684ba7 | 2016-10-25 07:24:41 -0500 | [diff] [blame] | 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 | |
George Keishing | 0fd3b24 | 2016-11-24 09:01:41 -0600 | [diff] [blame] | 25 | openbmc get request ${OPENBMC_BASE_URI} |
Rahul Maheshwari | f684ba7 | 2016-10-25 07:24:41 -0500 | [diff] [blame] | 26 | |
| 27 | ${output}= Stop Journal Log |
George Keishing | 0fd3b24 | 2016-11-24 09:01:41 -0600 | [diff] [blame] | 28 | Should Contain ${output} GET ${OPENBMC_BASE_URI} HTTP/1.1 |
Rahul Maheshwari | f684ba7 | 2016-10-25 07:24:41 -0500 | [diff] [blame] | 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 | |
George Keishing | 0fd3b24 | 2016-11-24 09:01:41 -0600 | [diff] [blame] | 37 | openbmc post request ${OPENBMC_BASE_URI}records/events/action/clear data=${NIL} |
Rahul Maheshwari | f684ba7 | 2016-10-25 07:24:41 -0500 | [diff] [blame] | 38 | |
| 39 | ${output}= Stop Journal Log |
George Keishing | 0fd3b24 | 2016-11-24 09:01:41 -0600 | [diff] [blame] | 40 | Should Contain ${output} POST ${OPENBMC_BASE_URI}records/events/action/clear HTTP/1.1 |
Rahul Maheshwari | f684ba7 | 2016-10-25 07:24:41 -0500 | [diff] [blame] | 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 | |
Gunnar Mills | 597ffa0 | 2016-12-06 11:26:53 -0600 | [diff] [blame] | 49 | ${bootpolicy}= Set Variable ONETIME |
| 50 | ${valueDict}= create dictionary data=${bootpolicy} |
George Keishing | 0fd3b24 | 2016-11-24 09:01:41 -0600 | [diff] [blame] | 51 | openbmc put request ${OPENBMC_BASE_URI}settings/host0/attr/boot_policy data=${valueDict} |
Rahul Maheshwari | f684ba7 | 2016-10-25 07:24:41 -0500 | [diff] [blame] | 52 | |
| 53 | ${output}= Stop Journal Log |
George Keishing | 0fd3b24 | 2016-11-24 09:01:41 -0600 | [diff] [blame] | 54 | Should Contain ${output} PUT ${OPENBMC_BASE_URI}settings/host0/attr/boot_policy HTTP/1.1 |
Rahul Maheshwari | f684ba7 | 2016-10-25 07:24:41 -0500 | [diff] [blame] | 55 | |
| 56 | *** Keywords *** |
| 57 | |