Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntactic sugar - allow easier config of @PactTestFor(providerName = "farmer", port = "8084") #68

Open
holly-cummins opened this issue Feb 4, 2023 · 2 comments

Comments

@holly-cummins
Copy link
Contributor

Instead of writing

@PactTestFor(providerName = "farmer", port = "8084")

it would be nice to be able to provide a rest client config key (similar to what we set in @RegisterRestClient(configKey = "farmer-api"). That would give us the URL and should also allow us to work out a sensible default provider name.

Alternatively, we pass through a class name of a RestClient, just as we do with some other Quarkus tests.

@holly-cummins
Copy link
Contributor Author

See also #69, which is a more extreme version of this.

@holly-cummins
Copy link
Contributor Author

This would also allow us to provide different config for %test profiles, to avoid port conflicts between mock and real servers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant