hurl/integration/tests_ok/hello_gb2312.json
2023-06-17 07:11:54 +00:00

2 lines
933 B
JSON

{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/hello_gb2312"},"response":{"status":200,"asserts":[{"query":{"type":"header","name":"Content-Type"},"predicate":{"type":"equal","value":"text/html; charset=gb2312"}},{"query":{"type":"bytes"},"predicate":{"type":"contain","value":"xOO6w8rAvec=","encoding":"base64"}},{"query":{"type":"xpath","expr":"string(//body)"},"predicate":{"type":"equal","value":"你好世界"}}]}},{"request":{"method":"GET","url":"http://localhost:8000/hello_gb2312_implicit"},"response":{"status":200,"asserts":[{"query":{"type":"header","name":"Content-Type"},"predicate":{"type":"equal","value":"text/html"}},{"query":{"type":"bytes"},"predicate":{"type":"contain","value":"xOO6w8rAvec=","encoding":"base64"}},{"query":{"type":"bytes"},"filters":[{"type":"decode","encoding":"gb2312"},{"type":"toDate","expr":"string(//body)"}],"predicate":{"type":"equal","value":"你好世界"}}]}}]}