]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1721] add hooks-libraries test for redaction
authorAndrei Pavel <andrei@isc.org>
Wed, 21 Apr 2021 17:14:07 +0000 (20:14 +0300)
committerAndrei Pavel <andrei@isc.org>
Fri, 21 May 2021 13:22:00 +0000 (13:22 +0000)
src/lib/testutils/dhcp_test_lib.sh.in

index 73ffd02264198a92494c1db961a355f9cb641eb8..2d1e36b92074b6f7e6c51a3e15f5f6bdfc01a8f6 100644 (file)
@@ -1075,6 +1075,19 @@ kea_dhcp_config() {
         }
       ]
     },
+    "hooks-libraries": [
+      {
+        "library": "@abs_top_builddir@/src/bin/dhcp%s/tests/.libs/libco1.so",
+        "parameters": {
+          "password": "sensitive",
+          "user": "keatest",
+          "nested-map": {
+            "password": "sensitive",
+            "user": "keatest"
+          }
+        }
+      }
+    ],
     "hosts-database": {
       "password": "sensitive",
       "type": "mysql",
@@ -1095,5 +1108,5 @@ kea_dhcp_config() {
     }
   }
 }
-' "${1}"
+' "${1}" "${1}"
 }