aaaa-records.toml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # AAAA record successes
  2. [[cmd]]
  3. name = "Running with ‘aaaa.example’ prints the correct AAAA record"
  4. shell = "dog --colour=always ${MADNS_ARGS:[email protected]:5301 --tcp} AAAA aaaa.example"
  5. stdout = { file = "outputs/aaaa.example.ansitxt" }
  6. stderr = { empty = true }
  7. status = 0
  8. tags = [ "aaaa", "madns" ]
  9. # AAAA record successes (JSON)
  10. [[cmd]]
  11. name = "Running with ‘aaaa.example --json’ prints the correct AAAA record structure"
  12. shell = "dog --colour=always ${MADNS_ARGS:[email protected]:5301 --tcp} AAAA aaaa.example --json | jq"
  13. stdout = { file = "outputs/aaaa.example.json" }
  14. stderr = { empty = true }
  15. status = 0
  16. tags = [ "aaaa", "madns", "json" ]
  17. # AAAA record invalid packets
  18. [[cmd]]
  19. name = "Running with ‘too-long.aaaa.invalid’ displays a record length error"
  20. shell = "dog --colour=always ${MADNS_ARGS:[email protected]:5301 --tcp} AAAA too-long.aaaa.invalid"
  21. stdout = { empty = true }
  22. stderr = { string = "Error [protocol]: Malformed packet: record length should be 16, got 17" }
  23. status = 1
  24. tags = [ "aaaa", "madns" ]
  25. [[cmd]]
  26. name = "Running with ‘too-short.aaaa.invalid’ displays a record length error"
  27. shell = "dog --colour=always ${MADNS_ARGS:[email protected]:5301 --tcp} AAAA too-short.aaaa.invalid"
  28. stdout = { empty = true }
  29. stderr = { string = "Error [protocol]: Malformed packet: record length should be 16, got 8" }
  30. status = 1
  31. tags = [ "aaaa", "madns" ]
  32. [[cmd]]
  33. name = "Running with ‘empty.aaaa.invalid’ displays a record length error"
  34. shell = "dog --colour=always ${MADNS_ARGS:[email protected]:5301 --tcp} AAAA empty.aaaa.invalid"
  35. stdout = { empty = true }
  36. stderr = { string = "Error [protocol]: Malformed packet: record length should be 16, got 0" }
  37. status = 1
  38. tags = [ "aaaa", "madns" ]
  39. [[cmd]]
  40. name = "Running with ‘incomplete.aaaa.invalid’ displays a protocol error"
  41. shell = "dog --colour=always ${MADNS_ARGS:[email protected]:5301 --tcp} AAAA incomplete.aaaa.invalid"
  42. stdout = { empty = true }
  43. stderr = { string = "Error [protocol]: Malformed packet: insufficient data" }
  44. status = 1
  45. tags = [ "aaaa", "madns" ]