const std::string zoneWithBadZONEMD = zone + badZONEMD;
const std::string zoneWithGoodZONEMD = zone + goodZONEMD;
-
static void zonemdTest(const std::string& lines, pdns::ZoneMD::Config mode, pdns::ZoneMD::Config dnssec, size_t expectedCacheSize)
{
char temp[] = "/tmp/ztcXXXXXXXXXX";
}
// Example from https://github.com/verisign/zonemd-test-cases/blob/master/zones/20-generic-zonemd/example.zone
-const std::string genericTest =
-"example. 86400 IN NS ns.example.\n"
-"example. 86400 IN SOA ns.example. admin.example. 2018031900 1800 900 604800 86400\n"
- "example. 86400 IN TYPE63 \\# 54 7848b91c01018ee54f64ce0d57fd70e1a4811a9ca9e849e2e50cb598edf3ba9c2a58625335c1f966835f0d4338d9f78f557227d63bf6\n"
- "ns.example. 3600 IN A 127.0.0.1\n";
-
-const std::string genericBadTest =
-"example. 86400 IN NS ns.example.\n"
-"example. 86400 IN SOA ns.example. admin.example. 2018031900 1800 900 604800 86400\n"
- "example. 86400 IN TYPE63 \\# 54 8848b91c01018ee54f64ce0d57fd70e1a4811a9ca9e849e2e50cb598edf3ba9c2a58625335c1f966835f0d4338d9f78f557227d63bf6\n"
- "ns.example. 3600 IN A 127.0.0.1\n";
+const std::string genericTest = "example. 86400 IN NS ns.example.\n"
+ "example. 86400 IN SOA ns.example. admin.example. 2018031900 1800 900 604800 86400\n"
+ "example. 86400 IN TYPE63 \\# 54 7848b91c01018ee54f64ce0d57fd70e1a4811a9ca9e849e2e50cb598edf3ba9c2a58625335c1f966835f0d4338d9f78f557227d63bf6\n"
+ "ns.example. 3600 IN A 127.0.0.1\n";
+
+const std::string genericBadTest = "example. 86400 IN NS ns.example.\n"
+ "example. 86400 IN SOA ns.example. admin.example. 2018031900 1800 900 604800 86400\n"
+ "example. 86400 IN TYPE63 \\# 54 8848b91c01018ee54f64ce0d57fd70e1a4811a9ca9e849e2e50cb598edf3ba9c2a58625335c1f966835f0d4338d9f78f557227d63bf6\n"
+ "ns.example. 3600 IN A 127.0.0.1\n";
static void zonemdGenericTest(const std::string& lines, pdns::ZoneMD::Config mode, pdns::ZoneMD::Config dnssec, size_t expectedCacheSize)
{
}
}
-
BOOST_AUTO_TEST_CASE(test_zonetocachegeneric)
{
zonemdGenericTest(genericTest, pdns::ZoneMD::Config::Require, pdns::ZoneMD::Config::Ignore, 4U);