# tables.
#
# Initialize database to schema 1.0.
- pgsql_execute_script "/home/tmark/labs/build/keadev/sandbox/git.2276/kea/src/bin/admin/tests/dhcpdb_create_1.0.pgsql"
+ pgsql_execute_script "@abs_top_srcdir@/src/bin/admin/tests/dhcpdb_create_1.0.pgsql"
assert_eq 0 "${EXIT_CODE}" "cannot initialize 1.0 database, expected exit code: %d, actual: %d"
# Now upgrade to schema 17.0
if (selectNextServer()) {
// We have a server to try.
transition(ADDING_FWD_ADDRS_ST, SERVER_SELECTED_EVT);
- }
- else {
+ } else {
// Server list is exhausted, so fail the transaction.
transition(PROCESS_TRANS_FAILED_ST, NO_MORE_SERVERS_EVT);
}
if (selectNextServer()) {
// We have a server to try.
transition(REMOVING_FWD_ADDRS_ST, SERVER_SELECTED_EVT);
- }
- else {
+ } else {
// Server list is exhausted, so fail the transaction.
transition(PROCESS_TRANS_FAILED_ST, NO_MORE_SERVERS_EVT);
}
// There are no prerequisites.
- // Create the FQDN/IP PTR 'delete' RR for this IP and add it to
+ // Create the FQDN/IP PTR 'delete' RR for this IP and add it to
// the update section.
dns::RRsetPtr update(new dns::RRset(rev_ip, dns::RRClass::ANY(),
dns::RRType::PTR(), dns::RRTTL(0)));
return ("config-database");
case COMPATIBILITY:
return ("compatibility");
+ case DDNS_CONFLICT_RESOLUTION_MODE:
+ return ("ddns-conflict-resolution-mode");
default:
return ("__unknown__");
}
return ("config-database");
case COMPATIBILITY:
return ("compatibility");
+ case DDNS_CONFLICT_RESOLUTION_MODE:
+ return ("ddns-conflict-resolution-mode");
default:
return ("__unknown__");
}
/// @param fd_to_check The file descriptor to test
///
/// @return Returns less than one on an error, 0 if the fd is not ready to
-/// read, > 0 if it is ready to read.
+/// read, > 0 if it is ready to read.
int selectCheck(int fd_to_check);
}; // namespace isc::dhcp_ddns;
}; // namespace isc;
-#endif
+#endif
}
}
-#if 0
-// Verifies the conflict resolution mode if the older configuration item
-// is specified
-TEST_F(SrvConfigTest, getDdnsConflictResolutionMode) {
- DdnsParamsPtr params;
-
- CfgMgr::instance().setFamily(AF_INET);
- SrvConfig conf(32);
-
- // Enable conflict resolution globally.
- conf.addConfiguredGlobal("ddns-use-conflict-resolution", Element::create(true));
-
- // Add a plain subnet
- Triplet<uint32_t> def_triplet;
- Subnet4Ptr subnet1(new Subnet4(IOAddress("192.0.1.0"), 24,
- def_triplet, def_triplet, 4000, SubnetID(1)));
- /// TKM - does this make sense?
- subnet1->setDdnsUseConflictResolution(false);
-
- // In order to take advantage of the dynamic inheritance of global
- // parameters to a subnet we need to set a callback function for each
- // subnet to allow for fetching global parameters.
- subnet1->setFetchGlobalsFn([conf]() -> ConstCfgGlobalsPtr {
- return (conf.getConfiguredGlobals());
- });
-
- conf.getCfgSubnets4()->add(subnet1);
-
- // Get DDNS params for subnet1.
- ASSERT_NO_THROW(params = conf_.getDdnsParams(subnet1));
-
- // Verify subnet1 values are right.
- EXPECT_FALSE(params->getUseConflictResolution());
- EXPECT_EQ("no-check-with-dhcid", params->getConflictResolutionMode());
-}
-#endif
-
} // end of anonymous namespace