Commit c91c89ac authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[1638] adjusted NSEC3PARAM testdata so it's compatible with corresponding NSEC3

test data.  some test cases were adjusted accordingly, too.
parent c356ad2e
......@@ -41,14 +41,14 @@ using namespace isc::dns::rdata;
namespace {
class Rdata_NSEC3PARAM_Test : public RdataTest {
public:
Rdata_NSEC3PARAM_Test() : nsec3param_txt("1 0 1 D399EAAB") {}
Rdata_NSEC3PARAM_Test() : nsec3param_txt("1 1 1 D399EAAB") {}
const string nsec3param_txt;
};
TEST_F(Rdata_NSEC3PARAM_Test, fromText) {
// With a salt
EXPECT_EQ(1, generic::NSEC3PARAM(nsec3param_txt).getHashalg());
EXPECT_EQ(0, generic::NSEC3PARAM(nsec3param_txt).getFlags());
EXPECT_EQ(1, generic::NSEC3PARAM(nsec3param_txt).getFlags());
// (salt is checked in the toText test)
// With an empty salt
......
# RDLENGTH, 9 bytes
00 09
# NSEC3PARAM record
# 1 0 1 D399EAAB
01 00 00 01 04 d3 99 ea ab
# 1 1 1 D399EAAB
01 01 00 01 04 d3 99 ea ab
Supports Markdown
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