"\"subnet4\": [ ],"
"\"valid-lifetime\": 4000 }"
"}";
- writeFile(config);
+ writeFile(TEST_FILE, config);
- // Create an instance of the server and intialize it.
+ // Create an instance of the server and initialize it.
boost::scoped_ptr<ControlledDhcpv4Srv> srv;
ASSERT_NO_THROW(srv.reset(new ControlledDhcpv4Srv(0)));
ASSERT_NO_THROW(srv->init(TEST_FILE));
"\"subnet4\": [ ],"
"\"valid-lifetime\": 4000 }"
"}";
- writeFile(config);
+ writeFile(TEST_FILE, config);
- // Create an instance of the server and intialize it.
+ // Create an instance of the server and initialize it.
boost::scoped_ptr<ControlledDhcpv4Srv> srv;
ASSERT_NO_THROW(srv.reset(new ControlledDhcpv4Srv(0)));
ASSERT_NO_THROW(srv->init(TEST_FILE));
JSONFileBackendMySQLTest::
testBackendReconfiguration(const std::string& backend_first,
const std::string& backend_second) {
- writeFile(createConfiguration(backend_first));
+ writeFile(TEST_FILE, createConfiguration(backend_first));
- // Create an instance of the server and intialize it.
+ // Create an instance of the server and initialize it.
boost::scoped_ptr<NakedControlledDhcpv4Srv> srv;
ASSERT_NO_THROW(srv.reset(new NakedControlledDhcpv4Srv()));
srv->setConfigFile(TEST_FILE);
/// @brief Parser for a list of host identifiers.
///
/// This is a parent parser class for parsing "host-reservation-identifiers"
- /// global configuration parmeter. The DHCPv4 and DHCPv6 specific parsers
+ /// global configuration parameter. The DHCPv4 and DHCPv6 specific parsers
/// derive from this class.
-class HostReservationIdsParser : public DhcpConfigParser {
+class HostReservationIdsParser : public isc::data::SimpleParser {
public:
/// @brief Constructor.
const size_t OID_TEXT = 25;
const size_t OID_VARCHAR = 1043;
const size_t OID_TIMESTAMP = 1114;
-
-//@}
+///@}
- /// @brief RAII wrapper for Posgtresql Result sets
+ /// @brief RAII wrapper for PostgreSQL Result sets
///
/// When a Postgresql statement is executed, the results are returned
/// in pointer allocated structure, PGresult*. Data and status information
<< " does not match expected count:" << NUM_STATEMENTS);
}
- pair<uint32_t, uint32_t> code_version(PG_CURRENT_VERSION, PG_CURRENT_MINOR);
+ pair<uint32_t, uint32_t> code_version(PG_SCHEMA_VERSION_MAJOR, PG_SCHEMA_VERSION_MINOR);
pair<uint32_t, uint32_t> db_version = getVersion();
if (code_version != db_version) {
- isc_throw(DbOpenError, "Posgresql schema version mismatch: need version: "
- << code_version.first << "." << code_version.second
- << " found version: " << db_version.first << "." << db_version.second);
+ isc_throw(DbOpenError,
+ "PostgreSQL schema version mismatch: need version: "
+ << code_version.first << "." << code_version.second
+ << " found version: " << db_version.first << "."
+ << db_version.second);
}
}