resolver_basic.feature 1.8 KB

123456789101112131415161718192021222324252627282930313233343536
  1. Feature: Basic Resolver
  2. This feature set is just testing the execution of the b10-resolver
  3. module. It sees whether it starts up, takes configuration, and
  4. answers queries.
  5. Scenario: Listen for and answer query
  6. # This scenario starts a server that runs a real resolver.
  7. # In order not to send out queries into the wild, we only
  8. # query for something known to be hardcoded at this moment.
  9. # NOTE: once real priming has been implemented, this test needs
  10. # to be revised (as it would then leak, which is probably true
  11. # for any resolver system test)
  12. When I start bind10 with configuration resolver/resolver_basic.config
  13. And wait for bind10 stderr message BIND10_STARTED_CC
  14. And wait for bind10 stderr message CMDCTL_STARTED
  15. And wait for bind10 stderr message RESOLVER_STARTED
  16. bind10 module Resolver should be running
  17. And bind10 module Auth should not be running
  18. And bind10 module Xfrout should not be running
  19. And bind10 module Zonemgr should not be running
  20. And bind10 module Xfrin should not be running
  21. And bind10 module Stats should not be running
  22. And bind10 module StatsHttpd should not be running
  23. # The ACL is set to reject any queries
  24. A query for l.root-servers.net. should have rcode REFUSED
  25. # Test whether acl ACCEPT works
  26. When I set bind10 configuration Resolver/query_acl[0]/action to ACCEPT
  27. # This address is currently hardcoded, so shouldn't cause outside traffic
  28. A query for l.root-servers.net. should have rcode NOERROR
  29. # Check whether setting the ACL to reject again works
  30. When I set bind10 configuration Resolver/query_acl[0]/action to REJECT
  31. A query for l.root-servers.net. should have rcode REFUSED