BaseServerTest::~BaseServerTest() {
// Remove default lease file.
std::ostringstream s2;
- s2 << CfgMgr::instance().getDataDir() << "/" << "kea-leases4.csv";
+ s2 << CfgMgr::instance().getDataDir() << "/kea-leases4.csv";
static_cast<void>(::remove(s2.str().c_str()));
// Revert to original data directory.
// Remove default lease file.
std::ostringstream s2;
- s2 << CfgMgr::instance().getDataDir() << "/" << "kea-leases6.csv";
+ s2 << CfgMgr::instance().getDataDir() << "/kea-leases6.csv";
static_cast<void>(::remove(s2.str().c_str()));
// Revert to original data directory.
EXPECT_EQ(final_state.state_, service_->getCurrState())
<< "expected transition to the '"
<< service_->getStateLabel(final_state.state_)
- << "' state" << ", but transitioned to the '"
+ << "' state, but transitioned to the '"
<< service_->getStateLabel(service_->getCurrState())
<< "' state";
}
// Allow 1% of clock skew
EXPECT_TRUE(test_runtime >= boost::posix_time::milliseconds(99)) <<
"test runtime " << test_runtime.total_milliseconds() <<
- "msec " << ">= 100";
+ "msec >= 100";
}
TEST_F(IntervalTimerTest, destructIntervalTimer) {
std::ostringstream version;
version << CQL_SCHEMA_VERSION_MAJOR << "." << CQL_SCHEMA_VERSION_MINOR;
- cmd << "cql/wipe_data.sh" << " " << version.str()
+ cmd << "cql/wipe_data.sh " << version.str()
<< " -u keatest -p keatest -k keatest --request-timeout=6000";
if (!show_err) {
-// Copyright (C) 2013-2018 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2013-2021 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
Option6ClientFqdn::toText(int indent) const {
std::ostringstream stream;
std::string in(indent, ' '); // base indentation
- stream << in << "type=" << type_ << "(CLIENT_FQDN)" << ", "
+ stream << in << "type=" << type_ << "(CLIENT_FQDN), "
<< "flags: ("
<< "N=" << (getFlag(FLAG_N) ? "1" : "0") << ", "
<< "O=" << (getFlag(FLAG_O) ? "1" : "0") << ", "
-// Copyright (C) 2013-2020 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2013-2021 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
close(fallback);
isc_throw(SocketConfigError, "failed to set SO_NONBLOCK option on the"
" LPF socket '" << sock << "' to interface '"
- << iface.getName() << "'" << ", reason: " << errmsg);
+ << iface.getName() << "', reason: " << errmsg);
}
return (SocketInfo(addr, port, sock, fallback));
if (has_renew) {
renew = getInteger(network_data, "renew-timer");
if (renew < 0) {
- isc_throw(DhcpConfigError, "the value of renew-timer" << " ("
+ isc_throw(DhcpConfigError, "the value of renew-timer ("
<< renew << ") must be a positive number");
}
network->setT1(renew);
if (has_rebind) {
rebind = getInteger(network_data, "rebind-timer");
if (rebind < 0) {
- isc_throw(DhcpConfigError, "the value of rebind-timer" << " ("
+ isc_throw(DhcpConfigError, "the value of rebind-timer ("
<< rebind << ") must be a positive number");
}
network->setT2(rebind);
}
if (has_renew && has_rebind && (renew > rebind)) {
- isc_throw(DhcpConfigError, "the value of renew-timer" << " (" << renew
- << ") is greater than the value of rebind-timer" << " ("
+ isc_throw(DhcpConfigError, "the value of renew-timer (" << renew
+ << ") is greater than the value of rebind-timer ("
<< rebind << ")");
}
// Arrays can't be used together with sub-options.
if (array_type) {
isc_throw(DhcpConfigError, "option '" << space << "."
- << "name" << "', comprising an array of data"
+ << name << "', comprising an array of data"
<< " fields may not encapsulate any option space ("
<< option_def->getPosition() << ")");
}
if (has_renew && has_rebind && (renew > rebind)) {
- isc_throw(DhcpConfigError, "the value of renew-timer" << " (" << renew
- << ") is greater than the value of rebind-timer" << " ("
+ isc_throw(DhcpConfigError, "the value of renew-timer (" << renew
+ << ") is greater than the value of rebind-timer ("
<< rebind << ")");
}
}
if (has_renew && has_rebind && (renew > rebind)) {
- isc_throw(DhcpConfigError, "the value of renew-timer" << " (" << renew
- << ") is greater than the value of rebind-timer" << " ("
+ isc_throw(DhcpConfigError, "the value of renew-timer (" << renew
+ << ") is greater than the value of rebind-timer ("
<< rebind << ")");
}
-// Copyright (C) 2012-2020 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2012-2021 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
if (observation->getInteger().first != exp_value) {
ADD_FAILURE()
<< "value of the observed statistics '"
- << name << "' " << "("
+ << name << "' ("
<< observation->getInteger().first << ") "
<< "doesn't match expected value (" << exp_value << ")";
}
SrvConfigTest::addSubnet4(const unsigned int index) {
if (index >= TEST_SUBNETS_NUM) {
FAIL() << "Subnet index " << index << "out of range (0.."
- << TEST_SUBNETS_NUM << "): " << "unable to add IPv4 subnet";
+ << TEST_SUBNETS_NUM << "): unable to add IPv4 subnet";
}
// std::advance is not available for this iterator.
auto it = test_subnets4_.begin();
SrvConfigTest::addSubnet6(const unsigned int index) {
if (index >= TEST_SUBNETS_NUM) {
FAIL() << "Subnet index " << index << "out of range (0.."
- << TEST_SUBNETS_NUM << "): " << "unable to add IPv6 subnet";
+ << TEST_SUBNETS_NUM << "): unable to add IPv6 subnet";
}
// std::advance is not available for this iterator.
auto it = test_subnets6_.begin();
-// Copyright (C) 2012-2020 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2012-2021 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
stringstream zone_stream;
zone_stream << "example.org. IN SOA . . 0 0 0 0 2147483648\n";
zone_stream << "$TTL 3600\n"; // reset to an in-range value
- zone_stream << "$TTL 2147483649\n" << "a.example.org. IN A 192.0.2.1\n";
+ zone_stream << "$TTL 2147483649\n";
+ zone_stream << "a.example.org. IN A 192.0.2.1\n";
zone_stream << "$TTL 3600\n"; // reset to an in-range value
zone_stream << "b.example.org. 2147483650 IN A 192.0.2.2\n";
setLoader(zone_stream, Name("example.org."), RRClass::IN(),
-// Copyright (C) 2017 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2017-2021 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
isc_throw(InvalidHooksLibraries,
"hooks libraries failed to validate - "
"library or libraries in error are: "
- << error_list << "(" << position << ")");
+ << error_list << " (" << position << ")");
}
}
std::ostringstream version;
version << MYSQL_SCHEMA_VERSION_MAJOR << "." << MYSQL_SCHEMA_VERSION_MINOR;
- cmd << "mysql/wipe_data.sh" << " " << version.str()
+ cmd << "mysql/wipe_data.sh " << version.str()
<< " -N -B --user=keatest --password=keatest keatest";
if (!show_err) {
cmd << " 2>/dev/null ";
-// Copyright (C) 2016-2020 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2016-2021 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// Apparently it wasn't fatal, so we throw with a helpful message.
const char* error_message = PQerrorMessage(conn_);
- isc_throw(DbOperationError, "Statement exec failed:" << " for: "
+ isc_throw(DbOperationError, "Statement exec failed for: "
<< statement.name << ", status: " << s
<< "sqlstate:[ " << (sqlstate ? sqlstate : "<null>")
<< " ], reason: " << error_message);