4
0

soa-records.toml 1.3 KB

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