Quiet delete errorlog and listing console logging
Resolves openbmc/openbmc-test-automation#750
Change-Id: Iff4f13677d860aa58262037cec20e820ce03da05
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/lib/rest_client.robot b/lib/rest_client.robot
index 4fa1bc3..ff3142a 100644
--- a/lib/rest_client.robot
+++ b/lib/rest_client.robot
@@ -183,11 +183,11 @@
${json}= to json ${resp.content}
Read Properties
- [Arguments] ${uri} ${timeout}=10
- ${resp}= OpenBMC Get Request ${uri} timeout=${timeout}
- Should Be Equal As Strings ${resp.status_code} ${HTTP_OK}
- ${content}= To Json ${resp.content}
- [Return] ${content["data"]}
+ [Arguments] ${uri} ${timeout}=10 ${quiet}=${QUIET}
+ ${resp}= OpenBMC Get Request ${uri} timeout=${timeout} quiet=${quiet}
+ Should Be Equal As Strings ${resp.status_code} ${HTTP_OK}
+ ${content}= To Json ${resp.content}
+ [Return] ${content["data"]}
Call Method
[Arguments] ${uri} ${method} ${timeout}=10 ${quiet}=${QUIET} &{kwargs}
diff --git a/lib/utils.robot b/lib/utils.robot
index 7534de7..fd52d78 100755
--- a/lib/utils.robot
+++ b/lib/utils.robot
@@ -663,7 +663,7 @@
# openbmc_url URL for list operation (e.g.
# /xyz/openbmc_project/inventory).
- ${url_list}= Read Properties ${openbmc_url}/list
+ ${url_list}= Read Properties ${openbmc_url}/list quiet=${1}
[Return] ${url_list}
Get Endpoint Paths
@@ -932,11 +932,11 @@
[Documentation] Delete error logs.
# Check if error logs entries exist, if not return.
- ${resp}= OpenBMC Get Request /xyz/openbmc_project/logging/entry/list
+ ${resp}= OpenBMC Get Request ${BMC_LOGGING_ENTRY}${/}list quiet=${1}
Return From Keyword If ${resp.status_code} == ${HTTP_NOT_FOUND}
# Get the list of error logs entries and delete them all.
- ${elog_entries}= Get URL List /xyz/openbmc_project/logging/entry
+ ${elog_entries}= Get URL List ${BMC_LOGGING_ENTRY}
:FOR ${entry} IN @{elog_entries}
\ Delete Error Log Entry ${entry}