]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Formatting 11726/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 27 Jun 2022 09:25:06 +0000 (11:25 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 27 Jun 2022 09:26:36 +0000 (11:26 +0200)
pdns/recursordist/test-rec-zonetocache.cc

index 48e3bf43cef66a544f248827ab4cd8b57736d0b4..d1256ac2f56e19388a6db6a6feef1c9c17bb02b0 100644 (file)
@@ -57,7 +57,6 @@ const std::string badZONEMD = ".      86400   IN      ZONEMD  2021080900 1 1 0ad404980c735405
 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";
@@ -120,17 +119,15 @@ BOOST_AUTO_TEST_CASE(test_zonetocache)
 }
 
 // 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)
 {
@@ -169,7 +166,6 @@ static void zonemdGenericTest(const std::string& lines, pdns::ZoneMD::Config mod
   }
 }
 
-
 BOOST_AUTO_TEST_CASE(test_zonetocachegeneric)
 {
   zonemdGenericTest(genericTest, pdns::ZoneMD::Config::Require, pdns::ZoneMD::Config::Ignore, 4U);