Annotation Type PactBroker
-
@Retention(RUNTIME) @Target(TYPE) @Inherited public @interface PactBrokerUsed to point Pact runner to source of pacts for contract tests Default values can be set by setting the `pactbroker.*` system properties- See Also:
pact loader
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description PactBrokerAuthauthenticationAuthentication to use with the pact broker, by default no authentication is usedjava.lang.String[]consumersDeprecated.UseconsumerVersionSelectors()insteadVersionSelector[]consumerVersionSelectorsConsumer version selectors to fetch pacts for, defaults to latest version If you set the version selector tags or latest fields through system properties, separate values by commasjava.lang.StringenableInsecureTlsEnabling insecure TLS by setting this to true will disable hostname validation and trust all certificates.java.lang.StringenablePendingPactsIf the pending pacts feature should be enabled.java.lang.StringhostDeprecated.Use url insteadjava.lang.StringincludeWipPactsSinceThe earliest date WIP pacts should be included (ex: YYYY-MM-DD).java.lang.StringportDeprecated.Use url insteadjava.lang.StringproviderBranchProvider Branches to use to evaluate pending pactsjava.lang.String[]providerTagsProvider Tags to use to evaluate pending pactsjava.lang.StringschemeDeprecated.Use url insteadjava.lang.String[]tagsDeprecated.UseconsumerVersionSelectors()insteadjava.lang.Stringurljava.lang.Class<? extends au.com.dius.pact.core.support.expressions.ValueResolver>valueResolverOverride the default value resolver for resolving the values in the expressions
-
-
-
-
tags
@Deprecated java.lang.String[] tags
Deprecated.UseconsumerVersionSelectors()insteadTags 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- Default:
- {"${pactbroker.tags:}"}
-
-
-
consumerVersionSelectors
VersionSelector[] consumerVersionSelectors
Consumer version selectors to fetch pacts for, defaults to latest version If you set the version selector tags or latest fields through system properties, separate values by commas- Default:
- {@au.com.dius.pact.provider.junitsupport.loader.VersionSelector(tag="${pactbroker.consumerversionselectors.tags:}", latest="${pactbroker.consumerversionselectors.latest:}", consumer="${pactbroker.consumers:}")}
-
-
-
consumers
@Deprecated java.lang.String[] consumers
Deprecated.UseconsumerVersionSelectors()insteadConsumers to fetch pacts for, defaults to all consumers If you set the consumers through the `pactbroker.consumers` system property, separate the consumers by commas- Default:
- {"${pactbroker.consumers:}"}
-
-
-
authentication
PactBrokerAuth authentication
Authentication to use with the pact broker, by default no authentication is used- Default:
- @au.com.dius.pact.provider.junitsupport.loader.PactBrokerAuth(username="${pactbroker.auth.username:}", password="${pactbroker.auth.password:}", token="${pactbroker.auth.token:}")
-
-
-
enableInsecureTls
java.lang.String enableInsecureTls
Enabling insecure TLS by setting this to true will disable hostname validation and trust all certificates. Use with caution. This can be set with the pactbroker.enableInsecureTls JVM system property.- Default:
- "${pactbroker.enableInsecureTls:false}"
-
-