Wayne Ng
05/03/2022, 3:55 PMYousaf Nabi (pactflow.io)
branch version should be created before publishing provider contracts3. Use pact-broker cli
pact-broker can-i-deploy
where environments are first used / example via makefile
4. Use pact-broker cli pact-broker record-deployment
where environments can be recorded post deployment / example via makefile
Notes:-
1. The current advice here https://docs.pactflow.io/docs/bi-directional-contract-testing/provider#step-5-deploy-your-application regarding tagging, is out-of-date and will be removed.
2. Both 1 and 2 in the steps above, will be available via the CLI soon. Roadmap item tracking CLI publishing tool is here
will get the team to cast their eyes over cc: @Matt (pactflow.io / pact-js / pact-go) / @Beth (pactflow.io/Pact Broker/pact-ruby)Matt (pactflow.io / pact-js / pact-go)
Yousaf Nabi (pactflow.io)
Luke Redpath
05/05/2022, 11:24 AMYousaf Nabi (pactflow.io)
Luke Redpath
05/05/2022, 12:02 PMYousaf Nabi (pactflow.io)
mainly around how we produce OpenAPI specs for our existing APIsYes, this is always a challenge, especially for legacy systems, that can be cumbersome to integrate with. I do have a couple of shortcuts, creating a postman collection to test an existing service, and generating an openAPI spec off the back of it. • https://github.com/joolfe/postman-to-openapi • https://github.com/kevinswiber/postman2openapi We use one of the above in https://github.com/pactflow/example-bi-directional-provider-postman I've been on the hunt recently for OSS tools around open api, and have a little cli tool that contains a selection of all the awesome things I've found, I thought it was a good way to bring my GitHub stars list to life, and for me to learn more about CLI tooling. I need to release it at some point 🙂
Luke Redpath
05/05/2022, 12:33 PMLuke Redpath
05/05/2022, 12:34 PMopen_api_spex
but are investigating the possibility of using our existing backend test suite to generate the open api docs.Luke Redpath
05/05/2022, 12:34 PMYousaf Nabi (pactflow.io)