4
0

caa-records.toml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. # CAA record successes
  2. [[cmd]]
  3. name = "Running with ‘caa.example’ prints the correct CAA record"
  4. shell = "dog --colour=always ${MADNS_ARGS:[email protected]:5301 --tcp} CAA caa.example"
  5. stdout = { file = "outputs/caa.example.ansitxt" }
  6. stderr = { empty = true }
  7. status = 0
  8. tags = [ "caa", "madns" ]
  9. [[cmd]]
  10. name = "Running with ‘critical.caa.example’ prints the correct CAA record with the flag"
  11. shell = "dog --colour=always ${MADNS_ARGS:[email protected]:5301 --tcp} CAA critical.caa.example"
  12. stdout = { file = "outputs/critical.caa.example.ansitxt" }
  13. stderr = { empty = true }
  14. status = 0
  15. tags = [ "caa", "madns" ]
  16. [[cmd]]
  17. name = "Running with ‘others.caa.example’ prints the correct CAA record and ignores the flags"
  18. shell = "dog --colour=always ${MADNS_ARGS:[email protected]:5301 --tcp} CAA others.caa.example"
  19. stdout = { file = "outputs/others.caa.example.ansitxt" }
  20. stderr = { empty = true }
  21. status = 0
  22. tags = [ "caa", "madns" ]
  23. [[cmd]]
  24. name = "Running with ‘utf8.caa.example’ escapes characters in the fields"
  25. shell = "dog --colour=always ${MADNS_ARGS:[email protected]:5301 --tcp} CAA utf8.caa.example"
  26. stdout = { file = "outputs/utf8.caa.example.ansitxt" }
  27. stderr = { empty = true }
  28. status = 0
  29. tags = [ "caa", "madns", "chars" ]
  30. [[cmd]]
  31. name = "Running with ‘bad-utf8.caa.example’ escapes characters in the fields and does not crash"
  32. shell = "dog --colour=always ${MADNS_ARGS:[email protected]:5301 --tcp} CAA bad-utf8.caa.example"
  33. stdout = { file = "outputs/bad-utf8.caa.example.ansitxt" }
  34. stderr = { empty = true }
  35. status = 0
  36. tags = [ "caa", "madns", "chars" ]
  37. # CAA record successes (JSON)
  38. [[cmd]]
  39. name = "Running with ‘caa.example --json’ prints the correct CAA record structure"
  40. shell = "dog --colour=always ${MADNS_ARGS:[email protected]:5301 --tcp} CAA caa.example --json | jq"
  41. stdout = { file = "outputs/caa.example.json" }
  42. stderr = { empty = true }
  43. status = 0
  44. tags = [ "caa", "madns", "json" ]
  45. [[cmd]]
  46. name = "Running with ‘critical.caa.example --json’ prints the correct CAA record structurewith the flag"
  47. shell = "dog --colour=always ${MADNS_ARGS:[email protected]:5301 --tcp} CAA critical.caa.example --json | jq"
  48. stdout = { file = "outputs/critical.caa.example.json" }
  49. stderr = { empty = true }
  50. status = 0
  51. tags = [ "caa", "madns", "json" ]
  52. [[cmd]]
  53. name = "Running with ‘others.caa.example --json’ prints the correct CAA record structure and ignores the flags"
  54. shell = "dog --colour=always ${MADNS_ARGS:[email protected]:5301 --tcp} CAA others.caa.example --json | jq"
  55. stdout = { file = "outputs/others.caa.example.json" }
  56. stderr = { empty = true }
  57. status = 0
  58. tags = [ "caa", "madns", "json" ]
  59. [[cmd]]
  60. name = "Running with ‘utf8.caa.example --json’ interprets the response as UTF-8"
  61. shell = "dog --colour=always ${MADNS_ARGS:[email protected]:5301 --tcp} CAA utf8.caa.example --json | jq"
  62. stdout = { file = "outputs/utf8.caa.example.json" }
  63. stderr = { empty = true }
  64. status = 0
  65. tags = [ "caa", "madns", "chars", "json" ]
  66. [[cmd]]
  67. name = "Running with ‘bad-utf8.caa.example --json’ uses UTF-8 replacement characters"
  68. shell = "dog --colour=always ${MADNS_ARGS:[email protected]:5301 --tcp} CAA bad-utf8.caa.example --json | jq"
  69. stdout = { file = "outputs/bad-utf8.caa.example.json" }
  70. stderr = { empty = true }
  71. status = 0
  72. tags = [ "caa", "madns", "chars", "json" ]
  73. # CAA record invalid packets
  74. [[cmd]]
  75. name = "Running with ‘empty.caa.invalid’ displays a protocol error"
  76. shell = "dog --colour=always ${MADNS_ARGS:[email protected]:5301 --tcp} CAA empty.caa.invalid"
  77. stdout = { empty = true }
  78. stderr = { string = "Error [protocol]: Malformed packet: insufficient data" }
  79. status = 1
  80. tags = [ "caa", "madns" ]
  81. [[cmd]]
  82. name = "Running with ‘incomplete.caa.invalid’ displays a protocol error"
  83. shell = "dog --colour=always ${MADNS_ARGS:[email protected]:5301 --tcp} CAA incomplete.caa.invalid"
  84. stdout = { empty = true }
  85. stderr = { string = "Error [protocol]: Malformed packet: insufficient data" }
  86. status = 1
  87. tags = [ "caa", "madns" ]