bindctl_commands.feature 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. Feature: control with bindctl
  2. Assorted tests using bindctl for the administration of BIND 10.
  3. Scenario: Removing modules
  4. # This test runs the original example configuration, which has
  5. # a number of modules. It then removes all non-essential modules,
  6. # and checks whether they do disappear from the list of running
  7. # modules (note that it 'misuses' the help command for this,
  8. # there is a Boss command 'show_processes' but it's output is
  9. # currently less standardized than 'help')
  10. Given I have bind10 running with configuration example.org.config
  11. And wait for bind10 stderr message ZONEMGR_STARTED
  12. And wait for bind10 stderr message AUTH_SERVER_STARTED
  13. And wait for bind10 stderr message XFRIN_STARTED
  14. And wait for bind10 stderr message XFROUT_STARTED
  15. And wait for bind10 stderr message STATS_STARTING
  16. And wait for bind10 stderr message STATHTTPD_STARTED
  17. Then remove bind10 configuration Boss/components/NOSUCHMODULE
  18. last bindctl output should contain Error
  19. bind10 module Xfrout should be running
  20. bind10 module Stats should be running
  21. bind10 module Zonemgr should be running
  22. bind10 module Xfrin should be running
  23. bind10 module Auth should be running
  24. bind10 module StatsHttpd should be running
  25. Then remove bind10 configuration Boss/components value b10-xfrout
  26. And wait for new bind10 stderr message BIND10_PROCESS_ENDED
  27. last bindctl output should not contain Error
  28. # assuming it won't error for further modules (if it does, the final
  29. # 'should not be running' tests would fail anyway)
  30. Then remove bind10 configuration Boss/components value b10-stats-httpd
  31. And wait for new bind10 stderr message BIND10_PROCESS_ENDED
  32. last bindctl output should not contain Error
  33. Then remove bind10 configuration Boss/components value b10-stats
  34. And wait for new bind10 stderr message BIND10_PROCESS_ENDED
  35. last bindctl output should not contain Error
  36. Then remove bind10 configuration Boss/components value b10-zonemgr
  37. And wait for new bind10 stderr message BIND10_PROCESS_ENDED
  38. last bindctl output should not contain Error
  39. Then remove bind10 configuration Boss/components value b10-xfrin
  40. And wait for new bind10 stderr message BIND10_PROCESS_ENDED
  41. last bindctl output should not contain Error
  42. Then remove bind10 configuration Boss/components value b10-auth
  43. And wait for new bind10 stderr message BIND10_PROCESS_ENDED
  44. last bindctl output should not contain Error
  45. bind10 module Xfrout should not be running
  46. bind10 module Zonemgr should not be running
  47. bind10 module Xfrin should not be running
  48. bind10 module Auth should not be running
  49. bind10 module StatsHttpd should not be running
  50. bind10 module Stats should not be running