Hello everyone, I have a question about document m...
# pact-broker
a
Hello everyone, I have a question about document management with pact-brocker. In traditional schema driven testing, we first create the swagger api document and then write tests according to the schema. I couldn’t quite understand at what stage the document should be in pact flow. Is it possible for me to create a swagger document and perform cdc(consumer driven contract testing) first?
b
Hi @Ali Boztemir. You can publish the OAS to Pactflow (not the OSS Pact Broker - this is a Pactflow only feature) at any time, as soon as you have it. This will allow the consumer to start writing their Pact tests and getting feedback on whether their calls match the expected OAS. What you can't do until you have implemented the provider is publish the provider self verification results. Only once there is a successful self verification from the provider will can-i-deploy return a successful result for either consumer/provider.
1
a
Thank you