ConsumerVersionSelector

Value parameters:
additionalSelectors

see https://github.com/pact-foundation/pact_broker/blob/master/lib/pact_broker/doc/views/provider-pacts-for-verification.markdown for a list of available selectors that can be set. This list is subject to change and so we leave it to the user add any other selectors they require here rather than having them as strongly-typed fields.

branch

the branch name of the consumer versions to get the pacts for. Use of this selector requires that the consumer has configured a branch name when publishing the pacts.

consumer

allows a selector to only be applied to a certain consumer. This is used for example when there is an API that has multiple consumers, one of which is a deployed service, and one of which is a mobile consumer. The deployed service only needs the latest production pact verified, where as the mobile consumer may want all the production pacts verified.

fallbackTag

the name of the tag to fallback to if the specified tag does not exist. This is useful when the consumer and provider use matching branch names to coordinate the development of new features. This field is still supported but it is recommended to use the fallbackBranch in preference now.

latest

Used in conjunction with the tag property. If a tag is specified, and latest is true, then the latest pact for each of the consumers with that tag will be returned. If a tag is specified and the latest flag is not set to true, all the pacts with the specified tag will be returned. (This might seem a bit weird, but it's done this way to match the syntax used for the matrix query params. See https://docs.pact.io/selectors).

mainBranch

Return the pacts for the configured mainBranch of each consumer.Use of this selector requires that the consumer has configured the mainBranch property, and has set a branch name when publishing the pacts.

matchingBranch

When true, returns the latest pact for any branch with the same name as the specified providerVersionBranch.

tag

the tag name(s) of the consumer versions to get the pacts for. This field is still supported but it is recommended to use the branch in preference now.

See also:
Companion:
object
class Object
trait Matchable
class Any

Value members

Deprecated methods

@deprecated("Use withMainBranch without the argument, as if this is set it can only be true.", "0.3.0")
Deprecated
@deprecated("Use withMatchingBranch without the argument, as if this is set it can only be true.", "0.3.0")
Deprecated