Test remote logging configuration

Changes:
    - Test using dummy IP and port to verify that  etc/ file can
      be updated.

Change-Id: I218bac64682bf0e97d93fe545bd87c2f62bb691b
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/test_lists/HW_CI b/test_lists/HW_CI
index 5f459e0..f521623 100644
--- a/test_lists/HW_CI
+++ b/test_lists/HW_CI
@@ -1,3 +1,5 @@
+# rsyslog test.
+-i Test_Remote_Logging_Configuration
 #Verify SSH and IPMI interfaces
 -i Test_SSH_And_IPMI_Connections
 #REST SSL connection test.
diff --git a/tests/test_basic_poweron.robot b/tests/test_basic_poweron.robot
index b91610a..1102fd7 100644
--- a/tests/test_basic_poweron.robot
+++ b/tests/test_basic_poweron.robot
@@ -9,6 +9,7 @@
 Resource            ../lib/open_power_utils.robot
 Resource            ../lib/ipmi_client.robot
 Resource            ../lib/boot_utils.robot
+Resource            ../lib/remote_logging_utils.robot
 
 Test Teardown       FFDC On Test Case Fail
 
@@ -29,6 +30,21 @@
 
 *** Test Cases ***
 
+Test Remote Logging Configuration
+    [Documentation]  Configure remote log server and verify configuration.
+    [Tags]  Test_Remote_Logging_Configuration
+
+    # Dummy IP and port to update /etc/rsyslog.d/server.conf
+    Configure Remote Log Server With Parameters
+    ...  remote_host=10.10.10.10  remote_port=514
+
+    Verify Rsyslog Config On BMC  remote_host=10.10.10.10  remote_port=514
+
+    # Reset to default configuration.
+    Configure Remote Log Server With Parameters
+    ...  remote_host=${EMPTY}  remote_port=0
+
+
 Verify Front And Rear LED At Standby
     [Documentation]  Front and Rear LED should be off at standby.
     [Tags]  Verify_Front_And_Rear_LED_At_Standby