pact-foundation / pact_broker-client

A Ruby and CLI client for the Pact Broker. Publish and retrieve pacts and verification results.
MIT License
69 stars 47 forks source link

CLI for getting supported version for specific participant #163

Open canny[bot] opened 4 months ago

canny[bot] commented 4 months ago

We are implementing contract testing for mobile apps. To perform the record release & record support ended for multiple supported versions for mobile apps. How do we get the list of production versions from pact broker for a specific participant. In our case there are multiple active versions on production but we want to keep n-3 versions for the contract validation. As per our finding we can use below APIs to get the supported versions from pact broker but it will require some custom code to be written to get from the APIs. To get environment ID: http://localhost/environments/ To get the currently supported version: http://localhost/environments/{envIdFromAboveAPIResponse}/released-versions/currently-supported Expected: It will be nice to have a CLI command to get the supported version from pact broker for specific participant. CLI for getting supported version for specific participant. It will make it very easy to use it on CI/CD.

https://pact.canny.io/admin/board/feature-requests/p/cli-for-getting-supported-version-for-specific-participant

canny[bot] commented 4 months ago

This issue has been linked to a Canny post: CLI for getting supported version for specific participant :tada:

canny[bot] commented 4 months ago

This issue has been linked to a Canny post: API for getting supported version for specific participant :tada: