mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-12-24 03:21:40 +03:00
2 lines
1.1 KiB
JSON
2 lines
1.1 KiB
JSON
{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/error-format-long/html"},"response":{"status":200,"headers":[{"name":"Content-Type","value":"text/html"}],"asserts":[{"query":{"type":"xpath","expr":"string(//head/title)"},"predicate":{"type":"equal","value":"Welcome!"}},{"query":{"type":"xpath","expr":"//foo"},"predicate":{"type":"isEmpty"}},{"query":{"type":"xpath","expr":"//title"},"filters":[{"type":"count"}],"predicate":{"type":"equal","value":2}}]}},{"request":{"method":"GET","url":"http://localhost:8000/error-format-long/json"},"response":{"status":200,"headers":[{"name":"Content-Type","value":"application/json"}],"asserts":[{"query":{"type":"jsonpath","expr":"$.books"},"filters":[{"type":"count"}],"predicate":{"type":"equal","value":12}}]}},{"request":{"method":"GET","url":"http://localhost:8000/error-format-long/rfc-7807"},"response":{"status":200,"headers":[{"name":"Content-Type","value":"application/problem+json"}],"asserts":[{"query":{"type":"jsonpath","expr":"$.title"},"predicate":{"type":"equal","value":"You have enough credit."}}]}}]}
|