Define host and port number in ValidatedPactProviderRule
Issue #72
resolved
When using ValidatedPactProviderRule combined with a Feign client injected by the Spring framework, it would be nice to be possible to define a fixed port, instead of the randomly generated one.
Something like
new ValidatedPactProviderRule("spec.yaml", null, PROVIDER_ID, this, "localhost", 8888);
or some custom configurations passed as object argument to keep the constructor small.
The uploaded file is just the original implementation with the added 2 parameters.
Comments (5)
-
-
A pull request #86 covering this issue was added.
-
- changed status to resolved
Available in v1.4.6
-
Issue
#119was marked as a duplicate of this issue. -
reporter Thanks for the improvement!!
- Log in to comment
We are also having this issue in my organization.
Had to have a workaround with a duplicate Java class, with an add overloaded constructor allowing the HOST and PORT arguments.
Is this going to be added to a future version update?