public class PactBrokerClient implements IPactBrokerClient
Client for the pact broker service
@NotNull public static java.lang.String LATEST_PROVIDER_PACTS_WITH_NO_TAG
@NotNull public static java.lang.String LATEST_PROVIDER_PACTS
@NotNull public static java.lang.String LATEST_PROVIDER_PACTS_WITH_TAG
@NotNull public static java.lang.String PROVIDER_PACTS_FOR_VERIFICATION
@NotNull public static java.lang.String BETA_PROVIDER_PACTS_FOR_VERIFICATION
@NotNull public static java.lang.String PROVIDER
@NotNull public static java.lang.String PROVIDER_TAG_VERSION
@NotNull public static java.lang.String PACTS
@NotNull public static java.lang.String UTF8
public static au.com.dius.pact.core.pactbroker.PactBrokerClient.Companion Companion
public PactBrokerClient(@NotNull
java.lang.String pactBrokerUrl,
@NotNull
java.util.Map<java.lang.String,java.lang.Object> options,
@NotNull
PactBrokerClientConfig config)
Client for the pact broker service
@Deprecated
public PactBrokerClient(@NotNull
java.lang.String pactBrokerUrl)
@Deprecated
@NotNull
public java.util.List<au.com.dius.pact.core.pactbroker.PactBrokerResult> fetchConsumers(@NotNull
java.lang.String provider)
Fetches all consumers for the given provider
@Deprecated
@NotNull
public java.util.List<au.com.dius.pact.core.pactbroker.PactBrokerResult> fetchConsumersWithTag(@NotNull
java.lang.String provider,
@NotNull
java.lang.String tag)
Fetches all consumers for the given provider and tag
@NotNull
public com.github.michaelbull.result.Result<java.util.List,java.lang.Exception> fetchConsumersWithSelectors(@NotNull
java.lang.String providerName,
@NotNull
java.util.List<au.com.dius.pact.core.pactbroker.ConsumerVersionSelector> selectors,
@NotNull
java.util.List<java.lang.String> providerTags,
boolean enablePending,
@Nullable
java.lang.String includeWipPactsSince)
Fetches all consumers for the given provider and selectors
@JvmOverloads
@NotNull
public com.github.michaelbull.result.Result<java.lang.String,java.lang.Exception> uploadPactFile(@NotNull
java.io.File pactFile,
@NotNull
java.lang.String version,
@NotNull
java.util.List<java.lang.String> tags)
Uploads the given pact file to the broker, and optionally applies any tags
@JvmOverloads
@NotNull
public com.github.michaelbull.result.Result<java.lang.String,java.lang.Exception> uploadPactFile(@NotNull
java.io.File pactFile,
@NotNull
java.lang.String version)
Uploads the given pact file to the broker, and optionally applies any tags
@Nullable
public java.lang.String getUrlForProvider(@NotNull
java.lang.String providerName,
@NotNull
java.lang.String tag)
@NotNull public PactResponse fetchPact(@NotNull java.lang.String url, boolean encodePath)
@NotNull public IHalClient newHalClient()
@NotNull
public com.github.michaelbull.result.Result<java.lang.Boolean,java.lang.String> publishVerificationResults(@NotNull
java.util.Map<java.lang.String,? extends java.lang.Object> docAttributes,
@NotNull
TestResult result,
@NotNull
java.lang.String version)
Publishes the result to the "pb:publish-verification-results" link in the document attributes.
@NotNull
public com.github.michaelbull.result.Result<java.lang.Boolean,java.lang.String> publishVerificationResults(@NotNull
java.util.Map<java.lang.String,? extends java.lang.Object> docAttributes,
@NotNull
TestResult result,
@NotNull
java.lang.String version,
@Nullable
java.lang.String buildUrl)
Publishes the result to the "pb:publish-verification-results" link in the document attributes.
@NotNull
public au.com.dius.pact.core.support.json.JsonValue.Object buildPayload(@NotNull
TestResult result,
@NotNull
java.lang.String version,
@Nullable
java.lang.String buildUrl)
@Deprecated
@NotNull
public java.util.List<au.com.dius.pact.core.pactbroker.PactBrokerResult> fetchLatestConsumersWithNoTag(@NotNull
java.lang.String provider)
Fetches the consumers of the provider that have no associated tag
@Deprecated
public void publishProviderTag(@NotNull
java.util.Map<java.lang.String,? extends java.lang.Object> docAttributes,
@NotNull
java.lang.String name,
@NotNull
java.lang.String tag,
@NotNull
java.lang.String version)
@NotNull
public com.github.michaelbull.result.Result<java.lang.Boolean,java.util.List> publishProviderTags(@NotNull
java.util.Map<java.lang.String,? extends java.lang.Object> docAttributes,
@NotNull
java.lang.String name,
@NotNull
java.util.List<java.lang.String> tags,
@NotNull
java.lang.String version)
Publish all the tags for the provider to the Pact broker
docAttributes - Attributes associated with the fetched Pact filetags - Provider tags to tag the provider withversion - Provider version@NotNull public CanIDeployResult canIDeploy(@NotNull java.lang.String pacticipant, @NotNull java.lang.String pacticipantVersion, @NotNull Latest latest, @Nullable java.lang.String to)
@NotNull
public com.github.michaelbull.result.Result<java.lang.String,java.lang.Exception> createVersionTag(@NotNull
java.lang.String pacticipant,
@NotNull
java.lang.String pacticipantVersion,
@NotNull
java.lang.String tag)
@NotNull public java.lang.String getPactBrokerUrl()
@NotNull public java.util.Map<java.lang.String,java.lang.Object> getOptions()
@NotNull public PactBrokerClientConfig getConfig()