]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Add min-{n,}cache-ttl tests for checkconf
authorOndřej Surý <ondrej@sury.org>
Wed, 7 Nov 2018 17:24:09 +0000 (00:24 +0700)
committerOndřej Surý <ondrej@sury.org>
Wed, 14 Nov 2018 17:24:53 +0000 (18:24 +0100)
bin/tests/system/checkconf/bad-mincachettl.conf [new file with mode: 0644]
bin/tests/system/checkconf/bad-minncachettl.conf [new file with mode: 0644]
bin/tests/system/checkconf/good-mincachettl.conf [new file with mode: 0644]
bin/tests/system/checkconf/good-minncachettl.conf [new file with mode: 0644]

diff --git a/bin/tests/system/checkconf/bad-mincachettl.conf b/bin/tests/system/checkconf/bad-mincachettl.conf
new file mode 100644 (file)
index 0000000..0a1c188
--- /dev/null
@@ -0,0 +1,14 @@
+/*
+ * 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.
+ */
+
+view one {
+       min-cache-ttl 1x;
+};
diff --git a/bin/tests/system/checkconf/bad-minncachettl.conf b/bin/tests/system/checkconf/bad-minncachettl.conf
new file mode 100644 (file)
index 0000000..ac2e29b
--- /dev/null
@@ -0,0 +1,14 @@
+/*
+ * 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.
+ */
+
+view one {
+       min-ncache-ttl 1x;
+};
diff --git a/bin/tests/system/checkconf/good-mincachettl.conf b/bin/tests/system/checkconf/good-mincachettl.conf
new file mode 100644 (file)
index 0000000..7afb8d0
--- /dev/null
@@ -0,0 +1,26 @@
+/*
+ * 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.
+ */
+
+view one {
+       min-cache-ttl 0;
+};
+view two {
+       min-cache-ttl 30;
+};
+view three {
+       min-cache-ttl 60;
+};
+view four {
+       min-cache-ttl 90s;
+};
+view five {
+       min-cache-ttl 1m;
+};
diff --git a/bin/tests/system/checkconf/good-minncachettl.conf b/bin/tests/system/checkconf/good-minncachettl.conf
new file mode 100644 (file)
index 0000000..6bfc663
--- /dev/null
@@ -0,0 +1,26 @@
+/*
+ * 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.
+ */
+
+view one {
+       min-ncache-ttl 0;
+};
+view two {
+       min-ncache-ttl 30;
+};
+view three {
+       min-ncache-ttl 60;
+};
+view four {
+       min-ncache-ttl 90s;
+};
+view five {
+       min-ncache-ttl 1m;
+};