mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-12-25 12:05:32 +03:00
11 lines
376 B
Plaintext
11 lines
376 B
Plaintext
GET http://localhost:8000/assert-match
|
|
HTTP 200
|
|
[Asserts]
|
|
jsonpath "$.date1" matches "\\d{4}-\\d{2}-\\d{2}"
|
|
jsonpath "$.date1" matches /\d{4}-\d{2}-\d{2}/
|
|
jsonpath "$.date2" matches /\d{4}-\d{2}-\d{2}/
|
|
jsonpath "$.date1" matches /^\d{4}-\d{2}-\d{2}$/
|
|
jsonpath "$.date2" not matches /^\d{4}-\d{2}-\d{2}$/
|
|
jsonpath "$.path1" matches /aa\/bb/
|
|
jsonpath "$.path2" matches /aa\\bb/
|