The third party service that my microservice interacts with returns the response with the content-type application/JavaScript;charset=UTF-8. Therefore, pact json has response body as string & matching rules have an empty body.
Using the following pact dependencies:
testIntegrationCompile('au.com.dius:pact-jvm-consumer-junit_2.12:3.5.11')
testIntegrationCompile('au.com.dius:pact-jvm-provider-junit_2.12:3.5.11')
testIntegrationCompile('au.com.dius:pact-jvm-provider-spring_2.12:3.5.11')
testIntegrationCompile('au.com.dius:pact-jvm-consumer-java8_2.12:3.5.11')
Aucun commentaire:
Enregistrer un commentaire