Sha256: 9f4f9672fab8fc025af9da2828e289bf72ca604f059a6bd850861b3817d6466e

Contents?: true

Size: 1.46 KB

Versions: 3

Compression:

Stored size: 1.46 KB

Contents

{
  "provider": {
    "name": "Animal Service"
  },
  "consumer": {
    "name": "Zoo App"
  },
  "interactions": [
    {
      "description": "a request for an alligator",
      "provider_state": "there is an alligator named Mary",
      "request": {
        "method": "get",
        "path": "/alligators/Mary",
        "headers": {
          "Accept": "application/json"
        }
      },
      "response": {
        "status": 200,
        "headers": {
          "Content-Type": "application/json;charset=utf-8"
        },
        "body": {
          "name": "Mary"
        }
      }
    },
    {
      "description": "a request for an alligator",
      "provider_state": "there is not an alligator named Mary",
      "request": {
        "method": "get",
        "path": "/alligators/Mary",
        "headers": {
          "Accept": "application/json"
        }
      },
      "response": {
        "status": 404
      }
    },
    {
      "description": "a request for an alligator",
      "provider_state": "an error occurs retrieving an alligator",
      "request": {
        "method": "get",
        "path": "/alligators/Mary",
        "headers": {
          "Accept": "application/json"
        }
      },
      "response": {
        "status": 500,
        "headers": {
          "Content-Type": "application/json;charset=utf-8"
        },
        "body": {
          "error": "Argh!!!"
        }
      }
    }
  ],
  "metadata": {
    "pact_gem": {
      "version": "1.0.30"
    }
  }
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pact-1.0.33 example/zoo-app/spec/pacts/zoo_app-animal_service.json
pact-1.0.32 example/zoo-app/spec/pacts/zoo_app-animal_service.json
pact-1.0.31 example/zoo-app/spec/pacts/zoo_app-animal_service.json