]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1010] Fixed errors in all_keys.json files
authorThomas Markwalder <tmark@isc.org>
Thu, 2 Apr 2020 17:25:03 +0000 (13:25 -0400)
committerFrancis Dupont <fdupont@isc.org>
Thu, 2 Apr 2020 19:09:48 +0000 (21:09 +0200)
doc/examples/kea4/all-keys.json
doc/examples/kea6/all-keys.json
src/bin/dhcp4/tests/parser_unittest.cc

index d7d1fd33407b2a52801d9e5011500bfdd888ebd1..bb4e43d7b76beea1b152fef3b1b94143b48a28d2 100644 (file)
 
         // Global value to store extended information (e.g. relay agent
         // information) with each lease.
-        "store-extended-info:" true,
+        "store-extended-info": true,
 
         // Governs how the Kea DHCPv4 server should deal with the invalid
         // data received from the client.
 
                 // Turn off storage of extended information (e.g. relay agent
                 // information) with each lease for this shared-network.
-                "store-extended-info:" false,
+                "store-extended-info": false,
 
                 // Shared network level server hostname set in 'sname' field.
                 "server-hostname": "",
 
                         // Turn on storage of extended information (e.g. relay agent
                         // information) with each lease for this subnet.
-                         "store-extended-info:" true,
+                        "store-extended-info": true,
 
                         // Subnet level list of DHCP options.
                         "option-data": [
index c6e3e29ac9943013ec38748e4a96796412be54b7..8d57b112d9d3ade5a2870a660317c170c2eed91a 100644 (file)
 
         // Global value to store extended information (e.g. relay agent
         // information) with each lease.
-        "store-extended-info:" true,
+        "store-extended-info": true,
 
         // Governs how the Kea DHCPv6 server should deal with the invalid
         // data received from the client.
 
                 // Turn off storage of extended information (e.g. relay agent
                 // information) with each lease for this shared-network.
-                "store-extended-info:" false,
+                "store-extended-info": false,
 
                 // List of IPv6 subnets belonging to this shared network.
                 "subnet6": [
 
                         // Turn on storage of extended information (e.g. relay agent
                         // information) with each lease for this subnet.
-                         "store-extended-info:" true,
+                        "store-extended-info": true,
 
                         // Subnet level list of DHCP options.
                         "option-data": [
index 61ff0b11736e92521a1187ad17995dadc4c8096c..bd9557ea92fa35f6cb9588997ad76b1ac6ef4563 100644 (file)
@@ -9,6 +9,7 @@
 #include <gtest/gtest.h>
 #include <dhcp4/parser_context.h>
 #include <dhcpsrv/parsers/simple_parser4.h>
+#include <testutils/gtest_utils.h>
 #include <testutils/io_utils.h>
 #include <testutils/user_context_utils.h>
 
@@ -238,7 +239,7 @@ void testFile(const std::string& fname) {
 
     cout << "Parsing file " << fname << " (" << decommented << ")" << endl;
 
-    EXPECT_NO_THROW(json = Element::fromJSONFile(decommented, true));
+    EXPECT_NO_THROW_LOG(json = Element::fromJSONFile(decommented, true));
     reference_json = moveComments(json);
 
     // remove the temporary file