mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-12-24 03:21:40 +03:00
43 lines
1.3 KiB
Plaintext
43 lines
1.3 KiB
Plaintext
GET http://localhost:8000/predicate/error/type
|
|
HTTP 200
|
|
[Asserts]
|
|
jsonpath "$.status" == "true"
|
|
jsonpath "$.count" == 0
|
|
jsonpath "$.message" == 0
|
|
jsonpath "$.empty" == 0
|
|
jsonpath "$.number" == 1.1
|
|
jsonpath "$.count" startsWith "0"
|
|
jsonpath "$.count" endsWith "0"
|
|
jsonpath "$.count" matches "hi"
|
|
jsonpath "$.count" isEmpty
|
|
jsonpath "$.count" includes "foo"
|
|
jsonpath "$.message" startsWith "hi"
|
|
jsonpath "$.message" endsWith "hi"
|
|
jsonpath "$.message" contains "hi"
|
|
jsonpath "$.message" matches "hi"
|
|
jsonpath "$.message" matches "hi{"
|
|
jsonpath "$.message" isEmpty
|
|
jsonpath "$.message" count == 1
|
|
jsonpath "$.toto" exists
|
|
jsonpath "$.message" not exists
|
|
jsonpath "$.list" count == 2
|
|
jsonpath "$.not-exist" == 2
|
|
jsonpath "$.not-exist" > 3
|
|
jsonpath "$.not-exist" >= 3
|
|
jsonpath "$.not-exist" < 1
|
|
jsonpath "$.not-exist" <= 1
|
|
jsonpath "$.not-exist" count == 1
|
|
jsonpath "$.not-exist" startsWith "foo"
|
|
jsonpath "$.not-exist" endsWith "foo"
|
|
jsonpath "$.not-exist" contains "foo"
|
|
jsonpath "$.not-exist" includes "foo"
|
|
jsonpath "$.not-exist" matches /foo/
|
|
jsonpath "$.not-exist" isInteger
|
|
jsonpath "$.not-exist" isFloat
|
|
jsonpath "$.not-exist" isBoolean
|
|
jsonpath "$.not-exist" isString
|
|
jsonpath "$.not-exist" isCollection
|
|
jsonpath "$.not-exist" isDate
|
|
jsonpath "$.not-exist" exists
|
|
jsonpath "$.not-exist" isEmpty
|