]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[1638] adjusted NSEC3PARAM testdata so it's compatible with corresponding NSEC3
authorJINMEI Tatuya <jinmei@isc.org>
Wed, 15 Feb 2012 02:58:22 +0000 (18:58 -0800)
committerJINMEI Tatuya <jinmei@isc.org>
Wed, 15 Feb 2012 02:58:22 +0000 (18:58 -0800)
test data.  some test cases were adjusted accordingly, too.

src/lib/dns/tests/rdata_nsec3param_unittest.cc
src/lib/dns/tests/testdata/rdata_nsec3param_fromWire1

index 5ee26c504aa4fafc5cf894e1b552c79d823c0832..c357579446a28b4841f4136379452169e56abf6f 100644 (file)
@@ -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
index 3f99f9d9da67db9d42c90bdec93f4e6dcf65412a..1b8697ff831317710423468095ef0c33c8f3eb89 100644 (file)
@@ -1,5 +1,5 @@
 # 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