naptr-records.toml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. # NAPTR record successes
  2. [[cmd]]
  3. name = "Running with ‘naptr.example’ prints the correct NAPTR record"
  4. shell = "dog --colour=always --tcp @madns.binarystar.systems:5301 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 --tcp @madns.binarystar.systems:5301 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 invalid packets
  17. [[cmd]]
  18. name = "Running with ‘empty.naptr.invalid’ displays a protocol error"
  19. shell = "dog --colour=always --tcp @madns.binarystar.systems:5301 NAPTR empty.naptr.invalid"
  20. stdout = { empty = true }
  21. stderr = { string = "Error [protocol]: Malformed packet: insufficient data" }
  22. status = 1
  23. tags = [ "naptr", "madns" ]
  24. [[cmd]]
  25. name = "Running with ‘incomplete.naptr.invalid’ displays a protocol error"
  26. shell = "dog --colour=always --tcp @madns.binarystar.systems:5301 NAPTR incomplete.naptr.invalid"
  27. stdout = { empty = true }
  28. stderr = { string = "Error [protocol]: Malformed packet: insufficient data" }
  29. status = 1
  30. tags = [ "naptr", "madns" ]