-
public interface IPactBrokerClient
-
-
Method Summary
Modifier and Type Method Description abstract Result<List<PactBrokerResult>, Exception>fetchConsumersWithSelectors(String providerName, List<ConsumerVersionSelector> selectors, List<String> providerTags, Boolean enablePending, String includeWipPactsSince)Fetches all consumers for the given provider and selectors abstract StringgetUrlForProvider(String providerName, String tag)abstract Result<Boolean, List<String>>publishProviderTags(Map<String, Object> docAttributes, String name, List<String> tags, String version)Publish all the tags for the provider to the Pact broker abstract Result<Boolean, String>publishVerificationResults(Map<String, Object> docAttributes, TestResult result, String version, String buildUrl)Publishes the result to the "pb:publish-verification-results" link in the document attributes. abstract Result<Boolean, String>publishVerificationResults(Map<String, Object> docAttributes, TestResult result, String version)Publishes the result to the "pb:publish-verification-results" link in the document attributes. abstract Map<String, Object>getOptions()-
-
Method Detail
-
fetchConsumersWithSelectors
abstract Result<List<PactBrokerResult>, Exception> fetchConsumersWithSelectors(String providerName, List<ConsumerVersionSelector> selectors, List<String> providerTags, Boolean enablePending, String includeWipPactsSince)
Fetches all consumers for the given provider and selectors
-
getUrlForProvider
abstract String getUrlForProvider(String providerName, String tag)
-
publishProviderTags
abstract Result<Boolean, List<String>> publishProviderTags(Map<String, Object> docAttributes, String name, List<String> tags, String version)
Publish all the tags for the provider to the Pact broker
- Parameters:
docAttributes- Attributes associated with the fetched Pact filetags- Provider tags to tag the provider withversion- Provider version
-
publishVerificationResults
abstract Result<Boolean, String> publishVerificationResults(Map<String, Object> docAttributes, TestResult result, String version, String buildUrl)
Publishes the result to the "pb:publish-verification-results" link in the document attributes.
-
publishVerificationResults
abstract Result<Boolean, String> publishVerificationResults(Map<String, Object> docAttributes, TestResult result, String version)
Publishes the result to the "pb:publish-verification-results" link in the document attributes.
-
getOptions
abstract Map<String, Object> getOptions()
-
-
-
-