]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
checkconf tests for inline-signing at options/view
authorMatthijs Mekking <matthijs@isc.org>
Tue, 4 May 2021 08:16:59 +0000 (10:16 +0200)
committerMark Andrews <marka@isc.org>
Tue, 4 May 2021 23:35:59 +0000 (23:35 +0000)
bin/tests/system/checkconf/bad-inline-options.conf [new file with mode: 0644]
bin/tests/system/checkconf/bad-inline-view.conf [new file with mode: 0644]

diff --git a/bin/tests/system/checkconf/bad-inline-options.conf b/bin/tests/system/checkconf/bad-inline-options.conf
new file mode 100644 (file)
index 0000000..fbbc69c
--- /dev/null
@@ -0,0 +1,22 @@
+/*
+ * 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.
+ */
+
+/*
+ * inline-signing not allowed at options level.
+ */
+options {
+       inline-signing yes;
+};
+
+zone "." {
+       type primary;
+       file "root.db";
+};
diff --git a/bin/tests/system/checkconf/bad-inline-view.conf b/bin/tests/system/checkconf/bad-inline-view.conf
new file mode 100644 (file)
index 0000000..364b884
--- /dev/null
@@ -0,0 +1,29 @@
+/*
+ * 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.
+ */
+
+/*
+ * inline-signing not allowed at view level.
+ */
+view "a" {
+       inline-signing yes;
+
+       zone "." {
+               type primary;
+               file "root.db.signed";
+       };
+};
+
+view "b" {
+       zone "." {
+               type primary;
+               file "root.db";
+       };
+};