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 | |
Sweta Potthuri | 2c2a8be | 2017-10-30 03:39:23 -0500 | [diff] [blame] | 13 | Force Tags Journal_Log |
| 14 | |
Rahul Maheshwari | f684ba7 | 2016-10-25 07:24:41 -0500 | [diff] [blame] | 15 | *** Variables *** |
| 16 | &{NIL} data=@{EMPTY} |
| 17 | |
| 18 | *** Test Cases *** |
| 19 | |
| 20 | Get 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 Keishing | 0fd3b24 | 2016-11-24 09:01:41 -0600 | [diff] [blame] | 27 | openbmc get request ${OPENBMC_BASE_URI} |
Rahul Maheshwari | f684ba7 | 2016-10-25 07:24:41 -0500 | [diff] [blame] | 28 | |
| 29 | ${output}= Stop Journal Log |
George Keishing | 0fd3b24 | 2016-11-24 09:01:41 -0600 | [diff] [blame] | 30 | Should Contain ${output} GET ${OPENBMC_BASE_URI} HTTP/1.1 |
Rahul Maheshwari | f684ba7 | 2016-10-25 07:24:41 -0500 | [diff] [blame] | 31 | |
| 32 | Post 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 Keishing | 0fd3b24 | 2016-11-24 09:01:41 -0600 | [diff] [blame] | 39 | openbmc post request ${OPENBMC_BASE_URI}records/events/action/clear data=${NIL} |
Rahul Maheshwari | f684ba7 | 2016-10-25 07:24:41 -0500 | [diff] [blame] | 40 | |
| 41 | ${output}= Stop Journal Log |
George Keishing | 0fd3b24 | 2016-11-24 09:01:41 -0600 | [diff] [blame] | 42 | 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] | 43 | |
| 44 | Put 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 Mills | 597ffa0 | 2016-12-06 11:26:53 -0600 | [diff] [blame] | 51 | ${bootpolicy}= Set Variable ONETIME |
| 52 | ${valueDict}= create dictionary data=${bootpolicy} |
George Keishing | 0fd3b24 | 2016-11-24 09:01:41 -0600 | [diff] [blame] | 53 | 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] | 54 | |
| 55 | ${output}= Stop Journal Log |
George Keishing | 0fd3b24 | 2016-11-24 09:01:41 -0600 | [diff] [blame] | 56 | 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] | 57 | |
| 58 | *** Keywords *** |
| 59 | |