resolver_basic.feature 1.3 KB

1234567891011121314151617181920212223242526
  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 new bind10 stderr message RESOLVER_STARTED
  14. # The ACL is set to reject any queries
  15. A query for l.root-servers.net. should have rcode REFUSED
  16. # Test whether acl ACCEPT works
  17. When I set bind10 configuration Resolver/query_acl[0]/action to ACCEPT
  18. # This address is currently hardcoded, so shouldn't cause outside traffic
  19. A query for l.root-servers.net. should have rcode NOERROR
  20. # Check whether setting the ACL to reject again works
  21. When I set bind10 configuration Resolver/query_acl[0]/action to REJECT
  22. A query for l.root-servers.net. should have rcode REFUSED