ITV / scala-pact

A Scala implementation of CDC using the Pact standard
Other
108 stars 54 forks source link

Implement new pact-broker "pacts-for-verification" feature #178

Closed jbwheatley closed 3 years ago

jbwheatley commented 3 years ago

adds support for https://github.com/ITV/scala-pact/issues/159

See the original pact-broker issue for details on what this implements https://github.com/pact-foundation/pact_broker/issues/307

This expands the scala-pact API in the following ways:

This feature has been tested successfully using a new set of examples. Following this we will be able to implement features such as pending and WIP pacts!

A large portion of this PR is adding the new examples, new domain models, and adding new decoders to all the various circe version 🙄 The meat of the change is in scala-pact-core, in Verifier. A part of that logic responsible for fetching the pacts from a broker has been broken out into its own class, PactBrokerClient, which is where the new feature is implemented.

bethesque commented 3 years ago

Fantastic!!!