Sha256: ebcf4331ec8549db408be2cce859b939a4a3512fc0c21a1f028bf312d1574661

Contents?: true

Size: 1.92 KB

Versions: 92

Compression:

Stored size: 1.92 KB

Contents

{
    "consumer": {
        "name": "an unknown consumer"
    },
    "provider": {
        "name": "an unknown provider"
    },
    "interactions": [
        {
            "description": "a test request",
            "request": {
                "method": "get",
                "path": "/weather",
                "query": ""
            },
            "response": {
                "status": 200,
                "headers" : {"Content-type": "application/json"},
                "body": {"message" : "this is not the weather you are looking for", "array": [{"foo": "bar"}], "somethingElse" : {"blah" : {"nested" : "that is missing"} }}

            },
            "provider_state": "the weather is cloudy"
        },{
            "description": "another test request",
            "request": {
                "method": "get",
                "path": "/weather",
                "query": ""
            },
            "response": {
                "status": 200,
                "headers" : {
                    "Content-type": {
                      "json_class": "Pact::Term",
                      "data": {
                        "generate": "application/hal+json",
                        "matcher": {"json_class":"Regexp","o":0,"s":"hal"}
                      }
                    },
                    "X-Special-Header": "something"
                },
                "body": {"message" : "this is not the weather you are looking for"}

            }
        },{
            "description": "another test request",
            "provider_state": "a missing provider state",
            "request": {
                "method": "get",
                "path": "/weather",
                "query": ""
            },
            "response": {
                "status": 200,
                "headers" : {"Content-type": "application/json"},
                "body": {"message" : "this is not the weather you are looking for"}

            }
        }
    ]
}

Version data entries

92 entries across 92 versions & 3 rubygems

Version Path
pact-support-1.11.0 spec/support/test_app_fail.json
pact-support-1.10.3 spec/support/test_app_fail.json
pact-support-1.10.2 spec/support/test_app_fail.json
pact-support-1.10.1 spec/support/test_app_fail.json
pact-support-1.10.0 spec/support/test_app_fail.json
pact-support-1.9.0 spec/support/test_app_fail.json
pact-support-1.8.1 spec/support/test_app_fail.json
pact-support-1.8.0 spec/support/test_app_fail.json
pact-support-1.7.2 spec/support/test_app_fail.json
pact-support-1.7.1 spec/support/test_app_fail.json
pact-support-1.7.0 spec/support/test_app_fail.json
pact-support-1.6.6 spec/support/test_app_fail.json
pact-support-1.6.5 spec/support/test_app_fail.json
pact-support-1.7.0.alpha.1 spec/support/test_app_fail.json
pact-support-1.6.4 spec/support/test_app_fail.json
pact-support-1.6.3 spec/support/test_app_fail.json
pact-support-1.6.2 spec/support/test_app_fail.json
pact-support-1.6.1 spec/support/test_app_fail.json
pact-support-1.6.0 spec/support/test_app_fail.json
pact-support-1.5.2 spec/support/test_app_fail.json