]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[148-lib-process-servers-without-arguments] trailing spaces
authorFrancis Dupont <fdupont@isc.org>
Wed, 17 Oct 2018 14:01:13 +0000 (16:01 +0200)
committerFrancis Dupont <fdupont@isc.org>
Fri, 19 Oct 2018 21:35:35 +0000 (23:35 +0200)
src/lib/process/tests/config_base_unittests.cc
src/lib/process/tests/config_ctl_parser_unittests.cc
src/lib/process/tests/log_parser_unittests.cc

index a749c98c69040ad5f033d1fce09970633a150c76..0b45bd03cc149bbbe254830789cb383ce348f6fa 100644 (file)
@@ -34,7 +34,7 @@ TEST(ConfigBase, configControlInfoTests) {
     ctl_info1->addConfigDatabase("type=mysql host=example.com");
     ctl_info1->addConfigDatabase("type=mysql host=example2.com");
 
-    // Create a ConfigBase 
+    // Create a ConfigBase
     ConfigBaseImpl base1;
     base1.setConfigControlInfo(ctl_info1);
 
index 9a1f13643143825c9045752e52bf07079369aef4..bf1be4d1ac619bf0a639303b3b979a28524318f6 100644 (file)
@@ -24,7 +24,7 @@ TEST(ConfigCtlInfoParser, validConfigs) {
     std::string configs[] = {
        "{}",
 
-       "{ \"config-databases\": [] }", 
+       "{ \"config-databases\": [] }",
 
        "{ \"config-databases\": [ \n"
        "    { \n"
@@ -37,7 +37,7 @@ TEST(ConfigCtlInfoParser, validConfigs) {
        "        \"user\":\"bob\", \n"
        "        \"password\":\"wonder\" \n"
        "    } \n"
-       "] } \n" 
+       "] } \n"
     };
 
     for (auto config : configs) {
@@ -59,7 +59,7 @@ TEST(ConfigCtlInfoParser, validConfigs) {
 
         // When the config is empty, ControlConfigInfo::toElement still
         // generates a map with an empty db list.  Replace source for
-        // element comparison below. 
+        // element comparison below.
         if (source_elem->size() == 0) {
             ASSERT_NO_THROW (source_elem = Element::fromJSON(
                             "{ \"config-databases\": [] }"));
@@ -74,12 +74,12 @@ TEST(ConfigCtlInfoParser, validConfigs) {
 TEST(ConfigCtlInfoParser, invalidConfigs) {
     // Note that configurations are must be valid JSON, but invalid logically.
     std::string configs[] = {
-       "{ \"config-databases\": \"not_list\" }", 
+       "{ \"config-databases\": \"not_list\" }",
        "{ \"config-databases\": [ \n"
        "    { \n"
        "        \"bogus\": \"param\" \n"
        "    } \n"
-       "] } \n" 
+       "] } \n"
     };
 
     for (auto config : configs) {
@@ -91,7 +91,7 @@ TEST(ConfigCtlInfoParser, invalidConfigs) {
                 " JSON error, test is broken: " << config;
 
         // Parse the Elements into a ConfigControlInfo.
-        ASSERT_THROW(parser.parse(source_elem), isc::ConfigError) 
+        ASSERT_THROW(parser.parse(source_elem), isc::ConfigError)
                      << "config: " << config;
     }
 }
index d66f05903cd82cfc10fab5c8e32841328414dc5c..b2debe68bbf39ee0590cbdc0e7e9cb947cdfd310 100644 (file)
@@ -73,7 +73,7 @@ class LoggingTest : public ::testing::Test {
 };
 
 const char* LoggingTest::TEST_LOG_NAME = "kea.test.log";
-const int LoggingTest::TEST_MAX_SIZE = 204800;  // Smallest without disabling rotation 
+const int LoggingTest::TEST_MAX_SIZE = 204800;  // Smallest without disabling rotation
 const int LoggingTest::TEST_MAX_VERS = 2;       // More than the default of 1
 
 // Checks that the constructor is able to process specified storage properly.