JVM version of Pact. Enables consumer driven contract testing, providing a mock service and DSL for the consumer project, and interaction playback and verification for the service provider project.
Now when I run the pact on the provider side, it fails with this error message:
1) some description: generates a message which has a matching body
1.1) body: $.after Expected 1 (Integer) but received 4 (Integer)
1.2) body: $.before Expected 1 (Integer) but received 3 (Integer)
1.3) body: $.userId Expected 1 (Integer) but received 2 (Integer)
In one project, I'm using
MessagePactBuilder
from dependencyau.com.dius.pact:consumer:4.3.4
to build a spec:Make note of the
matchingRules
with keycontent
.Now when I run the pact on the provider side, it fails with this error message:
After some debugging, it looks like the following line is always taking
body
as a category: https://github.com/pact-foundation/pact-jvm/blob/54df7cf6a91676f8e6ad3f17adeff3e4ce4aeeb7/provider/src/main/kotlin/au/com/dius/pact/provider/ResponseComparison.kt#L179This feels like a bug, wdyt?
EDIT: this seems to be linked solely to V4, as V3 sets the
matchingRules
with keycontent