Skip to content

v0.3.0

Latest
Compare
Choose a tag to compare
@stephenhillier stephenhillier released this 07 Nov 06:49
· 1 commit to master since this release

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