server_from_sqlite3.feature 1.3 KB

1234567891011121314151617181920212223242526272829
  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. Then set bind10 configuration Auth/database_file to data/empty_db.sqlite3
  22. And wait for log message DATASRC_SQLITE_OPEN
  23. A query for www.example.org should have rcode REFUSED
  24. Then set bind10 configuration Auth/database_file to data/example.org.sqlite3
  25. And wait for log message DATASRC_SQLITE_OPEN
  26. A query for www.example.org should have rcode NOERROR