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

validating contract with pact-jvm-spring #1381

Closed
naushadamin opened this issue Jun 11, 2021 · 4 comments
Closed

validating contract with pact-jvm-spring #1381

naushadamin opened this issue Jun 11, 2021 · 4 comments

Comments

@naushadamin
Copy link

In looking at the example provided in your workshop, I see the provider side of the validation is checking response shape(contract in my opinion) but also attribute values. I don't see a way to validate just the shape of the response. Is that possible with pact-jvm-spring?

@mefellows
Copy link
Member

Can you please expand on your question? If you're want to test the response shape but not fail on specific values, you should use the matchers e.g. https://docs.pact.io/implementation_guides/jvm/consumer/junit#dsl-matching-methods

@naushadamin
Copy link
Author

The example is from the consumer side. I am looking for instructions/examples to do the similar on provider side.

@mefellows
Copy link
Member

The consumer is responsible for adding the matchers, not the provider.

@naushadamin
Copy link
Author

Thanks!

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