BIND 10 trac2361, updated. 7c40eaf7779f7fb3b80ad141c58f60e69a2f3e4e [trac2361] add new test for CHAOS version.bind and authors.bind TXT

BIND 10 source code commits bind10-changes at lists.isc.org
Thu Oct 18 14:42:23 UTC 2012


The branch, trac2361 has been updated
       via  7c40eaf7779f7fb3b80ad141c58f60e69a2f3e4e (commit)
      from  ec6cf17e571f9cf23fd1e7bcd573df55106550b1 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 7c40eaf7779f7fb3b80ad141c58f60e69a2f3e4e
Author: Jeremy C. Reed <jreed at ISC.org>
Date:   Thu Oct 18 09:40:55 2012 -0500

    [trac2361] add new test for CHAOS version.bind and authors.bind TXT

-----------------------------------------------------------------------

Summary of changes:
 .../auth_basic.config.orig}                        |    5 +----
 tests/lettuce/features/auth_basic.feature          |   22 ++++++++++++++++++++
 tests/lettuce/features/terrain/terrain.py          |    2 ++
 3 files changed, 25 insertions(+), 4 deletions(-)
 copy tests/lettuce/configurations/{bindctl/bindctl.config.orig => auth/auth_basic.config.orig} (79%)
 create mode 100644 tests/lettuce/features/auth_basic.feature

-----------------------------------------------------------------------
diff --git a/tests/lettuce/configurations/auth/auth_basic.config.orig b/tests/lettuce/configurations/auth/auth_basic.config.orig
new file mode 100644
index 0000000..4067fb1
--- /dev/null
+++ b/tests/lettuce/configurations/auth/auth_basic.config.orig
@@ -0,0 +1,22 @@
+{
+    "version": 2,
+    "Logging": {
+        "loggers": [ {
+            "debuglevel": 99,
+            "severity": "DEBUG",
+            "name": "*"
+        } ]
+    },
+    "Auth": {
+        "listen_on": [ {
+            "port": 47806,
+            "address": "127.0.0.1"
+        } ]
+    },
+    "Boss": {
+        "components": {
+            "b10-auth": { "kind": "needed", "special": "auth" },
+            "b10-cmdctl": { "special": "cmdctl", "kind": "needed" }
+        }
+    }
+}
diff --git a/tests/lettuce/features/auth_basic.feature b/tests/lettuce/features/auth_basic.feature
new file mode 100644
index 0000000..3b66f29
--- /dev/null
+++ b/tests/lettuce/features/auth_basic.feature
@@ -0,0 +1,22 @@
+Feature: Basic Authoritative DNS server
+    This feature set is for testing the execution of the b10-auth
+    component using its default datasource configurations. This
+    will start it and perform queries against it.
+
+    Scenario: Query builtin bind zone
+        Given I have bind10 running with configuration auth/auth_basic.config
+        And wait for bind10 stderr message BIND10_STARTED_CC
+        And wait for bind10 stderr message CMDCTL_STARTED
+        And wait for bind10 stderr message AUTH_SERVER_STARTED
+
+        bind10 module Auth should be running
+        And bind10 module Resolver should not be running
+
+        A query for example.com should have rcode REFUSED
+
+        A query for version.bind type TXT class CH should have rcode NOERROR
+
+        A query for authors.bind type TXT class CH should have rcode NOERROR
+
+# TODO: to be compatible with BIND 9
+#        A query for nonexistent.bind type TXT class CH should have rcode REFUSED
diff --git a/tests/lettuce/features/terrain/terrain.py b/tests/lettuce/features/terrain/terrain.py
index 8720e2d..2bfe7d4 100644
--- a/tests/lettuce/features/terrain/terrain.py
+++ b/tests/lettuce/features/terrain/terrain.py
@@ -49,6 +49,8 @@ copylist = [
      "configurations/example.org.config"],
     ["configurations/bindctl/bindctl.config.orig",
      "configurations/bindctl/bindctl.config"],
+    ["configurations/auth/auth_basic.config.orig",
+     "configurations/auth/auth_basic.config"],
     ["configurations/resolver/resolver_basic.config.orig",
      "configurations/resolver/resolver_basic.config"],
     ["configurations/multi_instance/multi_auth.config.orig",



More information about the bind10-changes mailing list