master_loader.feature 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. Feature: Master loader feature
  2. This feature is a collection of tests for the zone file loader in
  3. BIND 10.
  4. Scenario: $GENERATE support
  5. Given I have bind10 running with configuration generate.config
  6. And wait for bind10 stderr message BIND10_STARTED_CC
  7. And wait for bind10 stderr message CMDCTL_STARTED
  8. And wait for bind10 stderr message AUTH_SERVER_STARTED
  9. bind10 module Auth should be running
  10. And bind10 module Resolver should not be running
  11. And bind10 module Xfrout should not be running
  12. And bind10 module Zonemgr should not be running
  13. And bind10 module Xfrin should not be running
  14. And bind10 module Stats should not be running
  15. And bind10 module StatsHttpd should not be running
  16. A query for www.example.org should have rcode NXDOMAIN
  17. The SOA serial for example.org should be 12341
  18. A query for host0.example.org should have rcode NXDOMAIN
  19. A query for host1.example.org should have rcode NOERROR
  20. The answer section of the last query response should be
  21. """
  22. host1.example.org. 3600 IN A 192.0.2.1
  23. """
  24. A query for host2.example.org should have rcode NOERROR
  25. The answer section of the last query response should be
  26. """
  27. host2.example.org. 3600 IN A 192.0.2.2
  28. """
  29. A query for host3.example.org should have rcode NOERROR
  30. The answer section of the last query response should be
  31. """
  32. host3.example.org. 3600 IN A 192.0.2.3
  33. """
  34. A query for host4.example.org should have rcode NOERROR
  35. The answer section of the last query response should be
  36. """
  37. host4.example.org. 3600 IN A 192.0.2.4
  38. """
  39. A query for host5.example.org should have rcode NXDOMAIN
  40. A query for example.org type NS should have rcode NOERROR
  41. The answer section of the last query response should be
  42. """
  43. example.org. 3600 IN NS ns1.example.org.
  44. example.org. 3600 IN NS ns2.example.org.
  45. """