Evan Hegyi
08/04/2023, 3:00 PMmvn pact:verify for the Consumer contracts. I supply Provider mocks via Microcks (a mock server) loaded with mocks from OpenAPI Examples that are lint validated with Spectral. Because the OpenAPI schema and the Java Provider endpoint as always in sync I feel confident my mocks will not go out of sync with the Provider endpoint.
However I do worry about the Provider response after any business logic might be executed (State). At present I'm considering using Microcks's response behaviour features Dispatcher Rules to inject Provider State, but feel this can go out of sync with the real Provider. I see you can use Pact Junit runner to inject Provider states as well, but I don't see how this will also stop the endpoint's business logic going out of the sync.
Any advice appreciated! Thanks.uglyog
Evan Hegyi
08/08/2023, 5:21 PM