public class PactBrokerOptions
public static au.com.dius.pact.provider.PactBrokerOptions.Companion Companion
@JvmOverloads
public PactBrokerOptions(boolean enablePending,
@NotNull
java.util.List<java.lang.String> providerTags,
@Nullable
java.lang.String providerBranch,
@Nullable
java.lang.String includeWipPactsSince,
boolean insecureTLS,
@Nullable
au.com.dius.pact.core.support.Auth auth)
enablePending - Enable pending pacts.See https://docs.pact.io/pact_broker/advanced_topics/pending_pactsproviderTags - Provider tags. Either this or providerBranch if pending pacts are enabledproviderBranch - Provider branch. Either this or providerTags if pending pacts are enabledincludeWipPactsSince - 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/insecureTLS - If we should enable insecure TLS. This will disable certificate hostname checks and accept all certificates.auth - Authentication for the pact broker@JvmOverloads
public PactBrokerOptions(boolean enablePending,
@NotNull
java.util.List<java.lang.String> providerTags,
@Nullable
java.lang.String providerBranch,
@Nullable
java.lang.String includeWipPactsSince,
boolean insecureTLS)
enablePending - Enable pending pacts.See https://docs.pact.io/pact_broker/advanced_topics/pending_pactsproviderTags - Provider tags. Either this or providerBranch if pending pacts are enabledproviderBranch - Provider branch. Either this or providerTags if pending pacts are enabledincludeWipPactsSince - 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/insecureTLS - If we should enable insecure TLS. This will disable certificate hostname checks and accept all certificates.@JvmOverloads
public PactBrokerOptions(boolean enablePending,
@NotNull
java.util.List<java.lang.String> providerTags,
@Nullable
java.lang.String providerBranch,
@Nullable
java.lang.String includeWipPactsSince)
enablePending - Enable pending pacts.See https://docs.pact.io/pact_broker/advanced_topics/pending_pactsproviderTags - Provider tags. Either this or providerBranch if pending pacts are enabledproviderBranch - Provider branch. Either this or providerTags if pending pacts are enabledincludeWipPactsSince - 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/@JvmOverloads
public PactBrokerOptions(boolean enablePending,
@NotNull
java.util.List<java.lang.String> providerTags,
@Nullable
java.lang.String providerBranch)
enablePending - Enable pending pacts.See https://docs.pact.io/pact_broker/advanced_topics/pending_pactsproviderTags - Provider tags. Either this or providerBranch if pending pacts are enabledproviderBranch - Provider branch. Either this or providerTags if pending pacts are enabled@JvmOverloads
public PactBrokerOptions(boolean enablePending,
@NotNull
java.util.List<java.lang.String> providerTags)
enablePending - Enable pending pacts.See https://docs.pact.io/pact_broker/advanced_topics/pending_pactsproviderTags - Provider tags. Either this or providerBranch if pending pacts are enabled@JvmOverloads public PactBrokerOptions(boolean enablePending)
enablePending - Enable pending pacts.See https://docs.pact.io/pact_broker/advanced_topics/pending_pacts@JvmOverloads public PactBrokerOptions()
@Deprecated @NotNull public java.util.Map<java.lang.String,java.lang.Object> toMutableMap()
public boolean getEnablePending()
Enable pending pacts.
See https://docs.pact.io/pact_broker/advanced_topics/pending_pacts
@NotNull public java.util.List<java.lang.String> getProviderTags()
Provider tags.
Either this or providerBranch if pending pacts are enabled
@Nullable public java.lang.String getProviderBranch()
Provider branch.
Either this or providerTags if pending pacts are enabled
@Nullable public java.lang.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/
public boolean getInsecureTLS()
If we should enable insecure TLS.
This will disable certificate hostname checks and accept all certificates.
@Nullable public au.com.dius.pact.core.support.Auth getAuth()
Authentication for the pact broker
public boolean component1()
Enable pending pacts.
See https://docs.pact.io/pact_broker/advanced_topics/pending_pacts
@NotNull public java.util.List<java.lang.String> component2()
Provider tags.
Either this or providerBranch if pending pacts are enabled
@Nullable public java.lang.String component3()
Provider branch.
Either this or providerTags if pending pacts are enabled
@Nullable public java.lang.String component4()
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/
public boolean component5()
If we should enable insecure TLS.
This will disable certificate hostname checks and accept all certificates.
@Nullable public au.com.dius.pact.core.support.Auth component6()
Authentication for the pact broker
@NotNull public PactBrokerOptions copy(boolean enablePending, @NotNull java.util.List<java.lang.String> providerTags, @Nullable java.lang.String providerBranch, @Nullable java.lang.String includeWipPactsSince, boolean insecureTLS, @Nullable au.com.dius.pact.core.support.Auth auth)
@NotNull public java.lang.String toString()
public int hashCode()
public boolean equals(@Nullable
java.lang.Object p)
@JvmStatic
@Nullable
public static au.com.dius.pact.core.support.Auth parseAuthSettings(@NotNull
java.util.Map<java.lang.String,? extends java.lang.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.