When we ask broker for contracts to be verified we can use
consumerVersionSelectors
to narrow down the consumers version.
It would be useful to have similar capabilities for WIP contracts selection. Currently it accepts only a date through
includeWipPactsSince
option.
Our current configuration using pact-ruby is the following:
honours_pacts_from_pact_broker do
pact_broker_base_url ...
consumer_version_selectors [
{consumer: 'My Consumer', tag: 'production', latest: true}
]
include_wip_pacts_since '2020-12-01'
enable_pending true
end
Currently, there is no way to exclude WIP pacts for consumer other than 'My Consumer'.