Commit 005602d0 authored by Francis Dupont's avatar Francis Dupont

[148-lib-process-servers-without-arguments] trailing spaces

parent dab02bea
......@@ -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);
......
......@@ -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;
}
}
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment