Browse Source

[2421] Add a testcase for empty zone too (which should throw EmptyZone)

Mukund Sivaraman 12 years ago
parent
commit
80c2a36861

+ 2 - 1
tests/lettuce/configurations/auth/auth_badzone.config.orig

@@ -21,7 +21,8 @@
                     "cache-enable": true,
                     "params": {
                         "example.org": "data/example.org",
-                        "example.com": "data/example.com-broken"
+                        "example.com": "data/example.com-broken",
+                        "example.net": "data/example.net-empty"
                     }
                 }
             ]

+ 1 - 0
tests/lettuce/data/example.net-empty

@@ -0,0 +1 @@
+

+ 1 - 0
tests/lettuce/features/auth_badzone.feature

@@ -35,3 +35,4 @@ Feature: Authoritative DNS server with a bad zone
         """
 
         A query for www.example.com should have rcode REFUSED
+        A query for www.example.net should have rcode REFUSED