bins.toml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # HTTPS
  2. [[cmd]]
  3. name = "Using a DNS-over-HTTPS server that returns status 500"
  4. shell = "dog --https @https://eu.httpbin.org/status/500 lookup.dog"
  5. stdout = { empty = true }
  6. stderr = { string = "Error [http]: Nameserver returned HTTP 500 (INTERNAL SERVER ERROR)" }
  7. status = 1
  8. tags = [ 'live', 'httpbin', 'https' ]
  9. [[cmd]]
  10. name = "Using a DNS-over-HTTPS server that returns no content"
  11. shell = "dog --https @https://eu.httpbin.org/status/200 lookup.dog"
  12. stdout = { empty = true }
  13. stderr = { string = "Error [protocol]: Malformed packet: insufficient data" }
  14. status = 1
  15. tags = [ 'live', 'httpbin', 'https' ]
  16. # TCP
  17. # [[cmd]]
  18. # name = "Using a TCP server that returns an empty message"
  19. # shell = "dog --tcp @52.20.16.20:30000 lookup.dog"
  20. # stdout = { empty = true }
  21. # stderr = { string = "Error [network]: Truncated response" }
  22. # status = 1
  23. # tags = [ 'live', 'tcpbin', 'tcp' ]
  24. # The above test is flaky. It works correctly the first time, but produces a
  25. # different error message on subsequent runs.
  26. #
  27. # The ‘other’ tcpbin can be used to test the truncated response error
  28. # handling, but it requires waiting 60 seconds for their server to give up and
  29. # send us a FIN:
  30. #
  31. # - dog --tcp bsago.me @tcpbin.com:4242
  32. # - dog --tls bsago.me @tcpbin.com:4243