tlsa-records.toml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # TLSA record successes
  2. [[cmd]]
  3. name = "Running with ‘tlsa.example’ prints the correct TLSA record"
  4. shell = "dog --colour=always ${MADNS_ARGS:[email protected]:5301 --tcp} TLSA tlsa.example"
  5. stdout = { file = "outputs/tlsa.example.ansitxt" }
  6. stderr = { empty = true }
  7. status = 0
  8. tags = [ "tlsa", "madns" ]
  9. # TLSA record successes (JSON)
  10. [[cmd]]
  11. name = "Running with ‘tlsa.example --json’ prints the correct TLSA record structure"
  12. shell = "dog --colour=always ${MADNS_ARGS:[email protected]:5301 --tcp} TLSA tlsa.example --json | jq"
  13. stdout = { file = "outputs/tlsa.example.json" }
  14. stderr = { empty = true }
  15. status = 0
  16. tags = [ "tlsa", "madns", "json" ]
  17. # TLSA record invalid packets
  18. [[cmd]]
  19. name = "Running with ‘empty.tlsa.invalid’ displays a protocol error"
  20. shell = "dog --colour=always ${MADNS_ARGS:[email protected]:5301 --tcp} TLSA empty.tlsa.invalid"
  21. stdout = { empty = true }
  22. stderr = { string = "Error [protocol]: Malformed packet: insufficient data" }
  23. status = 1
  24. tags = [ "tlsa", "madns" ]
  25. [[cmd]]
  26. name = "Running with ‘incomplete.tlsa.invalid’ displays a protocol error"
  27. shell = "dog --colour=always ${MADNS_ARGS:[email protected]:5301 --tcp} TLSA incomplete.tlsa.invalid"
  28. stdout = { empty = true }
  29. stderr = { string = "Error [protocol]: Malformed packet: insufficient data" }
  30. status = 1
  31. tags = [ "tlsa", "madns" ]