multi_instance.feature 1.6 KB

123456789101112131415161718192021222324252627282930313233343536
  1. Feature: Multiple instances
  2. This feature tests whether multiple instances can be run, and whether
  3. removing them does not affect the running of other instances
  4. Scenario: Multiple instances
  5. Given I have bind10 running with configuration multi_instance/multi_auth.config
  6. And bind10 module Auth should be running
  7. # this also checks whether the process is running according to Boss
  8. If I remember the pid of process b10-auth
  9. And remember the pid of process b10-auth-2
  10. A query for example.com should have rcode REFUSED
  11. When I remove bind10 configuration Boss/components value b10-auth-2
  12. Then the pid of process b10-auth should not have changed
  13. # From here on out it fails because of #1705
  14. And a query for example.com should have rcode REFUSED
  15. When I send bind10 the following commands
  16. """
  17. config add Boss/components b10-auth-2
  18. config set Boss/components/b10-auth-2/special auth
  19. config set Boss/components/b10-auth-2/process b10-auth
  20. config set Boss/components/b10-auth-2/kind needed
  21. config commit
  22. """
  23. And wait for new bind10 stderr message AUTH_SERVER_STARTED
  24. And remember the pid of process b10-auth-2
  25. Then the pid of process b10-auth should not have changed
  26. A query for example.com should have rcode REFUSED
  27. When I remove bind10 configuration Boss/components value b10-auth
  28. Then the pid of process b10-auth-2 should not have changed
  29. A query for example.com should have rcode REFUSED