From: Mukund Sivaraman Date: Mon, 25 Jun 2012 14:15:46 +0000 (+0530) Subject: [master] Test SSHFP support in lettuce X-Git-Tag: trac2351_base~196^2~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5c8c3e67e2c564ce3c2c1392fc665edb8a982df1;p=thirdparty%2Fkea.git [master] Test SSHFP support in lettuce --- diff --git a/tests/lettuce/data/example.org b/tests/lettuce/data/example.org index 20a93bef50..77f8f53152 100644 --- a/tests/lettuce/data/example.org +++ b/tests/lettuce/data/example.org @@ -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 diff --git a/tests/lettuce/features/queries.feature b/tests/lettuce/features/queries.feature index de6f0fa4be..8ca9467611 100644 --- a/tests/lettuce/features/queries.feature +++ b/tests/lettuce/features/queries.feature @@ -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 + """