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

Passing Consumer and PRovider name as Environment variable #1616

Closed
galaxy79 opened this issue Oct 6, 2022 · 1 comment
Closed

Passing Consumer and PRovider name as Environment variable #1616

galaxy79 opened this issue Oct 6, 2022 · 1 comment

Comments

@galaxy79
Copy link

galaxy79 commented Oct 6, 2022

I'm using the pact-jvm to write the contract test and want to pass the consumer and provider names from the environment variable. I dont see that option on the Consumer annotation and want to check if there is a way to do it.

In our CI , we use a yaml file where we include the consumer and provider names. The reasoning behind this approach is to restrict who can use contract test and ensure pactipant is onboarded first before publishing it directly from the CI.
I do see an issue raised related to this in 2017 and want to know if this is fixed #528

rholshausen added a commit that referenced this issue Oct 26, 2022
… and provider annotation with JUnit4 provider tests #528 #1616
@rholshausen
Copy link
Contributor

Fix released with version 4.3.16

rholshausen added a commit that referenced this issue Nov 25, 2022
… and provider annotation with JUnit4 provider tests #528 #1616
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

2 participants