packages feed

curl-runnings-0.6.0: examples/example-spec.json

[
  {
    "name": "test 1",
    "url": "http://your-endpoint.com/status",
    "requestMethod": "GET",
    "expectData": {
      "exactly": {
        "okay": true,
        "msg": "a message"
      }
    },
    "expectStatus": 200
  },
  {
    "name": "test 2",
    "url": "http://your-endpoint.com/path",
    "requestMethod": "POST",
    "expectStatus": [
      200,
      201
    ],
    "requestData": {
      "hello": "there",
      "num": 1
    }
  },
  {
    "name": "test 3",
    "url": "http://your-url.com/other/path",
    "requestMethod": "GET",
    "expectData": {
      "contains": [
        {
          "keyValueMatch": {
            "key": "okay",
            "value": true
          }
        },
        {
          "valueMatch": true
        }
      ]
    },
    "expectStatus": 200
  },
  {
    "name": "test 4",
    "url": "http://your-url.com/other/path",
    "requestMethod": "GET",
    "headers": "Content-Type: application/json",
    "expectStatus": 200,
    "expectHeaders": "Content-Type: application/json; Hello: world"
  },
  {
    "name": "test 5",
    "url": "http://your-url.com/other/path",
    "requestMethod": "GET",
    "headers": "Content-Type: application/json",
    "expectStatus": 200,
    "expectHeaders": [
      {
        "key": "Key-With-Val-We-Dont-Care-About"
      }
    ]
  },
  {
    "name": "test 6",
    "url": "http://your-url.com/other/path",
    "requestMethod": "GET",
    "headers": "Content-Type: application/json",
    "expectStatus": 200,
    "expectHeaders": [
      "Hello: world",
      {
        "value": "Value-With-Key-We-Dont-Care-About"
      }
    ]
  }
]