multi_instance.feature 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 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. And bind10 module Auth should be running
  11. And bind10 module Resolver should not be running
  12. bind10 module Xfrout should not be running
  13. bind10 module Zonemgr should not be running
  14. bind10 module Xfrin should not be running
  15. bind10 module Stats should not be running
  16. A query for example.com should have rcode REFUSED
  17. # this also checks whether the process is running
  18. If I remember the pid of process b10-auth
  19. And remember the pid of process b10-auth-2
  20. When I remove bind10 configuration Boss/components value b10-auth-2
  21. And wait for new bind10 stderr message BIND10_PROCESS_ENDED
  22. Then the pid of process b10-auth should not have changed
  23. And a query for example.com should have rcode REFUSED
  24. When I send bind10 the following commands
  25. """
  26. config add Boss/components b10-auth-2
  27. config set Boss/components/b10-auth-2/special auth
  28. config set Boss/components/b10-auth-2/kind needed
  29. config commit
  30. """
  31. And wait for new bind10 stderr message AUTH_SERVER_STARTED
  32. And remember the pid of process b10-auth-2
  33. Then the pid of process b10-auth should not have changed
  34. A query for example.com should have rcode REFUSED
  35. When I remove bind10 configuration Boss/components value b10-auth
  36. And wait for new bind10 stderr message BIND10_PROCESS_ENDED
  37. Then the pid of process b10-auth-2 should not have changed
  38. A query for example.com should have rcode REFUSED