test1654 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <testcase>
  2. <info>
  3. <keywords>
  4. unittest
  5. alt-svc
  6. altsvc
  7. </keywords>
  8. </info>
  9. <client>
  10. <server>
  11. none
  12. </server>
  13. <features>
  14. unittest
  15. alt-svc
  16. </features>
  17. # This date is exactly "20190124 22:34:21" UTC
  18. <setenv>
  19. CURL_TIME=1548369261
  20. </setenv>
  21. <name>
  22. alt-svc
  23. </name>
  24. <command>
  25. log/1654
  26. </command>
  27. <tool>
  28. unit1654
  29. </tool>
  30. <file name="log/1654" mode="text">
  31. h2 example.com 443 h3 shiny.example.com 8443 "20191231 00:00:00" 0 1
  32. # a comment
  33. h2 foo.example.com 443 h3 shiny.example.com 8443 "20291231 23:30:00" 0 1
  34. h1 example.com 443 h3 shiny.example.com 8443 "20121231 00:00:01" 0 1
  35. h3 example.com 443 h3 shiny.example.com 8443 "20131231 00:00:00" 0 1
  36. # also a comment
  37. bad example.com 443 h3 shiny.example.com 8443 "20191231 00:00:00" 0 1
  38. rubbish
  39. </file>
  40. </client>
  41. <verify>
  42. <file name="log/1654-out" mode="text">
  43. # Your alt-svc cache. https://curl.haxx.se/docs/alt-svc.html
  44. # This file was generated by libcurl! Edit at your own risk.
  45. h2 example.com 443 h3 shiny.example.com 8443 "20191231 00:00:00" 0 1
  46. h2 foo.example.com 443 h3 shiny.example.com 8443 "20291231 23:30:00" 0 1
  47. h1 example.com 443 h3 shiny.example.com 8443 "20121231 00:00:01" 0 1
  48. h3 example.com 443 h3 shiny.example.com 8443 "20131231 00:00:00" 0 1
  49. h1 example.org 8080 h2 example.com 8080 "20190125 22:34:21" 0 0
  50. h1 2.example.org 8080 h3 2.example.org 8080 "20190125 22:34:21" 0 0
  51. h1 3.example.org 8080 h2 example.com 8080 "20190125 22:34:21" 0 0
  52. h1 3.example.org 8080 h3 yesyes.com 8080 "20190125 22:34:21" 0 0
  53. h2 example.org 80 h2 example.com 443 "20190124 22:36:21" 0 0
  54. </file>
  55. </verify>
  56. </testcase>