2020-09-14 22:22:11 +03:00
|
|
|
error: Assert Failure
|
2020-08-27 10:07:46 +03:00
|
|
|
--> tests/error_predicate.hurl:4:0
|
|
|
|
|
|
|
|
|
4 | jsonpath "$.status" equals "true"
|
|
|
|
| actual: bool <true>
|
|
|
|
| expected: string <true>
|
|
|
|
|
|
|
|
|
|
2020-09-14 22:22:11 +03:00
|
|
|
error: Assert Failure
|
2020-08-27 10:07:46 +03:00
|
|
|
--> tests/error_predicate.hurl:6:0
|
|
|
|
|
|
|
|
|
6 | jsonpath "$.count" equals 0
|
|
|
|
| actual: int <1>
|
|
|
|
| expected: int <0>
|
|
|
|
|
|
|
|
|
|
2020-09-14 22:22:11 +03:00
|
|
|
error: Assert Failure
|
2020-08-27 10:07:46 +03:00
|
|
|
--> tests/error_predicate.hurl:7:0
|
|
|
|
|
|
|
|
|
7 | jsonpath "$.message" equals 0
|
|
|
|
| actual: string <0>
|
|
|
|
| expected: int <0>
|
|
|
|
|
|
|
|
|
|
2020-09-14 22:22:11 +03:00
|
|
|
error: Assert Failure
|
2020-08-27 10:07:46 +03:00
|
|
|
--> tests/error_predicate.hurl:8:0
|
|
|
|
|
|
|
|
|
8 | jsonpath "$.empty" equals 0
|
|
|
|
| actual: string <>
|
|
|
|
| expected: int <0>
|
|
|
|
|
|
|
|
|
|
2020-09-14 22:22:11 +03:00
|
|
|
error: Assert Failure
|
2020-08-27 10:07:46 +03:00
|
|
|
--> tests/error_predicate.hurl:9:0
|
|
|
|
|
|
|
|
|
9 | jsonpath "$.number" equals 1.1
|
|
|
|
| actual: float <1.0>
|
|
|
|
| expected: float <1.100000000000000000>
|
|
|
|
|
|
|
|
|
|
2020-09-14 22:22:11 +03:00
|
|
|
error: Assert Failure
|
2020-08-27 10:07:46 +03:00
|
|
|
--> tests/error_predicate.hurl:10:0
|
|
|
|
|
|
|
|
|
10 | jsonpath "$.message" startsWith "hi"
|
|
|
|
| actual: string <0>
|
|
|
|
| expected: starts with string <hi>
|
|
|
|
|
|
|
|
|
|
2020-09-14 22:22:11 +03:00
|
|
|
error: Assert Failure
|
2020-08-27 10:07:46 +03:00
|
|
|
--> tests/error_predicate.hurl:11:0
|
|
|
|
|
|
|
|
|
11 | jsonpath "$.message" contains "hi"
|
|
|
|
| actual: string <0>
|
|
|
|
| expected: contains string <hi>
|
|
|
|
|
|
|
|
|
|
2020-09-14 22:22:11 +03:00
|
|
|
error: Assert Failure
|
2020-08-27 10:07:46 +03:00
|
|
|
--> tests/error_predicate.hurl:12:0
|
|
|
|
|
|
|
|
|
12 | jsonpath "$.message" matches "hi"
|
|
|
|
| actual: string <0>
|
|
|
|
| expected: matches regex <hi>
|
|
|
|
|
|
|
|
|
|
2021-06-26 11:00:23 +03:00
|
|
|
error: Subquery error
|
|
|
|
--> tests/error_predicate.hurl:13:22
|
2020-08-27 10:07:46 +03:00
|
|
|
|
|
2021-06-26 11:00:23 +03:00
|
|
|
13 | jsonpath "$.message" count == 1
|
|
|
|
| ^^^^^ Type from query result and subquery do not match
|
2020-08-27 10:07:46 +03:00
|
|
|
|
|
|
|
|
|
2020-09-14 22:22:11 +03:00
|
|
|
error: Assert Failure
|
2020-08-27 10:07:46 +03:00
|
|
|
--> tests/error_predicate.hurl:14:0
|
|
|
|
|
|
|
|
|
14 | jsonpath "$.toto" exists
|
|
|
|
| actual: none
|
|
|
|
| expected: something
|
|
|
|
|
|
|
|
|
|
2020-09-14 22:22:11 +03:00
|
|
|
error: Assert Failure
|
2020-08-27 10:07:46 +03:00
|
|
|
--> tests/error_predicate.hurl:15:0
|
|
|
|
|
|
|
|
|
15 | jsonpath "$.message" not exists
|
|
|
|
| actual: string <0>
|
|
|
|
| expected: not something
|
|
|
|
|
|
|
|
|
|
2021-06-11 09:27:09 +03:00
|
|
|
error: Assert Failure
|
|
|
|
--> tests/error_predicate.hurl:16:0
|
|
|
|
|
|
2021-06-26 11:00:23 +03:00
|
|
|
16 | jsonpath "$.list" count == 2
|
|
|
|
| actual: int <3>
|
|
|
|
| expected: int <2>
|
2021-06-11 09:27:09 +03:00
|
|
|
|
|
|
|
|
|