multi_instance.feature 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. # Start out with one instance, add a second, remove it again,
  6. # add it again, then remove the first.
  7. Given I have bind10 running with configuration multi_instance/multi_auth.config
  8. And bind10 module Auth should be running
  9. A query for example.com should have rcode REFUSED
  10. # this also checks whether the process is running
  11. If I remember the pid of process b10-auth
  12. When I send bind10 the following commands
  13. """
  14. config add Boss/components b10-auth-2
  15. config set Boss/components/b10-auth-2/special auth
  16. config set Boss/components/b10-auth-2/kind needed
  17. config commit
  18. """
  19. And wait for new bind10 stderr message AUTH_SERVER_STARTED
  20. Then the pid of process b10-auth should not have changed
  21. A query for example.com should have rcode REFUSED
  22. When I remove bind10 configuration Boss/components value b10-auth-2
  23. Then the pid of process b10-auth should not have changed
  24. # COMMENTED OUT BECAUSE OF CURRENT BUG
  25. # And a query for example.com should have rcode REFUSED
  26. When I send bind10 the following commands
  27. """
  28. config add Boss/components b10-auth-2
  29. config set Boss/components/b10-auth-2/special auth
  30. config set Boss/components/b10-auth-2/kind needed
  31. config commit
  32. """
  33. And wait for new bind10 stderr message AUTH_SERVER_STARTED
  34. And remember the pid of process b10-auth-2
  35. Then the pid of process b10-auth should not have changed
  36. A query for example.com should have rcode REFUSED
  37. When I remove bind10 configuration Boss/components value b10-auth
  38. Then the pid of process b10-auth-2 should not have changed
  39. # COMMENTED OUT BECAUSE OF CURRENT BUG
  40. #A query for example.com should have rcode REFUSED