From: JINMEI Tatuya Date: Wed, 18 Apr 2012 21:26:05 +0000 (-0700) Subject: [1891] enabled some DatabaseClientTest for add/del NSEC3s for SQLite3, too. X-Git-Tag: trac2351_base~226^2~116^2~25^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bcb62dd7e4d8a3bca40e3725aa457074ada36134;p=thirdparty%2Fkea.git [1891] enabled some DatabaseClientTest for add/del NSEC3s for SQLite3, too. They were originally planned to be enabled with the completion of this branch, but I forgot to enable them before review. As expected, they just passed for SQLite3, too. --- diff --git a/src/lib/datasrc/tests/database_unittest.cc b/src/lib/datasrc/tests/database_unittest.cc index 5b3a5dca6f..602ed24e47 100644 --- a/src/lib/datasrc/tests/database_unittest.cc +++ b/src/lib/datasrc/tests/database_unittest.cc @@ -3002,10 +3002,9 @@ TYPED_TEST(DatabaseClientTest, addRRsetToNewZone) { this->checkLastAdded(rrset_added); } -// Below we define a set of NSEC3 update tests. Right now this only works -// for the mock DB, but the plan is to make it a TYPED_TEST to share the case -// with SQLite3 implementation, too. - +// +// Below we define a set of NSEC3 update tests. +// // Commonly used data for NSEC3 update tests below. const char* const nsec3_hash = "1BB7SO0452U1QHL98UISNDD9218GELR5"; const char* const nsec3_rdata = "1 1 12 AABBCCDD " @@ -3045,7 +3044,7 @@ nsec3Check(const vector& expected_rrsets, actual_rrsets.begin(), actual_rrsets.end()); } -TEST_F(MockDatabaseClientTest, addDeleteNSEC3InZone) { +TYPED_TEST(DatabaseClientTest, addDeleteNSEC3InZone) { // Add one NSEC3 RR to the zone, delete it, and add another one. this->updater_ = this->client_->getUpdater(this->zname_, true); const ConstRRsetPtr nsec3_rrset = @@ -3066,7 +3065,7 @@ TEST_F(MockDatabaseClientTest, addDeleteNSEC3InZone) { *this->current_accessor_); } -TEST_F(MockDatabaseClientTest, addDeleteNSEC3AndRRSIGToZone) { +TYPED_TEST(DatabaseClientTest, addDeleteNSEC3AndRRSIGToZone) { // Add one NSEC3 RR and its RRSIG to the zone, delete the RRSIG and add // a new one. this->updater_ = this->client_->getUpdater(this->zname_, true); @@ -3639,10 +3638,7 @@ TYPED_TEST(DatabaseClientTest, journal) { this->checkJournal(expected); } -// At the moment this only works for the mock accessor. Once sqlite3 -// accessor supports updating NSEC3, this should be merged to the previous -// test -TEST_F(MockDatabaseClientTest, journalForNSEC3) { +TYPED_TEST(DatabaseClientTest, journalForNSEC3) { // Similar to the previous test, but adding/deleting NSEC3 RRs, just to // confirm that NSEC3 is not special for managing diffs. const ConstRRsetPtr nsec3_rrset =