]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[master] Test SSHFP support in lettuce
authorMukund Sivaraman <muks@isc.org>
Mon, 25 Jun 2012 14:15:46 +0000 (19:45 +0530)
committerMukund Sivaraman <muks@isc.org>
Mon, 25 Jun 2012 14:34:51 +0000 (20:04 +0530)
tests/lettuce/data/example.org
tests/lettuce/features/queries.feature

index 20a93bef50e249cad9d6cbd16b730e8aebf51aeb..77f8f531525ff10035c7d25e385c5d46f195f602 100644 (file)
@@ -10,3 +10,4 @@ dname.example.org.    3600    IN      DNAME   dname.example.info.
 dname2.foo.example.org.        3600    IN      DNAME   dname2.example.info.
 ns1.example.org.       3600    IN      A       192.0.2.3
 ns2.example.org.       3600    IN      A       192.0.2.4
+shell.example.org.     3600    IN      SSHFP   2 1 123456789abcdef67890123456789abcdef67890
index de6f0fa4befaf3609fc5bce08f0d7814440fb7ca..8ca946761141428407d3a3665cc40523b505cdcd 100644 (file)
@@ -122,3 +122,25 @@ Feature: Querying feature
         """
         ns.sub.example.org.    3600    IN      A       192.0.2.101
         """
+    Scenario: SSHFP query
+        Given I have bind10 running with configuration example.org.inmem.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
+        And bind10 module Xfrout should not be running
+        And bind10 module Zonemgr should not be running
+        And bind10 module Xfrin should not be running
+        And bind10 module Stats should not be running
+        And bind10 module StatsHttpd should not be running
+
+        A query for example.org type SSHFP should have rcode NOERROR
+        The last query response should have ancount 0
+        A query for shell.example.org type SSHFP should have rcode NOERROR
+        The last query response should have ancount 1
+        The answer section of the last query response should be
+        """
+        shell.example.org.      3600    IN      SSHFP   2 1 123456789abcdef67890123456789abcdef67890
+        """