-
-
Notifications
You must be signed in to change notification settings - Fork 349
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
Slash in consumer name results in folders being created #126
Comments
I'm trying to think of an example where a service name would have a slash in it! But yes, we should do one of the two. |
Can you raise this in the pact-mock_service repository? That's where the logic is. |
The example we have is an API for A/B testing. I'll raise the issue over there now. |
Done: pact-foundation/pact-mock_service#81 I suppose we should close this one now? |
I think it's an acceptable string to use, I would suggest we properly escape the names and let it be used (and not created the subfolders). |
Let's leave this open for the time being until we understand if changes are required here also. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Changes were not required :) |
Software versions
When the consumer or provider names contain a slash, the slash is passed through to the file system, which creates folders:
Expected behaviour
Full pact filename is present in the
pacts/
folder, something like:pacts/a_b client-a_b api.json
Alternatively, some kind of error that provider/consumer names are not allowed to contain slashes.
Actual behaviour
Pact file in a few folders deep:
pacts/a/b client-a/b api.json
Steps to reproduce
Use the following
pact()
call:The text was updated successfully, but these errors were encountered: