without this change we're doing json assertions for payload that should read payloads as bytes
this is a workaround around the issues like https://github.com/spring-cloud/spring-cloud-contract/issues/1701 and https://github.com/spring-cloud/spring-cloud-contract/issues/1627 .
The problem is that due to the fact that we accept GString payloads where you can have complex json structures with consumer / producer parts, we are doing recursive analysis of that json structure. We're parsing the keys and values and then we're creating the final Json payload map. The issue is that sometimes the value is actually textual json which we shouldn't parse. We don't know that when the processing happens.
The workaround is about telling the framework to read the payload from a file as bytes and then simple equality check will happen without additional JSON assertions.
We will need to look into some better fixes for that in the future (e.g. 5.0.0).
fixes gh-1627
fixes gh-1701
* Adds support to specify priority and make it possible to override the snippet template
Fixes gh-1818
* Adds support to specify priority and make it possible to override the snippet template
Fixes gh-1818
---------
Co-authored-by: Wallace Wadge <wallace.wadge@gamesysgroup.com>
* allow sendMessage to handle body from file
- add test for populating `bodyFromFileAsBytes`
- update `StubRunnerExecutor` to handle more than just json payloads
cherry picked changes from bugfix/1864
take 2
fixes#1864
* wrap bodyextractor value in jsonoutput, add tests for of file content types
cherry picked from bugfix/1864
#1864
* Move PluginUnitTest into integration-test phase
* Fix test resources
Contracts that used messageFrom, messageBody, messageHeaders were modified to use triggeredBy input as seen in 1999066c5a
* Attach stubs to maven project even when they are up-to-date; fixes gh-1860
* Move PluginUnitTest into integration-test phase
* Fix test resources
Contracts that used messageFrom, messageBody, messageHeaders were modified to use triggeredBy input as seen in 1999066c5a
* Attach stubs to maven project even when they are up-to-date; fixes gh-1860