Commit cb52403a authored by Mukund Sivaraman's avatar Mukund Sivaraman Committed by JINMEI Tatuya
Browse files

[2497] Add tests for NSEC3PARAM-like rrtypes

parent a9a6007e
......@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment