-
-
Notifications
You must be signed in to change notification settings - Fork 111
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
How can pact handle dynamic bits in URL and query params ? #72
Comments
Hi @mohanraj-r, You are talking about functional testing, which is not something Pact supports. Each interaction must strictly be able to be validated in isolation from another. To achieve this, we use "provider states". See https://docs.pact.io/best_practices/contract_tests_not_functional_tests.html for a discussion of these functional tests. If I have misunderstood, and your request is more about being able to match the request path/headers/etc. using matchers, I've just come across a bug for that (related to a @gallamine query) and will release a fix in the next few days. |
Thanks @mefellows
Yes, having the ability to use matchers in the req URL, query etc could be helpful for me in this case as well |
- Allows path, query and headers to contain Matchers in order. - Update integration test examples to demonstrate capability - Speeds up test suite significantly BREAKING CHANGE Change updates the field definitions within the Request and Response types (See MatcherMap and MatcherString). Fixes #72, Fixes #73
- Allows path, query and headers to contain Matchers in order. - Update integration test examples to demonstrate capability - Speeds up test suite significantly BREAKING CHANGE Change updates the field definitions within the Request and Response types (See MatcherMap and MatcherString). Fixes #72, Fixes #73
I am trying to test a complex interaction :
How can I do this with Pact?
Software versions
Software versions
go1.10 darwin/amd64
go env
The text was updated successfully, but these errors were encountered: