ddns_system.feature 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. Feature: DDNS System
  2. A number of BIND10-specific DDNS tests, that do not fall under the
  3. 'compliance' category; specific ACL checks, module checks, etc.
  4. Scenario: Module tests
  5. # This test runs the original example configuration, which has
  6. # a number of modules. It then removes all non-essential modules,
  7. # and checks whether they do disappear from the list of running
  8. # modules (note that it 'misuses' the help command for this,
  9. # there is a Boss command 'show_processes' but it's output is
  10. # currently less standardized than 'help')
  11. Given I have bind10 running with configuration ddns/noddns.config
  12. And wait for bind10 stderr message BIND10_STARTED_CC
  13. And wait for bind10 stderr message AUTH_SERVER_STARTED
  14. # Sanity check
  15. bind10 module DDNS should not be running
  16. # Test 1
  17. When I send a DDNS Update for example.org with the following commands:
  18. """
  19. update add example.org 3600 IN SOA ns1.example.org. admin.example.org. 1235 3600 1800 2419200 7200
  20. """
  21. # Note: test spec says refused here, system returns SERVFAIL
  22. #The DDNS response should be REFUSED
  23. The DDNS response should be SERVFAIL
  24. # Test 2
  25. When I send bind10 the following commands
  26. """
  27. config add Boss/components b10-ddns
  28. config set Boss/components/b10-ddns/kind needed
  29. config commit
  30. """
  31. And wait for new bind10 stderr message DDNS_RUNNING
  32. bind10 module DDNS should be running
  33. # Test 3
  34. When I send a DDNS Update for example.org with the following commands:
  35. """
  36. update add example.org 3600 IN SOA ns1.example.org. admin.example.org. 1236 3600 1800 2419200 7200
  37. """
  38. # Note: test spec says refused here, system returns SERVFAIL
  39. The DDNS response should be REFUSED
  40. # Test 4
  41. When I send bind10 the following commands
  42. """
  43. config add DDNS/zones
  44. config set DDNS/zones[0]/origin example.org
  45. config add DDNS/zones[0]/update_acl {"action": "ACCEPT", "from": "127.0.0.1"}
  46. config commit
  47. """
  48. # Test 5
  49. When I send a DDNS Update for example.org with the following commands:
  50. """
  51. update add example.org 3600 IN SOA ns1.example.org. admin.example.org. 1237 3600 1800 2419200 7200
  52. """
  53. # Note: test spec says refused here, system returns SERVFAIL
  54. The DDNS response should be SUCCESS
  55. And the SOA serial for example.org should be 1237
  56. # Test 6
  57. # Test 7
  58. # Test 8
  59. # Test 9
  60. # Test 10
  61. # Test 11