server_from_sqlite3.feature 1.4 KB

12345678910111213141516171819202122232425262728293031
  1. Feature: SQLite3 backend
  2. In order to support SQLite3
  3. As administrators
  4. We test serving an sqlite3 backend
  5. Scenario: New database
  6. Given I have no database
  7. When I start bind10 with configuration no_db_file.config
  8. Then wait for bind10 auth to start
  9. Then stop bind10
  10. I should see a database file
  11. Scenario: example.org queries
  12. When I start bind10 with configuration example.org.config
  13. Then wait for bind10 auth to start
  14. A query for www.example.com should have rcode REFUSED
  15. A query for www.example.org should have rcode NOERROR
  16. A query for doesnotexist.example.org should have rcode NXDOMAIN
  17. Scenario: changing database
  18. When I start bind10 with configuration example.org.config
  19. Then wait for bind10 auth to start
  20. A query for www.example.org should have rcode NOERROR
  21. Wait for log message AUTH_SEND_NORMAL_RESPONSE
  22. Then set bind10 configuration Auth/database_file to data/empty_db.sqlite3
  23. And wait for log message DATASRC_SQLITE_OPEN
  24. A query for www.example.org should have rcode REFUSED
  25. Wait for log message AUTH_SEND_NORMAL_RESPONSE
  26. Then set bind10 configuration Auth/database_file to data/example.org.sqlite3
  27. And wait for log message DATASRC_SQLITE_OPEN
  28. A query for www.example.org should have rcode NOERROR