Sha256: ed69d318a8515cc64b359f93174622b5eba24f71b14858dd43d7a51c0be205f9
Contents?: true
Size: 1.13 KB
Versions: 115
Compression:
Stored size: 1.13 KB
Contents
# Publish a pact Allowed methods: PUT A pact is published to the broker using a combination of the provider name, the consumer name, and the consumer application version. The consumer application version will be used to determine which revision of the pact is the "latest" to return to the provider for verification, and will allow you to determine which versions of the consumer and provider are compatible with each other. The pact generated by your passing consumer tests should be published to the broker during each CI build. Tools exist for this exist in most languages that have an implementation of pact. Example: PUT http://broker/pacts/provider/Bar/consumer/Foo/version/1.2.104 { "consumer": { "name": "Bar" }, "provider": { "name": "Foo" }, "interactions": [ { "description" : "a request for something", "provider_state": "something exists", "request": { "method": "get", "path" : "/something" }, "response": { "status": 200, "body" : "something" } } ] }
Version data entries
115 entries across 115 versions & 1 rubygems