HTTP/1.1 200
Server: Werkzeug/~~~ Python/~~
Date: ~~~
Content-Type: text/html; charset=utf-8
Content-Length: 45
Server: Flask Server
Connection: close
Test
error: Assert header value
--> tests_failed/error_format_long.hurl:7:15
|
7 | Content-Type: text/html
| ^^^^^^^^^ actual value is
|
error: Assert failure
--> tests_failed/error_format_long.hurl:9:0
|
9 | xpath "string(//head/title)" == "Welcome!"
| actual: string
| expected: string
|
error: Assert failure
--> tests_failed/error_format_long.hurl:11:0
|
11 | xpath "//title" count == 2
| actual: int <1>
| expected: int <2>
|
HTTP/1.1 200
Server: Werkzeug/~~~ Python/~~~
Date: ~~~
Content-Type: application/json
Content-Length: 115
Server: Flask Server
Connection: close
{"books": [{"name": "Dune", "author": "Franck Herbert"}, {"name": "Les Mis\u00e9rables", "author": "Victor Hugo"}]}
error: Assert failure
--> tests_failed/error_format_long.hurl:18:0
|
18 | jsonpath "$.books" count == 12
| actual: int <2>
| expected: int <12>
|
HTTP/1.1 200
Server: Werkzeug/~~~ Python/~~~
Date: ~~~
Content-Type: application/problem+json
Content-Length: 258
Server: Flask Server
Connection: close
{"type": "https://example.com/probs/out-of-credit", "title": "You do not have enough credit.", "detail": "Your current balance is 30, but that costs 50.", "instance": "/account/12345/msgs/abc", "balance": 30, "accounts": ["/account/12345", "/account/67890"]}
error: Assert failure
--> tests_failed/error_format_long.hurl:26:0
|
26 | jsonpath "$.title" == "You have enough credit."
| actual: string
| expected: string
|