Added extra rules for assertions. In addition to the basic comparison syntax (for example, in the expect... values block, topping: pepperoni
), you can now use an object with a set of rules:
requests:
- name: Todo list
url: "{{host}}/todos/1"
method: get
expect:
status: 200
values:
id: 1 # can still use basic comparison syntax
title:
equals: delectus aut autem
num_tasks:
gt: 1
lt: 3
equals: 2 # redundant rules just for example sake
task_completed:
exists: true # just check that task_completed is in the response body, regardless of value
Changelog
5c9b9a2 add assertion rules