You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here the lambda in stream processing calls PactReader::loadPact but does not specify any pact auth options, therefore the internal call to load pact from remote URL fails.
Steps To Reproduce
Try to fetch any pacts from broker secured with basic auth.
Additional Information
Could someone please comment on the general stability and development of this project? Is it used by someone?
There are many places in code, that do not look like it has been tested properly, for example the pact broker returns list of contract urls without .json suffix, however all this links will be filtered out by the filter inside loadContractFiles making it impossible to load any contracts form this broker. Or the getPacts method: it obvisouly intends to filter pacts only for given consumer if @Consumer annotation is present, however the code:
final Consumer consumerInfo = testClass.getAnnotation(Consumer.class);
final String consumerName = consumerInfo != null ? consumerInfo.value() : null;
couldnt ever work, because @Consumer annotation can not be applied to Types, only to fields.
Thanks for any input.
The text was updated successfully, but these errors were encountered:
Issue Overview
When using pact broker secured with basic auth, no pacts can be download.
Expected Behaviour
Pacts from broker should download without issues provided the configuration is ok.
Current Behaviour
Username and password are only used to download the consumer list, but when the actual pact contracts are loaded, the credentials are not used.
Problematic code:
PactsRetriever
Here the lambda in stream processing calls
PactReader::loadPact
but does not specify any pact auth options, therefore the internal call to load pact from remote URL fails.Steps To Reproduce
Try to fetch any pacts from broker secured with basic auth.
Additional Information
Could someone please comment on the general stability and development of this project? Is it used by someone?
There are many places in code, that do not look like it has been tested properly, for example the pact broker returns list of contract urls without
.json
suffix, however all this links will be filtered out by the filter insideloadContractFiles
making it impossible to load any contracts form this broker. Or thegetPacts
method: it obvisouly intends to filter pacts only for given consumer if@Consumer
annotation is present, however the code:couldnt ever work, because
@Consumer
annotation can not be applied to Types, only to fields.Thanks for any input.
The text was updated successfully, but these errors were encountered: