ITV / scala-pact

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

Implement "wip pacts" #161

Closed bethesque closed 3 years ago

bethesque commented 4 years ago

See https://github.com/pact-foundation/pact_broker/issues/338

jbwheatley commented 3 years ago

Hey @bethesque, I'm working on adding this feature to scala-pact, but I'm wondering if you could help suggest a sensible strategy for writing some automated tests for it?

bethesque commented 3 years ago

The best thing you could do is write a pact for it that the broker verifies. Like this one here between the broker and the broker client https://github.com/pact-foundation/pact_broker-client/blob/master/spec/pacts/pact_broker_client-pact_broker.json

bethesque commented 3 years ago

The logic of "what makes a pact WIP" is something that the client should not be aware of however, as this has changed a few times already! It just needs to know that there are WIP pacts and that it should use the right field for it.