eui64-records.toml 2.1 KB

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