-
Notifications
You must be signed in to change notification settings - Fork 216
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
URL based matching #107
Comments
I'm not sure if regex expression work with paths. I'll need to confirm. |
It does in the consumer side, but you need to provide a concrete example On Saturday, May 28, 2016, Ronald Holshausen [email protected]
|
how does it work with regex? |
@bethesque Can you give an example of how this can be done? |
It would be nice if there were a way to not have to specify a value for the provider. I'm wondering if there can be a generator in the :path, something along the lines of path: '/some_path/{some_generator.generate}' . For example we use lots of uuids and it would be handy to randomly generate the uuid and be able to use retrieve the value for use in the provider state to make the service call. Otherwise, we have to map uuids across projects to provider states. That seems like it could get out of hand. But maybe I'm missing something? |
Generators are defined as part of the V3 specification, which is not implemented for Ruby as yet: https://github.com/pact-foundation/pact-specification/tree/version-3#introduce-example-generators |
Thanks for the quick response :) |
See #318 for latest status on pact-v3 implementation in pact-ruby Closing this issue as I've linked it to the meta v3 issue and will be implemented as part of that work |
I am using PACT to mock a service which uses a REST based urls
Is there a way to avoid have a predefined resource_id/system_id which must be used by the consumer and provider? I.e. resource_id should look like a UUID, but it really doesn't matter, as long as its consitent throughout the mocking - if I request resource/resource_id,
resource_id
should use whatever has been sent, as long as it matching that I specificiedI understand there is support for query parameters, is there a way to do this for REST-like url params?
The text was updated successfully, but these errors were encountered: