]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
add more missing name in update rule checks
authorMark Andrews <marka@isc.org>
Sun, 9 Sep 2018 23:52:36 +0000 (09:52 +1000)
committerMark Andrews <marka@isc.org>
Mon, 10 Sep 2018 07:47:59 +0000 (17:47 +1000)
(cherry picked from commit d1f8e116dbd4a4c627883be07e5c8a65967ae2dc)

bin/tests/system/checkconf/bad-update-policy10.conf [new file with mode: 0644]
bin/tests/system/checkconf/bad-update-policy11.conf [new file with mode: 0644]
bin/tests/system/checkconf/bad-update-policy12.conf [new file with mode: 0644]
bin/tests/system/checkconf/bad-update-policy13.conf [new file with mode: 0644]
bin/tests/system/checkconf/bad-update-policy14.conf [new file with mode: 0644]
bin/tests/system/checkconf/bad-update-policy15.conf [new file with mode: 0644]
bin/tests/system/checkconf/tests.sh

diff --git a/bin/tests/system/checkconf/bad-update-policy10.conf b/bin/tests/system/checkconf/bad-update-policy10.conf
new file mode 100644 (file)
index 0000000..8c9a4ad
--- /dev/null
@@ -0,0 +1,18 @@
+/*
+ * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * See the COPYRIGHT file distributed with this work for additional
+ * information regarding copyright ownership.
+ */
+
+zone "example.com" {
+       type master;
+       file "example.com.db";
+       update-policy {
+               grant * krb5-selfsub TXT;
+       };
+};
diff --git a/bin/tests/system/checkconf/bad-update-policy11.conf b/bin/tests/system/checkconf/bad-update-policy11.conf
new file mode 100644 (file)
index 0000000..6f81c31
--- /dev/null
@@ -0,0 +1,18 @@
+/*
+ * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * See the COPYRIGHT file distributed with this work for additional
+ * information regarding copyright ownership.
+ */
+
+zone "example.com" {
+       type master;
+       file "example.com.db";
+       update-policy {
+               grant * ms-selfsub TXT;
+       };
+};
diff --git a/bin/tests/system/checkconf/bad-update-policy12.conf b/bin/tests/system/checkconf/bad-update-policy12.conf
new file mode 100644 (file)
index 0000000..c636f1b
--- /dev/null
@@ -0,0 +1,18 @@
+/*
+ * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * See the COPYRIGHT file distributed with this work for additional
+ * information regarding copyright ownership.
+ */
+
+zone "example.com" {
+       type master;
+       file "example.com.db";
+       update-policy {
+               grant * external TXT;
+       };
+};
diff --git a/bin/tests/system/checkconf/bad-update-policy13.conf b/bin/tests/system/checkconf/bad-update-policy13.conf
new file mode 100644 (file)
index 0000000..4fb16f2
--- /dev/null
@@ -0,0 +1,18 @@
+/*
+ * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * See the COPYRIGHT file distributed with this work for additional
+ * information regarding copyright ownership.
+ */
+
+zone "example.com" {
+       type master;
+       file "example.com.db";
+       update-policy {
+               grant a-key-name name TXT;
+       };
+};
diff --git a/bin/tests/system/checkconf/bad-update-policy14.conf b/bin/tests/system/checkconf/bad-update-policy14.conf
new file mode 100644 (file)
index 0000000..1498180
--- /dev/null
@@ -0,0 +1,18 @@
+/*
+ * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * See the COPYRIGHT file distributed with this work for additional
+ * information regarding copyright ownership.
+ */
+
+zone "example.com" {
+       type master;
+       file "example.com.db";
+       update-policy {
+               grant a-key-name subdomain TXT;
+       };
+};
diff --git a/bin/tests/system/checkconf/bad-update-policy15.conf b/bin/tests/system/checkconf/bad-update-policy15.conf
new file mode 100644 (file)
index 0000000..7591b0b
--- /dev/null
@@ -0,0 +1,18 @@
+/*
+ * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * See the COPYRIGHT file distributed with this work for additional
+ * information regarding copyright ownership.
+ */
+
+zone "example.com" {
+       type master;
+       file "example.com.db";
+       update-policy {
+               grant a-key-name wildcard TXT;
+       };
+};
index 7e4bb8f1b0daa2df1d293c166f4961df65d22753..96f2e9b8b2a18a943361a5ce1efd456bd00a7579 100644 (file)
@@ -54,11 +54,11 @@ do
        pat="identity and name fields are not the same"
        grep "$pat" checkconf.out > /dev/null || ret=1
        ;;
-    bad-update-policy[4589].conf)
+    bad-update-policy[4589].conf|bad-update-policy1[01].conf)
        pat="name field not set to placeholder value"
        grep "$pat" checkconf.out > /dev/null || ret=1
        ;;
-    bad-update-policy[67].conf)
+    bad-update-policy[67].conf|bad-update-policy1[2345].conf)
        pat="missing name field type '.*' found"
        grep "$pat" checkconf.out > /dev/null || ret=1
        ;;