uri-records.toml 1.9 KB

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