BIND 10 trac2497, updated. 9e98b4768d26c1ea8accf3f53f9c019ff66347b6 [2497] Add tests for NSEC3PARAM-like rrtypes
BIND 10 source code commits
bind10-changes at lists.isc.org
Fri Nov 30 12:44:34 UTC 2012
The branch, trac2497 has been updated
via 9e98b4768d26c1ea8accf3f53f9c019ff66347b6 (commit)
from 43292d60d91cd8656856c88dfefce186412b64b1 (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 9e98b4768d26c1ea8accf3f53f9c019ff66347b6
Author: Mukund Sivaraman <muks at isc.org>
Date: Fri Nov 30 18:14:21 2012 +0530
[2497] Add tests for NSEC3PARAM-like rrtypes
-----------------------------------------------------------------------
Summary of changes:
.../dns/tests/rdata_nsec3param_like_unittest.cc | 13 +++++++++++++
1 file changed, 13 insertions(+)
-----------------------------------------------------------------------
diff --git a/src/lib/dns/tests/rdata_nsec3param_like_unittest.cc b/src/lib/dns/tests/rdata_nsec3param_like_unittest.cc
index 51fef01..04aa42b 100644
--- a/src/lib/dns/tests/rdata_nsec3param_like_unittest.cc
+++ b/src/lib/dns/tests/rdata_nsec3param_like_unittest.cc
@@ -208,6 +208,19 @@ TYPED_TEST(NSEC3PARAMLikeTest, createFromWire) {
EXPECT_EQ(0, this->convert(*rdata).getSalt().size());
}
+TYPED_TEST(NSEC3PARAMLikeTest, createFromLexer) {
+ EXPECT_EQ(0, this->fromText(this->salt_txt).compare(
+ *test::createRdataUsingLexer(this->getType(), RRClass::IN(),
+ this->salt_txt)));
+
+ // Check that bad input throws as usual (too large algorithm)
+ EXPECT_THROW({
+ *test::createRdataUsingLexer(this->getType(), RRClass::IN(),
+ "1000000 1 1 ADDAFEEE" +
+ this->getCommonText());
+ }, InvalidRdataText);
+}
+
template <typename OUTPUT_TYPE>
void
toWireCheck(RRType rrtype, OUTPUT_TYPE& output, const string& data_file) {
More information about the bind10-changes
mailing list