caa-records.toml 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. # CAA record successes (JSON)
  24. [[cmd]]
  25. name = "Running with ‘caa.example --json’ prints the correct CAA record structure"
  26. shell = "dog --colour=always ${MADNS_ARGS:[email protected]:5301 --tcp} CAA caa.example --json | jq"
  27. stdout = { file = "outputs/caa.example.json" }
  28. stderr = { empty = true }
  29. status = 0
  30. tags = [ "caa", "madns", "json" ]
  31. [[cmd]]
  32. name = "Running with ‘critical.caa.example --json’ prints the correct CAA record structurewith the flag"
  33. shell = "dog --colour=always ${MADNS_ARGS:[email protected]:5301 --tcp} CAA critical.caa.example --json | jq"
  34. stdout = { file = "outputs/critical.caa.example.json" }
  35. stderr = { empty = true }
  36. status = 0
  37. tags = [ "caa", "madns", "json" ]
  38. [[cmd]]
  39. name = "Running with ‘others.caa.example --json’ prints the correct CAA record structure and ignores the flags"
  40. shell = "dog --colour=always ${MADNS_ARGS:[email protected]:5301 --tcp} CAA others.caa.example --json | jq"
  41. stdout = { file = "outputs/others.caa.example.json" }
  42. stderr = { empty = true }
  43. status = 0
  44. tags = [ "caa", "madns", "json" ]
  45. # CAA record invalid packets
  46. [[cmd]]
  47. name = "Running with ‘empty.caa.invalid’ displays a protocol error"
  48. shell = "dog --colour=always ${MADNS_ARGS:[email protected]:5301 --tcp} CAA empty.caa.invalid"
  49. stdout = { empty = true }
  50. stderr = { string = "Error [protocol]: Malformed packet: insufficient data" }
  51. status = 1
  52. tags = [ "caa", "madns" ]
  53. [[cmd]]
  54. name = "Running with ‘incomplete.caa.invalid’ displays a protocol error"
  55. shell = "dog --colour=always ${MADNS_ARGS:[email protected]:5301 --tcp} CAA incomplete.caa.invalid"
  56. stdout = { empty = true }
  57. stderr = { string = "Error [protocol]: Malformed packet: insufficient data" }
  58. status = 1
  59. tags = [ "caa", "madns" ]