errors.toml 1.5 KB

12345678910111213141516171819202122232425262728293031323334
  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. [[cmd]]
  8. name = "Running dog with ‘XYZZY’ warns about the invalid record type"
  9. shell = "dog XYZZY dns.google"
  10. stdout = { empty = true }
  11. stderr = { string = "XYZZY" }
  12. status = 3
  13. [[cmd]]
  14. name = "Running dog with ‘OPT’ warns that OPT requests are sent by default"
  15. shell = "dog OPT dns.google"
  16. stdout = { empty = true }
  17. stderr = { string = "OPT request is sent by default" }
  18. status = 3
  19. [[cmd]]
  20. name = "Running dog with a domain longer than 255 bytes warns about it being too long"
  21. shell = "dog 12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890"
  22. stdout = { empty = true }
  23. stderr = { string = "12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890" }
  24. status = 3
  25. [[cmd]]
  26. name = "Running dog with ‘--https’ and no nameserver warns that one is missing"
  27. shell = "dog --https dns.google"
  28. stdout = { empty = true }
  29. stderr = { string = "You must pass a URL as a nameserver when using --https" }
  30. status = 3