opt-records.toml 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. # OPT record successes
  2. [[cmd]]
  3. name = "Running with ‘opt.example’ prints the correct OPT record"
  4. shell = "dog --colour=always ${MADNS_ARGS:[email protected]:5301 --tcp} A opt.example --edns=show"
  5. stdout = { file = "outputs/opt.example.ansitxt" }
  6. stderr = { empty = true }
  7. status = 0
  8. tags = [ "opt", "madns" ]
  9. [[cmd]]
  10. name = "Running with ‘do-flag.opt.example’ prints the correct OPT record"
  11. shell = "dog --colour=always ${MADNS_ARGS:[email protected]:5301 --tcp} A do-flag.opt.example --edns=show"
  12. stdout = { file = "outputs/do-flag.opt.example.ansitxt" }
  13. stderr = { empty = true }
  14. status = 0
  15. tags = [ "opt", "madns" ]
  16. [[cmd]]
  17. name = "Running with ‘other-flags.opt.example’ prints the correct OPT record"
  18. shell = "dog --colour=always ${MADNS_ARGS:[email protected]:5301 --tcp} A other-flags.opt.example --edns=show"
  19. stdout = { file = "outputs/other-flags.opt.example.ansitxt" }
  20. stderr = { empty = true }
  21. status = 0
  22. tags = [ "opt", "madns" ]
  23. [[cmd]]
  24. name = "Running with ‘named.opt.invalid’ prints the correct OPT record"
  25. shell = "dog --colour=always ${MADNS_ARGS:[email protected]:5301 --tcp} A named.opt.invalid --edns=show"
  26. stdout = { file = "outputs/named.opt.invalid.ansitxt" }
  27. stderr = { empty = true }
  28. status = 0
  29. tags = [ "opt", "madns" ]
  30. # OPT record successes (JSON)
  31. [[cmd]]
  32. name = "Running with ‘opt.example --json’ prints the correct OPT record structure"
  33. shell = "dog --colour=always ${MADNS_ARGS:[email protected]:5301 --tcp} A opt.example --edns=show --json | jq"
  34. stdout = { file = "outputs/opt.example.json" }
  35. stderr = { empty = true }
  36. status = 0
  37. tags = [ "opt", "madns", "json" ]
  38. [[cmd]]
  39. name = "Running with ‘do-flag.opt.example --json’ prints the correct OPT record structure"
  40. shell = "dog --colour=always ${MADNS_ARGS:[email protected]:5301 --tcp} A do-flag.opt.example --edns=show --json | jq"
  41. stdout = { file = "outputs/do-flag.opt.example.json" }
  42. stderr = { empty = true }
  43. status = 0
  44. tags = [ "opt", "madns", "json" ]
  45. [[cmd]]
  46. name = "Running with ‘other-flags.opt.example --json’ prints the correct OPT record structure"
  47. shell = "dog --colour=always ${MADNS_ARGS:[email protected]:5301 --tcp} A other-flags.opt.example --edns=show --json | jq"
  48. stdout = { file = "outputs/other-flags.opt.example.json" }
  49. stderr = { empty = true }
  50. status = 0
  51. tags = [ "opt", "madns", "json" ]
  52. [[cmd]]
  53. name = "Running with ‘named.opt.invalid --json’ prints the correct OPT record structure"
  54. shell = "dog --colour=always ${MADNS_ARGS:[email protected]:5301 --tcp} A named.opt.invalid --edns=show --json | jq"
  55. stdout = { file = "outputs/named.opt.invalid.json" }
  56. stderr = { empty = true }
  57. status = 0
  58. tags = [ "opt", "madns", "json" ]
  59. # OPT record invalid packets
  60. [[cmd]]
  61. name = "Running with ‘incomplete.opt.invalid’ displays a record length error"
  62. shell = "dog --colour=always ${MADNS_ARGS:[email protected]:5301 --tcp} A incomplete.opt.invalid"
  63. stdout = { empty = true }
  64. stderr = { string = "Error [protocol]: Malformed packet: insufficient data" }
  65. status = 1
  66. tags = [ "opt", "madns" ]