eui48-records.toml 2.1 KB

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