]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2124] Add another wiredata test with short fingerprint data
authorMukund Sivaraman <muks@isc.org>
Tue, 24 Jul 2012 05:27:10 +0000 (10:57 +0530)
committerMukund Sivaraman <muks@isc.org>
Tue, 24 Jul 2012 05:27:21 +0000 (10:57 +0530)
src/lib/dns/tests/rdata_sshfp_unittest.cc
src/lib/dns/tests/testdata/.gitignore
src/lib/dns/tests/testdata/Makefile.am
src/lib/dns/tests/testdata/rdata_sshfp_fromWire8.spec [new file with mode: 0644]

index 00105d2de7b316b2e6a91b0a1f286d634ac4036a..7759bfd40fbdd50e6c238c10dbf6dc050fcc57f9 100644 (file)
@@ -122,6 +122,10 @@ TEST_F(Rdata_SSHFP_Test, createFromWire) {
     // algorithm=255, fingerprint=255
     EXPECT_NO_THROW(rdataFactoryFromFile(RRType("SSHFP"), RRClass("IN"),
                                          "rdata_sshfp_fromWire7.wire"));
+
+    // short fingerprint data
+    EXPECT_NO_THROW(rdataFactoryFromFile(RRType("SSHFP"), RRClass("IN"),
+                                         "rdata_sshfp_fromWire8.wire"));
 }
 
 TEST_F(Rdata_SSHFP_Test, toText) {
index 5b217a8a35ba7f5d4acc70e8bd9bb82bedbebbca..e8879e1bd39056b84c32b9f83ee259740555dc01 100644 (file)
@@ -84,6 +84,7 @@
 /rdata_sshfp_fromWire5.wire
 /rdata_sshfp_fromWire6.wire
 /rdata_sshfp_fromWire7.wire
+/rdata_sshfp_fromWire8.wire
 /rdata_tsig_fromWire1.wire
 /rdata_tsig_fromWire2.wire
 /rdata_tsig_fromWire3.wire
index d4f95fbf80a56f4ff806f985b8fc917157f2e8ba..86de47630101f19b5e258cef43d9650d9d74faf8 100644 (file)
@@ -47,7 +47,7 @@ BUILT_SOURCES += rdata_rp_toWire1.wire rdata_rp_toWire2.wire
 BUILT_SOURCES += rdata_sshfp_fromWire1.wire rdata_sshfp_fromWire2.wire
 BUILT_SOURCES += rdata_sshfp_fromWire3.wire rdata_sshfp_fromWire4.wire
 BUILT_SOURCES += rdata_sshfp_fromWire5.wire rdata_sshfp_fromWire6.wire
-BUILT_SOURCES += rdata_sshfp_fromWire7.wire
+BUILT_SOURCES += rdata_sshfp_fromWire7.wire rdata_sshfp_fromWire8.wire
 BUILT_SOURCES += rdata_afsdb_fromWire1.wire rdata_afsdb_fromWire2.wire
 BUILT_SOURCES += rdata_afsdb_fromWire3.wire rdata_afsdb_fromWire4.wire
 BUILT_SOURCES += rdata_afsdb_fromWire5.wire
@@ -134,7 +134,7 @@ EXTRA_DIST += rdata_sshfp_fromWire rdata_sshfp_fromWire2
 EXTRA_DIST += rdata_sshfp_fromWire1.spec rdata_sshfp_fromWire2.spec
 EXTRA_DIST += rdata_sshfp_fromWire3.spec rdata_sshfp_fromWire4.spec
 EXTRA_DIST += rdata_sshfp_fromWire5.spec rdata_sshfp_fromWire6.spec
-EXTRA_DIST += rdata_sshfp_fromWire7.spec
+EXTRA_DIST += rdata_sshfp_fromWire7.spec rdata_sshfp_fromWire8.spec
 EXTRA_DIST += rdata_afsdb_fromWire1.spec rdata_afsdb_fromWire2.spec
 EXTRA_DIST += rdata_afsdb_fromWire3.spec rdata_afsdb_fromWire4.spec
 EXTRA_DIST += rdata_afsdb_fromWire5.spec
diff --git a/src/lib/dns/tests/testdata/rdata_sshfp_fromWire8.spec b/src/lib/dns/tests/testdata/rdata_sshfp_fromWire8.spec
new file mode 100644 (file)
index 0000000..98aa00f
--- /dev/null
@@ -0,0 +1,9 @@
+#
+# SSHFP RDATA
+#
+[custom]
+sections: sshfp
+[sshfp]
+fingerprint: 082359342fd9
+algorithm: 255
+fingerprint_type: 255