ns-records.toml 1.3 KB

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