4
0

srv-records.toml 1.3 KB

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