]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[1461] initial startup test
authorJelte Jansen <jelte@isc.org>
Mon, 11 Jun 2012 15:59:54 +0000 (17:59 +0200)
committerJelte Jansen <jelte@isc.org>
Wed, 13 Jun 2012 14:42:15 +0000 (16:42 +0200)
tests/lettuce/configurations/ddns/noddns.config.orig
tests/lettuce/features/ddns_system.feature [new file with mode: 0644]

index 756ae7158f0e9bc81dd36606fd581a64515fb743..fa9e463338290466b727c86669a5a297ff1fa7e7 100644 (file)
@@ -1 +1 @@
-{"version": 2, "Logging": {"loggers": [{"debuglevel": 99, "severity": "DEBUG", "name": "*"}]}, "DDNS": {"zones": [{"origin": "example.org.", "update_acl": [{"action": "ACCEPT", "from": "127.0.0.1"}], "class": "IN"}]}, "Auth": {"database_file": "data/ddns/example.org.sqlite3", "listen_on": [{"port": 47806, "address": "127.0.0.1"}]}, "Boss": {"components": {"b10-ddns": {"kind": "needed"}, "b10-auth": {"kind": "needed", "special": "auth"}, "b10-cmdctl": {"kind": "needed", "special": "cmdctl"}}}}
+{"version": 2, "Logging": {"loggers": [{"debuglevel": 99, "severity": "DEBUG", "name": "*"}]}, "DDNS": {"zones": []}, "Auth": {"database_file": "data/ddns/example.org.sqlite3", "listen_on": [{"port": 47806, "address": "127.0.0.1"}]}, "Boss": {"components": {"b10-auth": {"kind": "needed", "special": "auth"}, "b10-cmdctl": {"kind": "needed", "special": "cmdctl"}}}}
diff --git a/tests/lettuce/features/ddns_system.feature b/tests/lettuce/features/ddns_system.feature
new file mode 100644 (file)
index 0000000..cc6ea9f
--- /dev/null
@@ -0,0 +1,78 @@
+Feature: DDNS System
+    A number of BIND10-specific DDNS tests, that do not fall under the
+    'compliance' category; specific ACL checks, module checks, etc.
+
+    Scenario: Module tests
+        # This test runs the original example configuration, which has
+        # a number of modules. It then removes all non-essential modules,
+        # and checks whether they do disappear from the list of running
+        # modules (note that it 'misuses' the help command for this,
+        # there is a Boss command 'show_processes' but it's output is
+        # currently less standardized than 'help')
+        Given I have bind10 running with configuration ddns/noddns.config
+        And wait for bind10 stderr message BIND10_STARTED_CC
+        And wait for bind10 stderr message AUTH_SERVER_STARTED
+
+        # Sanity check
+        bind10 module DDNS should not be running
+
+        # Test 1
+        When I send a DDNS Update for example.org with the following commands:
+        """
+        update add example.org 3600 IN SOA ns1.example.org. admin.example.org. 1235 3600 1800 2419200 7200
+        """
+        # Note: test spec says refused here, system returns SERVFAIL
+        #The DDNS response should be REFUSED
+        The DDNS response should be SERVFAIL
+
+        # Test 2
+        When I send bind10 the following commands
+        """
+        config add Boss/components b10-ddns
+        config set Boss/components/b10-ddns/kind needed
+        config commit
+        """
+        And wait for new bind10 stderr message DDNS_RUNNING
+
+        bind10 module DDNS should be running
+
+        # Test 3
+        When I send a DDNS Update for example.org with the following commands:
+        """
+        update add example.org 3600 IN SOA ns1.example.org. admin.example.org. 1236 3600 1800 2419200 7200
+        """
+        # Note: test spec says refused here, system returns SERVFAIL
+        The DDNS response should be REFUSED
+
+        # Test 4
+        When I send bind10 the following commands
+        """
+        config add DDNS/zones
+        config set DDNS/zones[0]/origin example.org
+        config add DDNS/zones[0]/update_acl {"action": "ACCEPT", "from": "127.0.0.1"}
+        config commit
+        """
+
+        # Test 5
+        When I send a DDNS Update for example.org with the following commands:
+        """
+        update add example.org 3600 IN SOA ns1.example.org. admin.example.org. 1237 3600 1800 2419200 7200
+        """
+        # Note: test spec says refused here, system returns SERVFAIL
+        The DDNS response should be SUCCESS
+        And the SOA serial for example.org should be 1237
+
+        # Test 6
+
+        # Test 7
+
+        # Test 8
+
+        # Test 9
+
+        # Test 10
+
+        # Test 11
+
+
+