multi_instance.feature 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. # 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. # COMMENTED OUT BECAUSE OF CURRENT BUG
  15. # And a query for example.com should have rcode REFUSED
  16. When I send bind10 the following commands
  17. """
  18. config add Boss/components b10-auth-2
  19. config set Boss/components/b10-auth-2/special 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. # COMMENTED OUT BECAUSE OF CURRENT BUG
  30. #A query for example.com should have rcode REFUSED