hurl/integration/tests_ok/compressed_option.json
2023-06-24 11:34:57 +00:00

2 lines
7.3 KiB
JSON

{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/compressed/none","options":[{"name":"compressed","value":true}]},"response":{"status":200,"headers":[{"name":"Content-Length","value":"12"},{"name":"Content-Type","value":"text/html; charset=utf-8"}],"asserts":[{"query":{"type":"body"},"predicate":{"type":"start-with","value":"Hello"}},{"query":{"type":"bytes"},"predicate":{"type":"start-with","value":"SGVsbG8=","encoding":"base64"}},{"query":{"type":"sha256"},"predicate":{"type":"equal","value":"f4OxZX/x/FO5LcGBSKHWXfwtSx+j1ncoSt3SABJtkGk=","encoding":"base64"}},{"query":{"type":"md5"},"predicate":{"type":"equal","value":"7Qdih1MuhjZehB6Sv8UNjA==","encoding":"base64"}}],"body":{"type":"text","value":"Hello World!"}}},{"request":{"method":"GET","url":"http://localhost:8000/compressed/none","options":[{"name":"compressed","value":false}]},"response":{"status":200,"headers":[{"name":"Content-Length","value":"12"},{"name":"Content-Type","value":"text/html; charset=utf-8"}],"asserts":[{"query":{"type":"body"},"predicate":{"type":"start-with","value":"Hello"}},{"query":{"type":"bytes"},"predicate":{"type":"start-with","value":"SGVsbG8=","encoding":"base64"}},{"query":{"type":"sha256"},"predicate":{"type":"equal","value":"f4OxZX/x/FO5LcGBSKHWXfwtSx+j1ncoSt3SABJtkGk=","encoding":"base64"}},{"query":{"type":"md5"},"predicate":{"type":"equal","value":"7Qdih1MuhjZehB6Sv8UNjA==","encoding":"base64"}}],"body":{"type":"text","value":"Hello World!"}}},{"request":{"method":"GET","url":"http://localhost:8000/compressed/none","options":[{"name":"compressed","value":true}]},"response":{"status":200,"body":{"encoding":"base64","value":"SGVsbG8gV29ybGQh"}}},{"request":{"method":"GET","url":"http://localhost:8000/compressed/none","options":[{"name":"compressed","value":true}]},"response":{"status":200,"body":{"encoding":"base64","value":"SGVsbG8gV29ybGQh"}}},{"request":{"method":"GET","url":"http://localhost:8000/compressed/none","options":[{"name":"compressed","value":true}]},"response":{"status":200,"body":{"type":"file","filename":"hello.txt"}}},{"request":{"method":"GET","url":"http://localhost:8000/compressed/gzip","options":[{"name":"compressed","value":true}]},"response":{"status":200,"headers":[{"name":"Content-Length","value":"32"},{"name":"Content-Encoding","value":"gzip"},{"name":"Content-Type","value":"text/html; charset=utf-8"}],"asserts":[{"query":{"type":"body"},"predicate":{"type":"start-with","value":"Hello"}},{"query":{"type":"bytes"},"predicate":{"type":"start-with","value":"SGVsbG8=","encoding":"base64"}},{"query":{"type":"sha256"},"predicate":{"type":"equal","value":"f4OxZX/x/FO5LcGBSKHWXfwtSx+j1ncoSt3SABJtkGk=","encoding":"base64"}},{"query":{"type":"md5"},"predicate":{"type":"equal","value":"7Qdih1MuhjZehB6Sv8UNjA==","encoding":"base64"}}],"body":{"type":"text","value":"Hello World!"}}},{"request":{"method":"GET","url":"http://localhost:8000/compressed/gzip","options":[{"name":"compressed","value":true}]},"response":{"status":200,"body":{"encoding":"base64","value":"SGVsbG8gV29ybGQh"}}},{"request":{"method":"GET","url":"http://localhost:8000/compressed/gzip","options":[{"name":"compressed","value":true}]},"response":{"status":200,"body":{"encoding":"base64","value":"SGVsbG8gV29ybGQh"}}},{"request":{"method":"GET","url":"http://localhost:8000/compressed/gzip","options":[{"name":"compressed","value":true}]},"response":{"status":200,"body":{"type":"file","filename":"hello.txt"}}},{"request":{"method":"GET","url":"http://localhost:8000/compressed/zlib","options":[{"name":"compressed","value":true}]},"response":{"status":200,"headers":[{"name":"Content-Length","value":"20"},{"name":"Content-Encoding","value":"deflate"},{"name":"Content-Type","value":"text/html; charset=utf-8"}],"asserts":[{"query":{"type":"body"},"predicate":{"type":"start-with","value":"Hello"}},{"query":{"type":"bytes"},"predicate":{"type":"start-with","value":"SGVsbG8=","encoding":"base64"}},{"query":{"type":"sha256"},"predicate":{"type":"equal","value":"f4OxZX/x/FO5LcGBSKHWXfwtSx+j1ncoSt3SABJtkGk=","encoding":"base64"}},{"query":{"type":"md5"},"predicate":{"type":"equal","value":"7Qdih1MuhjZehB6Sv8UNjA==","encoding":"base64"}}],"body":{"type":"text","value":"Hello World!"}}},{"request":{"method":"GET","url":"http://localhost:8000/compressed/zlib","options":[{"name":"compressed","value":true}]},"response":{"status":200,"body":{"encoding":"base64","value":"SGVsbG8gV29ybGQh"}}},{"request":{"method":"GET","url":"http://localhost:8000/compressed/zlib","options":[{"name":"compressed","value":true}]},"response":{"status":200,"body":{"encoding":"base64","value":"SGVsbG8gV29ybGQh"}}},{"request":{"method":"GET","url":"http://localhost:8000/compressed/zlib","options":[{"name":"compressed","value":true}]},"response":{"status":200,"body":{"type":"file","filename":"hello.txt"}}},{"request":{"method":"GET","url":"http://localhost:8000/compressed/brotli","options":[{"name":"compressed","value":true}]},"response":{"status":200,"headers":[{"name":"Content-Length","value":"17"},{"name":"Content-Encoding","value":"br"},{"name":"Content-Type","value":"text/html; charset=utf-8"}],"asserts":[{"query":{"type":"body"},"predicate":{"type":"start-with","value":"Hello"}},{"query":{"type":"bytes"},"predicate":{"type":"start-with","value":"SGVsbG8=","encoding":"base64"}},{"query":{"type":"sha256"},"predicate":{"type":"equal","value":"f4OxZX/x/FO5LcGBSKHWXfwtSx+j1ncoSt3SABJtkGk=","encoding":"base64"}},{"query":{"type":"md5"},"predicate":{"type":"equal","value":"7Qdih1MuhjZehB6Sv8UNjA==","encoding":"base64"}}],"body":{"type":"text","value":"Hello World!"}}},{"request":{"method":"GET","url":"http://localhost:8000/compressed/brotli","options":[{"name":"compressed","value":true}]},"response":{"status":200,"body":{"encoding":"base64","value":"SGVsbG8gV29ybGQh"}}},{"request":{"method":"GET","url":"http://localhost:8000/compressed/brotli","options":[{"name":"compressed","value":true}]},"response":{"status":200,"body":{"encoding":"base64","value":"SGVsbG8gV29ybGQh"}}},{"request":{"method":"GET","url":"http://localhost:8000/compressed/brotli","options":[{"name":"compressed","value":true}]},"response":{"status":200,"body":{"type":"file","filename":"hello.txt"}}},{"request":{"method":"GET","url":"http://localhost:8000/compressed/brotli_large","options":[{"name":"compressed","value":true}]},"response":{"status":200,"headers":[{"name":"Content-Encoding","value":"br"},{"name":"Content-Type","value":"image/jpeg"}],"asserts":[{"query":{"type":"bytes"},"predicate":{"type":"start-with","value":"/9j/4A==","encoding":"base64"}}],"body":{"type":"file","filename":"cat.jpg"}}},{"request":{"method":"GET","url":"http://localhost:8000/compressed/brotli_identity","options":[{"name":"compressed","value":true}]},"response":{"status":200,"headers":[{"name":"Content-Length","value":"17"},{"name":"Content-Encoding","value":"br, identity"},{"name":"Content-Type","value":"text/html; charset=utf-8"}],"asserts":[{"query":{"type":"body"},"predicate":{"type":"start-with","value":"Hello"}},{"query":{"type":"bytes"},"predicate":{"type":"start-with","value":"SGVsbG8=","encoding":"base64"}},{"query":{"type":"sha256"},"predicate":{"type":"equal","value":"f4OxZX/x/FO5LcGBSKHWXfwtSx+j1ncoSt3SABJtkGk=","encoding":"base64"}},{"query":{"type":"md5"},"predicate":{"type":"equal","value":"7Qdih1MuhjZehB6Sv8UNjA==","encoding":"base64"}}],"body":{"type":"text","value":"Hello World!"}}}]}