4
0

naptr-records.toml 1.7 KB

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