multi_instance.feature 1.5 KB

1234567891011121314151617181920212223242526272829303132333435
  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 of Auth
  5. # This config should have two running instances
  6. Given I have bind10 running with configuration multi_instance/multi_auth.config
  7. And bind10 module Auth should be running
  8. A query for example.com should have rcode REFUSED
  9. # this also checks whether the process is running
  10. If I remember the pid of process b10-auth
  11. And remember the pid of process b10-auth-2
  12. When I remove bind10 configuration Boss/components value b10-auth-2
  13. Then the pid of process b10-auth should not have changed
  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/kind needed
  20. config commit
  21. """
  22. And wait for new bind10 stderr message AUTH_SERVER_STARTED
  23. And remember the pid of process b10-auth-2
  24. Then the pid of process b10-auth should not have changed
  25. A query for example.com should have rcode REFUSED
  26. When I remove bind10 configuration Boss/components value b10-auth
  27. Then the pid of process b10-auth-2 should not have changed
  28. A query for example.com should have rcode REFUSED