public PactBroker
Used to point Pact runner to source of pacts for contract tests Default values can be set by setting the `pactbroker.*` system properties
Modifier and Type | Method and Description |
---|---|
PactBrokerAuth |
authentication()
Authentication to use with the pact broker, by default no authentication is used
|
java.lang.String[] |
consumers()
Consumers to fetch pacts for, defaults to all consumers If you set the consumers through the `pactbroker.consumers` system property, separate the consumers by commas
|
boolean |
failIfNoPactsFound()
If the test should fail if no pacts are found for the provider, default is true
|
java.lang.String |
host() |
java.lang.String |
port() |
java.lang.String |
protocol()
HTTP protocol, defaults to http
|
java.lang.String |
scheme()
HTTP scheme, defaults to HTTP
|
java.lang.String[] |
tags()
Tags to use to fetch pacts for, defaults to `latest` If you set the tags through the `pactbroker.tags` system property, separate the tags by commas
|
java.lang.Class<? extends au.com.dius.pact.support.expressions.ValueResolver> |
valueResolver()
Override the default value resolver for resolving the values in the expressions
|
java.lang.String host()
java.lang.String port()
java.lang.String protocol()
HTTP protocol, defaults to http
java.lang.String scheme()
HTTP scheme, defaults to HTTP
java.lang.String[] tags()
Tags to use to fetch pacts for, defaults to `latest` If you set the tags through the `pactbroker.tags` system property, separate the tags by commas
java.lang.String[] consumers()
Consumers to fetch pacts for, defaults to all consumers If you set the consumers through the `pactbroker.consumers` system property, separate the consumers by commas
boolean failIfNoPactsFound()
If the test should fail if no pacts are found for the provider, default is true
PactBrokerAuth authentication()
Authentication to use with the pact broker, by default no authentication is used
java.lang.Class<? extends au.com.dius.pact.support.expressions.ValueResolver> valueResolver()
Override the default value resolver for resolving the values in the expressions