BIND 10 trac3084, updated. 7dfb7839854252b4b6ec9ac626af0e4f2066d919 [3084] Added test cases to cover lease updates in MySQL.
BIND 10 source code commits
bind10-changes at lists.isc.org
Tue Aug 27 12:24:07 UTC 2013
The branch, trac3084 has been updated
via 7dfb7839854252b4b6ec9ac626af0e4f2066d919 (commit)
from f09a4f68f8397b150a94b6f9b78da60b117a8fe1 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 7dfb7839854252b4b6ec9ac626af0e4f2066d919
Author: Marcin Siodelski <marcin at isc.org>
Date: Tue Aug 27 14:23:52 2013 +0200
[3084] Added test cases to cover lease updates in MySQL.
-----------------------------------------------------------------------
Summary of changes:
src/lib/dhcpsrv/tests/mysql_lease_mgr_unittest.cc | 6 ++++++
1 file changed, 6 insertions(+)
-----------------------------------------------------------------------
diff --git a/src/lib/dhcpsrv/tests/mysql_lease_mgr_unittest.cc b/src/lib/dhcpsrv/tests/mysql_lease_mgr_unittest.cc
index 2086284..6a8f538 100644
--- a/src/lib/dhcpsrv/tests/mysql_lease_mgr_unittest.cc
+++ b/src/lib/dhcpsrv/tests/mysql_lease_mgr_unittest.cc
@@ -1321,6 +1321,9 @@ TEST_F(MySqlLeaseMgrTest, updateLease4) {
// Modify some fields in lease 1 (not the address) and update it.
++leases[1]->subnet_id_;
leases[1]->valid_lft_ *= 2;
+ leases[1]->hostname_ = "modified.hostname.";
+ leases[1]->fqdn_fwd_ = !leases[1]->fqdn_fwd_;
+ leases[1]->fqdn_rev_ = !leases[1]->fqdn_rev_;;
lmptr_->updateLease4(leases[1]);
// ... and check what is returned is what is expected.
@@ -1372,6 +1375,9 @@ TEST_F(MySqlLeaseMgrTest, updateLease6) {
++leases[1]->iaid_;
leases[1]->type_ = Lease6::LEASE_IA_PD;
leases[1]->valid_lft_ *= 2;
+ leases[1]->hostname_ = "modified.hostname.v6.";
+ leases[1]->fqdn_fwd_ = !leases[1]->fqdn_fwd_;
+ leases[1]->fqdn_rev_ = !leases[1]->fqdn_rev_;;
lmptr_->updateLease6(leases[1]);
lmptr_->commit();
More information about the bind10-changes
mailing list