4
0

hinfo-records.toml 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. # HINFO record successes
  2. [[cmd]]
  3. name = "Running with ‘hinfo.example’ prints the correct HINFO record"
  4. shell = "dog --colour=always ${MADNS_ARGS:[email protected]:5301 --tcp} HINFO hinfo.example"
  5. stdout = { file = "outputs/hinfo.example.ansitxt" }
  6. stderr = { empty = true }
  7. status = 0
  8. tags = [ "hinfo", "madns" ]
  9. [[cmd]]
  10. name = "Running with ‘utf8.hinfo.example’ escapes characters in the fields"
  11. shell = "dog --colour=always ${MADNS_ARGS:[email protected]:5301 --tcp} HINFO utf8.hinfo.example"
  12. stdout = { file = "outputs/utf8.hinfo.example.ansitxt" }
  13. stderr = { empty = true }
  14. status = 0
  15. tags = [ "hinfo", "madns", "chars" ]
  16. [[cmd]]
  17. name = "Running with ‘bad-utf8.hinfo.example’ escapes characters in the fields and does not crash"
  18. shell = "dog --colour=always ${MADNS_ARGS:[email protected]:5301 --tcp} HINFO bad-utf8.hinfo.example"
  19. stdout = { file = "outputs/bad-utf8.hinfo.example.ansitxt" }
  20. stderr = { empty = true }
  21. status = 0
  22. tags = [ "hinfo", "madns", "chars" ]
  23. # HINFO record successes (JSON)
  24. [[cmd]]
  25. name = "Running with ‘hinfo.example --json’ prints the correct HINFO record structure"
  26. shell = "dog --colour=always ${MADNS_ARGS:[email protected]:5301 --tcp} HINFO hinfo.example --json | jq"
  27. stdout = { file = "outputs/hinfo.example.json" }
  28. stderr = { empty = true }
  29. status = 0
  30. tags = [ "hinfo", "madns", "json" ]
  31. [[cmd]]
  32. name = "Running with ‘utf8.hinfo.example --json’ interprets the response as UTF-8"
  33. shell = "dog --colour=always ${MADNS_ARGS:[email protected]:5301 --tcp} HINFO utf8.hinfo.example --json | jq"
  34. stdout = { file = "outputs/utf8.hinfo.example.json" }
  35. stderr = { empty = true }
  36. status = 0
  37. tags = [ "hinfo", "madns", "chars", "json" ]
  38. [[cmd]]
  39. name = "Running with ‘bad-utf8.hinfo.example --json’ uses UTF-8 replacement characters"
  40. shell = "dog --colour=always ${MADNS_ARGS:[email protected]:5301 --tcp} HINFO bad-utf8.hinfo.example --json | jq"
  41. stdout = { file = "outputs/bad-utf8.hinfo.example.json" }
  42. stderr = { empty = true }
  43. status = 0
  44. tags = [ "hinfo", "madns", "chars", "json" ]
  45. # HINFO record invalid packets
  46. [[cmd]]
  47. name = "Running with ‘empty.hinfo.invalid’ displays a protocol error"
  48. shell = "dog --colour=always ${MADNS_ARGS:[email protected]:5301 --tcp} HINFO empty.hinfo.invalid"
  49. stdout = { empty = true }
  50. stderr = { string = "Error [protocol]: Malformed packet: insufficient data" }
  51. status = 1
  52. tags = [ "hinfo", "madns" ]
  53. [[cmd]]
  54. name = "Running with ‘incomplete.hinfo.invalid’ displays a protocol error"
  55. shell = "dog --colour=always ${MADNS_ARGS:[email protected]:5301 --tcp} HINFO incomplete.hinfo.invalid"
  56. stdout = { empty = true }
  57. stderr = { string = "Error [protocol]: Malformed packet: insufficient data" }
  58. status = 1
  59. tags = [ "hinfo", "madns" ]