Class PactBrokerOptions
-
- All Implemented Interfaces:
public final class PactBrokerOptions
-
-
Field Summary
Fields Modifier and Type Field Description private final BooleanenablePendingprivate final List<String>providerTagsprivate final StringproviderBranchprivate final StringincludeWipPactsSinceprivate final BooleaninsecureTLSprivate final Authauth
-
Constructor Summary
Constructors Constructor Description PactBrokerOptions(Boolean enablePending, List<String> providerTags, String providerBranch, String includeWipPactsSince, Boolean insecureTLS, Auth auth)PactBrokerOptions(Boolean enablePending, List<String> providerTags, String providerBranch, String includeWipPactsSince, Boolean insecureTLS)PactBrokerOptions(Boolean enablePending, List<String> providerTags, String providerBranch, String includeWipPactsSince)PactBrokerOptions(Boolean enablePending, List<String> providerTags, String providerBranch)PactBrokerOptions(Boolean enablePending, List<String> providerTags)PactBrokerOptions(Boolean enablePending)PactBrokerOptions()
-
Method Summary
Modifier and Type Method Description final BooleangetEnablePending()Enable pending pacts. final List<String>getProviderTags()Provider tags. final StringgetProviderBranch()Provider branch. final StringgetIncludeWipPactsSince()Only include WIP pacts since the provided date. final BooleangetInsecureTLS()If we should enable insecure TLS. final AuthgetAuth()Authentication for the pact broker final Map<String, Object>toMutableMap()final static AuthparseAuthSettings(Map<String, Object> options)Parse the authentication options provided from the build tools. -
-
Constructor Detail
-
PactBrokerOptions
PactBrokerOptions(Boolean enablePending, List<String> providerTags, String providerBranch, String includeWipPactsSince, Boolean insecureTLS, Auth auth)
-
PactBrokerOptions
PactBrokerOptions(Boolean enablePending, List<String> providerTags, String providerBranch, String includeWipPactsSince, Boolean insecureTLS)
-
PactBrokerOptions
PactBrokerOptions(Boolean enablePending, List<String> providerTags, String providerBranch, String includeWipPactsSince)
-
PactBrokerOptions
PactBrokerOptions(Boolean enablePending, List<String> providerTags, String providerBranch)
-
PactBrokerOptions
PactBrokerOptions(Boolean enablePending)
-
PactBrokerOptions
PactBrokerOptions()
-
-
Method Detail
-
getEnablePending
final Boolean getEnablePending()
Enable pending pacts. See https://docs.pact.io/pact_broker/advanced_topics/pending_pacts
-
getProviderTags
final List<String> getProviderTags()
Provider tags. Either this or providerBranch if pending pacts are enabled
-
getProviderBranch
final String getProviderBranch()
Provider branch. Either this or providerTags if pending pacts are enabled
-
getIncludeWipPactsSince
final String getIncludeWipPactsSince()
Only include WIP pacts since the provided date. Dates need to be in ISO format (YYYY-MM-DD). See https://docs.pact.io/pact_broker/advanced_topics/wip_pacts/
-
getInsecureTLS
final Boolean getInsecureTLS()
If we should enable insecure TLS. This will disable certificate hostname checks and accept all certificates.
-
getAuth
final Auth getAuth()
Authentication for the pact broker
-
toMutableMap
@Deprecated(message = "This will be removed once autentication options are moved to PactBrokerClientConfig") final Map<String, Object> toMutableMap()
-
parseAuthSettings
final static Auth parseAuthSettings(Map<String, Object> options)
Parse the authentication options provided from the build tools. These must be under an 'authentication' key and must be either an instance of au.com.dius.pact.core.support.Auth or must be a list of strings, where the first item is the scheme.
-
-
-
-