mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-30 21:45:37 +00:00
[2497] Add tests for NSEC3PARAM-like rrtypes
This commit is contained in:
committed by
JINMEI Tatuya
parent
a9a6007e02
commit
cb52403a8a
@@ -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) {
|
||||
|
Reference in New Issue
Block a user