summaryrefslogtreecommitdiffstats
path: root/test/remote_logging_test_port.cpp
diff options
context:
space:
mode:
authorDeepak Kodihalli <dkodihal@in.ibm.com>2018-08-30 05:05:46 -0500
committerDeepak Kodihalli <dkodihal@in.ibm.com>2018-08-31 04:41:24 -0500
commit834dcf100f87966bdcb322afda4c23fa4135c021 (patch)
tree54afe01da2c6f29b73f589821e7ad6927c6c1359 /test/remote_logging_test_port.cpp
parent2ce7b2c37e634da4e38e63f560d04707506746a2 (diff)
downloadphosphor-logging-834dcf100f87966bdcb322afda4c23fa4135c021.tar.gz
phosphor-logging-834dcf100f87966bdcb322afda4c23fa4135c021.zip
phosphor-rsyslog-conf: add unit tests
Add tests related to setting remote server IP address and port. Change-Id: I35ac539a8316d34245ee6b1abcb9f48c1ebe5095 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
Diffstat (limited to 'test/remote_logging_test_port.cpp')
-rw-r--r--test/remote_logging_test_port.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/remote_logging_test_port.cpp b/test/remote_logging_test_port.cpp
new file mode 100644
index 0000000..a9d3bc3
--- /dev/null
+++ b/test/remote_logging_test_port.cpp
@@ -0,0 +1,18 @@
+#include "remote_logging_tests.hpp"
+
+namespace phosphor
+{
+namespace logging
+{
+namespace test
+{
+
+TEST_F(TestRemoteLogging, testGoodPort)
+{
+ config->port(100);
+ EXPECT_EQ(config->port(), 100);
+}
+
+}// namespace test
+}// namespace logging
+}// namespace phosphor
OpenPOWER on IntegriCloud