Hi, is anyone using Pact to mock out and verify th...
# general
o
Hi, is anyone using Pact to mock out and verify the responses from a document store like ElasticSearch? I have a use case where I’d like to avoid needing to have a running instance of ES when running automated tests locally, but still have the opportunity to verify the expectations are valid, and it seems like Pact might be good for this. Curious to know if this would be feasible and if anyone else has done this before?
b
thankyou 3 1
The rest of the answer is probably best in the form of some extra questions . . . • Are you using an ElasticSearch client library? If so, you should probably just stub that. • If you used Pact, would you also be running verifications against ES? • ES has an OAS spec, so could you get by with a generator for stubs?