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
Sending binary files in POST #277
Comments
We don't have an option per-se, but it is possible to do with the correct headers etc. Perhaps it would be a nice DSL addition. I believe all it is in the groovy implementation is sugar that sets the correct headers and matchers. |
Well it would be great to have this implementation with matchers since we can use one client for sending requests for mocks/tests and another from provider side (real service). |
Well I have huge problems with your matcher.
Zone -------------------------[0-9]{24}$ [a-z]{4}$
|
I'm sorry could you please format that code and text? It is basically unreadable and I'm not able to properly follow. Secondly, just in case it's not obvious, you cannot perform matching on the body of a binary object. Currently, matching is only support for the content-type So you can do the contract for all of the other bits (e.g. headers, path, query string etc.) |
Given the following two files
test.pdf
Useful threads pact-foundation/pact-ruby@7a16ab1 |
Well I have still problem. I have two files. First one have interaction:
Second one have mock and test:
When I run test i have this kind of error:
|
Here is log file. |
I think the key line here is :
We've seen this before, it seems to be environment dependent See:
If you could please provide a reproducable example (shown in a travis/appveyor build) that will help us get to the bottom of it. |
Closing as supported in latest versions. |
Hi, is there any option to update binary files in post request such as posting images etc.
I found that you have something in groovy (withFileUpload), but can't find it in node and js library.
The text was updated successfully, but these errors were encountered: