errors.toml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. [[cmd]]
  2. name = "Running dog with ‘--wibble’ warns about the invalid argument"
  3. shell = "dog --wibble"
  4. stdout = { empty = true }
  5. stderr = { string = "wibble" }
  6. status = 3
  7. tags = [ 'options' ]
  8. [[cmd]]
  9. name = "Running dog with ‘XYZZY’ warns about the invalid record type"
  10. shell = "dog XYZZY dns.google"
  11. stdout = { empty = true }
  12. stderr = { string = "XYZZY" }
  13. status = 3
  14. tags = [ 'options' ]
  15. [[cmd]]
  16. name = "Running dog with ‘OPT’ warns that OPT requests are sent by default"
  17. shell = "dog OPT dns.google"
  18. stdout = { empty = true }
  19. stderr = { string = "OPT request is sent by default" }
  20. status = 3
  21. tags = [ 'options' ]
  22. [[cmd]]
  23. name = "Running dog with ‘opt’ also warns that OPT requests are sent by default"
  24. shell = "dog opt dns.google"
  25. stdout = { empty = true }
  26. stderr = { string = "OPT request is sent by default" }
  27. status = 3
  28. tags = [ 'options' ]
  29. [[cmd]]
  30. name = "Running dog with a domain longer than 255 bytes warns about it being too long"
  31. shell = "dog 12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890"
  32. stdout = { empty = true }
  33. stderr = { string = "12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890" }
  34. status = 3
  35. tags = [ 'options' ]
  36. [[cmd]]
  37. name = "Running dog with ‘--https’ and no nameserver warns that one is missing"
  38. shell = "dog --https dns.google"
  39. stdout = { empty = true }
  40. stderr = { string = "You must pass a URL as a nameserver when using --https" }
  41. status = 3
  42. tags = [ 'options' ]