inmemory_over_sqlite3.feature 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. Feature: In-memory zone using SQLite3 backend
  2. This feature tests the authoritative server configured with an in-memory
  3. data source that uses the SQLite3 data source as the backend, and tests
  4. scenarios that update the zone via incoming zone transfers.
  5. Scenario: 1. Load and response
  6. Given I have bind10 running with configuration inmemory_over_sqlite3/secondary.conf
  7. And wait for bind10 stderr message BIND10_STARTED_CC
  8. And wait for bind10 stderr message CMDCTL_STARTED
  9. And wait for bind10 stderr message AUTH_SERVER_STARTED
  10. A query for www.example.org should have rcode NOERROR
  11. The SOA serial for example.org should be 1234
  12. Scenario: 2. In-memory datasource backed by sqlite3
  13. Given I have bind10 running with configuration xfrin/retransfer_master.conf with cmdctl port 56174 as master
  14. And wait for master stderr message BIND10_STARTED_CC
  15. And wait for master stderr message CMDCTL_STARTED
  16. And wait for master stderr message AUTH_SERVER_STARTED
  17. And wait for master stderr message XFROUT_STARTED
  18. And wait for master stderr message ZONEMGR_STARTED
  19. And I have bind10 running with configuration xfrin/inmem_slave.conf
  20. And wait for bind10 stderr message BIND10_STARTED_CC
  21. And wait for bind10 stderr message CMDCTL_STARTED
  22. And wait for bind10 stderr message AUTH_SERVER_STARTED
  23. And wait for bind10 stderr message XFRIN_STARTED
  24. And wait for bind10 stderr message ZONEMGR_STARTED
  25. A query for www.example.org to [::1]:56176 should have rcode NOERROR
  26. """
  27. www.example.org. 3600 IN A 192.0.2.63
  28. """
  29. A query for mail.example.org to [::1]:56176 should have rcode NXDOMAIN
  30. When I send bind10 the command Xfrin retransfer example.org IN ::1 56177
  31. Then wait for new bind10 stderr message XFRIN_TRANSFER_SUCCESS not XFRIN_XFR_PROCESS_FAILURE
  32. Then wait for new bind10 stderr message AUTH_DATASRC_CLIENTS_BUILDER_LOAD_ZONE
  33. A query for www.example.org to [::1]:56177 should have rcode NOERROR
  34. The answer section of the last query response should be
  35. """
  36. www.example.org. 3600 IN A 192.0.2.1
  37. """
  38. A query for mail.example.org to [::1]:56176 should have rcode NOERROR