xfrout_bind10.feature 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. Feature: Xfrout
  2. Tests for Xfrout, specific for BIND 10 behaviour.
  3. Scenario: normal transfer with a moderate number of RRs
  4. Load 100 records for zone example.org to DB file data/xfrout.sqlite3
  5. Given I have bind10 running with configuration xfrout_master.conf
  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. And wait for bind10 stderr message XFROUT_STARTED
  10. And wait for bind10 stderr message ZONEMGR_STARTED
  11. # The transferred zone should have the generated 100 RRs plush one
  12. # trailing SOA.
  13. When I do a customized AXFR transfer of example.org
  14. Then transfer result should have 101 rrs
  15. # Similar to the previous one, but using a much larger zone, and with
  16. # a small delay at the client side. It should still succeed.
  17. # The specific delay (5 seconds) was chosen for an environment that
  18. # revealed a bug which is now fixed to reproduce the issue; shorter delays
  19. # didn't trigger the problem. Depending on the OS implementation, machine
  20. # speed, etc, the same delay may be too long or too short, but in any case
  21. # the test should succeed now.
  22. Scenario: transfer a large zone
  23. Load 50000 records for zone example.org to DB file data/xfrout.sqlite3
  24. Given I have bind10 running with configuration xfrout_master.conf
  25. And wait for bind10 stderr message BIND10_STARTED_CC
  26. And wait for bind10 stderr message CMDCTL_STARTED
  27. And wait for bind10 stderr message AUTH_SERVER_STARTED
  28. And wait for bind10 stderr message XFROUT_STARTED
  29. And wait for bind10 stderr message ZONEMGR_STARTED
  30. When I do a customized AXFR transfer of example.org from [::1]:56176 with pause of 5 seconds
  31. Then transfer result should have 50001 rrs