bindctl_commands.feature 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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 bindctl_commands.config
  11. And wait for bind10 stderr message BIND10_STARTED_CC
  12. And wait for bind10 stderr message CMDCTL_STARTED
  13. And wait for bind10 stderr message ZONEMGR_STARTED
  14. And wait for bind10 stderr message AUTH_SERVER_STARTED
  15. And wait for bind10 stderr message XFRIN_STARTED
  16. And wait for bind10 stderr message XFROUT_STARTED
  17. And wait for bind10 stderr message STATS_STARTING
  18. And wait for bind10 stderr message STATHTTPD_STARTED
  19. Then remove bind10 configuration Boss/components/NOSUCHMODULE
  20. last bindctl output should contain Error
  21. bind10 module Xfrout should be running
  22. bind10 module Stats should be running
  23. bind10 module Zonemgr should be running
  24. bind10 module Xfrin should be running
  25. bind10 module Auth should be running
  26. bind10 module StatsHttpd should be running
  27. bind10 module Resolver should not be running
  28. Then remove bind10 configuration Boss/components value b10-xfrout
  29. And wait for new bind10 stderr message BIND10_PROCESS_ENDED
  30. last bindctl output should not contain Error
  31. # assuming it won't error for further modules (if it does, the final
  32. # 'should not be running' tests would fail anyway)
  33. Then remove bind10 configuration Boss/components value b10-stats-httpd
  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-stats
  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-zonemgr
  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-xfrin
  43. And wait for new bind10 stderr message BIND10_PROCESS_ENDED
  44. last bindctl output should not contain Error
  45. Then remove bind10 configuration Boss/components value b10-auth
  46. And wait for new bind10 stderr message BIND10_PROCESS_ENDED
  47. last bindctl output should not contain Error
  48. # After these ^^^ have been stopped...
  49. bind10 module Xfrout should not be running
  50. bind10 module Zonemgr should not be running
  51. bind10 module Xfrin should not be running
  52. bind10 module Auth should not be running
  53. bind10 module StatsHttpd should not be running
  54. bind10 module Stats should not be running
  55. bind10 module Resolver should not be running