REST logging footprint test
Changes:
- Fix tagging.
- Flush journald data.
Change-Id: Ie11e7b22550d057e21cb3752bfbd6a736fe025f8
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/remote_logging/test_remote_logging.robot b/remote_logging/test_remote_logging.robot
index 3b07a05..1d5bb9f 100644
--- a/remote_logging/test_remote_logging.robot
+++ b/remote_logging/test_remote_logging.robot
@@ -31,7 +31,7 @@
Verify REST Logging On BMC Journal When Disabled
[Documentation] Enable REST logging and verify from journald.
- [Tags] Verify_REST_Logging_On_BMC Journal_When_Disabled
+ [Tags] Verify_REST_Logging_On_BMC_Journal_When_Disabled
${log_dict}= Create Dictionary data=${False}
Write Attribute ${BMC_LOGGING_URI}${/}rest_api_logs Enabled data=${log_dict}
@@ -46,9 +46,9 @@
... msg=${bmc_journald} contains unexpected REST entries.
-Verify REST Logging On BMC Journal When Enable
+Verify REST Logging On BMC Journal When Enabled
[Documentation] Enable REST logging and verify from journald.
- [Tags] Verify_REST_Logging_On_BMC Journal_When_Enable
+ [Tags] Verify_REST_Logging_On_BMC_Journal_When_Enabled
${log_dict}= Create Dictionary data=${True}
Write Attribute ${BMC_LOGGING_URI}${/}rest_api_logs Enabled data=${log_dict}
@@ -200,8 +200,8 @@
Test Setup Execution
[Documentation] Do the test setup.
- # TODO: Enable when fixed openbmc/phosphor-rest-server#26
- #Remove Journald Logs
+ # Retain only the past 1 second log:
+ BMC Execute Command journalctl --vacuum-time=1s
${config_status}= Run Keyword And Return Status
... Get Remote Log Server Configured