Closed ivan-velasco closed 1 year ago
- As the order of arrays in responses may vary, a new assertion has been introduced to perform lookups based on key and value.
Example:
- steps: - type: exec script: echo '[{"foo":"bar"}, {"foo2":"bar2"}, {"foo2":"bar3" }]' assertions: - result.systemoutjson ShouldContainKeyValue foo2 bar2
This is a pretty helpful feature for our tests. Thanks @ivan-velasco for working on it.
Thank you @ivan-velasco for this proposal. Are you ok with https://github.com/ovh/venom/pull/747/files ?
@yesnault yes this works for more scenarios ☑️
Example: