hurl icon indicating copy to clipboard operation
hurl copied to clipboard

Add assert that all collection values are equal to specified value

Open claytonneal opened this issue 1 year ago • 2 comments

Problem to solve

when using jsonpath such as "$.result..hash" i will get a collection of hashes i want to assert that all values in the collection are equal to a specified value

Proposal

The == predicate can be used on a collection to check all values in the collection e.g. "$.result..hash" == {{hash}} will check all values in the collection are equal to {{hash}}

Additional context and resources

Tasks to complete

claytonneal avatar Mar 01 '23 13:03 claytonneal

hello @claytonneal yes we should address that with an additional each keywork (https://github.com/Orange-OpenSource/hurl/issues/347) "$.result..hash" each == {{hash}}

fabricereix avatar Mar 01 '23 14:03 fabricereix

Sounds great

claytonneal avatar Mar 02 '23 10:03 claytonneal