Removed extra space between variable and = from /tests
This commit is style changes only.
Change-Id: I27905200df8e9188cfac61fe94a5f070dfc92f1b
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
diff --git a/tests/test_eventlog.robot b/tests/test_eventlog.robot
index 5bb59f6..71ea017 100644
--- a/tests/test_eventlog.robot
+++ b/tests/test_eventlog.robot
@@ -24,16 +24,16 @@
valid path to logs
[Documentation] Test list all events
[Tags] CI
- ${resp} = openbmc get request /org/openbmc/records/events/
+ ${resp}= openbmc get request /org/openbmc/records/events/
should be equal as strings ${resp.status_code} ${HTTP_OK}
clear any logs
[Documentation] Test delete all events
[Tags] CI clear_any_logs
- ${resp} = openbmc post request /org/openbmc/records/events/action/clear data=${NIL}
+ ${resp}= openbmc post request /org/openbmc/records/events/action/clear data=${NIL}
should be equal as strings ${resp.status_code} ${HTTP_OK}
- ${resp} = openbmc get request /org/openbmc/records/events/
- ${json} = to json ${resp.content}
+ ${resp}= openbmc get request /org/openbmc/records/events/
+ ${json}= to json ${resp.content}
Should Be Empty ${json['data']}
write a log
@@ -44,43 +44,43 @@
Message attribute should match
[Documentation] Check message attribute for created event
[Tags] CI
- ${uri} = create a test log
- ${content} = Read Attribute ${uri} message
+ ${uri}= create a test log
+ ${content}= Read Attribute ${uri} message
Should Be Equal ${content} A Test event log just happened
Severity attribute should match
[Documentation] Check severity attribute for created event
[Tags] CI
- ${uri} = create a test log
+ ${uri}= create a test log
${content}= Read Attribute ${uri} severity
Should Be Equal ${content} Info
data_bytes attribute should match
[Documentation] Check data_bytes attribute for created event
[Tags] CI
- @{data_list} = Create List ${48} ${0} ${19} ${127} ${136} ${255}
- ${uri} = create a test log
- ${content} = Read Attribute ${uri} debug_data
+ @{data_list}= Create List ${48} ${0} ${19} ${127} ${136} ${255}
+ ${uri}= create a test log
+ ${content}= Read Attribute ${uri} debug_data
Lists Should Be Equal ${content} ${data_list}
delete the log
[Documentation] Test the delete event
[Tags] CI
- ${uri} = create a test log
- ${deluri} = catenate SEPARATOR= ${uri} /action/delete
- ${resp} = openbmc post request ${deluri} data=${NIL}
+ ${uri}= create a test log
+ ${deluri}= catenate SEPARATOR= ${uri} /action/delete
+ ${resp}= openbmc post request ${deluri} data=${NIL}
should be equal as strings ${resp.status_code} ${HTTP_OK}
- ${resp} = openbmc get request ${deluri}
+ ${resp}= openbmc get request ${deluri}
should be equal as strings ${resp.status_code} ${HTTP_NOT_FOUND}
2nd delete should fail
[Documentation] Negative scnenario to delete already deleted event
[Tags] CI
- ${uri} = create a test log
- ${deluri} = catenate SEPARATOR= ${uri} /action/delete
- ${resp} = openbmc post request ${deluri} data=${NIL}
+ ${uri}= create a test log
+ ${deluri}= catenate SEPARATOR= ${uri} /action/delete
+ ${resp}= openbmc post request ${deluri} data=${NIL}
should be equal as strings ${resp.status_code} ${HTTP_OK}
- ${resp} = openbmc post request ${deluri} data=${NIL}
+ ${resp}= openbmc post request ${deluri} data=${NIL}
should be equal as strings ${resp.status_code} ${HTTP_NOT_FOUND}
Intermixed delete
@@ -93,8 +93,8 @@
${event1}= create a test log
${event2}= create a test log
${event3}= create a test log
- ${deluri} = catenate SEPARATOR= ${event2} /action/delete
- ${resp} = openbmc post request ${deluri} data=${NIL}
+ ${deluri}= catenate SEPARATOR= ${event2} /action/delete
+ ${resp}= openbmc post request ${deluri} data=${NIL}
should be equal as strings ${resp.status_code} ${HTTP_OK}
${resp}= openbmc get request ${event2}
should be equal as strings ${resp.status_code} ${HTTP_NOT_FOUND}
@@ -103,15 +103,15 @@
[Documentation] This is to test events are in place even after the
... event service is restarted.
[Tags] CI
- ${resp} = openbmc get request /org/openbmc/records/events/
- ${json} = to json ${resp.content}
+ ${resp}= openbmc get request /org/openbmc/records/events/
+ ${json}= to json ${resp.content}
${logs_pre_restart}= set variable ${json['data']}
${uptime}= Execute Command systemctl restart obmc-phosphor-event.service
Sleep ${10}
- ${resp} = openbmc get request /org/openbmc/records/events/
- ${json} = to json ${resp.content}
+ ${resp}= openbmc get request /org/openbmc/records/events/
+ ${json}= to json ${resp.content}
${logs_post_restart}= set variable ${json['data']}
List Should Contain Sub List ${logs_post_restart} ${logs_pre_restart} msg=Failed to find all the eventlogs which are present before restart of event service
@@ -124,8 +124,8 @@
${uptime}= Execute Command systemctl restart obmc-phosphor-event.service
Sleep ${10}
- ${deluri} = catenate SEPARATOR= ${uri} /action/delete
- ${resp} = openbmc post request ${deluri} data=${NIL}
+ ${deluri}= catenate SEPARATOR= ${uri} /action/delete
+ ${resp}= openbmc post request ${deluri} data=${NIL}
should be equal as strings ${resp.status_code} ${HTTP_OK}
making new log after obmc-phosphor-event.service restart
@@ -145,8 +145,8 @@
Sleep ${10}
${uri}= create a test log
- ${deluri} = catenate SEPARATOR= ${uri} /action/delete
- ${resp} = openbmc post request ${deluri} data=${NIL}
+ ${deluri}= catenate SEPARATOR= ${uri} /action/delete
+ ${resp}= openbmc post request ${deluri} data=${NIL}
should be equal as strings ${resp.status_code} ${HTTP_OK}
Test events after openbmc reboot
@@ -173,26 +173,26 @@
Wait Until Keyword Succeeds
... 10 min 10 sec Verify BMC State ${states}
- ${resp} = openbmc get request ${pre_reboot_event}
+ ${resp}= openbmc get request ${pre_reboot_event}
should be equal as strings ${resp.status_code} ${HTTP_OK}
${post_reboot_event1}= create a test log
- ${del_prereboot_uri} = catenate SEPARATOR= ${pre_reboot_event} /action/delete
- ${resp} = openbmc post request ${del_prereboot_uri} data=${NIL}
+ ${del_prereboot_uri}= catenate SEPARATOR= ${pre_reboot_event} /action/delete
+ ${resp}= openbmc post request ${del_prereboot_uri} data=${NIL}
should be equal as strings ${resp.status_code} ${HTTP_OK}
- ${del_postreboot_uri} = catenate SEPARATOR= ${post_reboot_event1} /action/delete
- ${resp} = openbmc post request ${del_postreboot_uri} data=${NIL}
+ ${del_postreboot_uri}= catenate SEPARATOR= ${post_reboot_event1} /action/delete
+ ${resp}= openbmc post request ${del_postreboot_uri} data=${NIL}
should be equal as strings ${resp.status_code} ${HTTP_OK}
clearing logs results in no logs
[Documentation] This testcase is for clearning the events when no logs present
[Tags] CI
- ${resp} = openbmc post request /org/openbmc/records/events/action/clear data=${NIL}
+ ${resp}= openbmc post request /org/openbmc/records/events/action/clear data=${NIL}
should be equal as strings ${resp.status_code} ${HTTP_OK}
- ${resp} = openbmc get request /org/openbmc/records/events/
- ${json} = to json ${resp.content}
+ ${resp}= openbmc get request /org/openbmc/records/events/
+ ${json}= to json ${resp.content}
Should Be Empty ${json['data']}
- ${resp} = openbmc post request /org/openbmc/records/events/action/clear data=${NIL}
+ ${resp}= openbmc post request /org/openbmc/records/events/action/clear data=${NIL}
should be equal as strings ${resp.status_code} ${HTTP_OK}
@@ -200,10 +200,10 @@
create a test log
[arguments]
- ${data} = create dictionary data=@{EMPTY}
- ${resp} = openbmc post request /org/openbmc/records/events/action/acceptTestMessage data=${data}
+ ${data}= create dictionary data=@{EMPTY}
+ ${resp}= openbmc post request /org/openbmc/records/events/action/acceptTestMessage data=${data}
should be equal as strings ${resp.status_code} ${HTTP_OK}
- ${json} = to json ${resp.content}
- ${LOGID} = convert to integer ${json['data']}
+ ${json}= to json ${resp.content}
+ ${LOGID}= convert to integer ${json['data']}
${uri}= catenate SEPARATOR= /org/openbmc/records/events/ ${LOGID}
[return] ${uri}