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.
Hi, I'm using Pact as a consumer in order to test events being sent by the provider. Tests are written in Groovy. This particular use case looks like this: when an entity gets created, an event is sent to Kafka, having some properties in the body and a particular key corresponding to the entity's id. When an entity gets deleted, an event is sent to Kafka, having the same key, but a null body.
How do I ensure that the provider will send the message with a null body? Is it even possible? I've tried multiple different options with the basic one looking like below, but matchingRules in the resulting JSON are always missing. I may be missing something, but I haven't yet found a way how to make it work.
Hi, I'm using Pact as a consumer in order to test events being sent by the provider. Tests are written in Groovy. This particular use case looks like this: when an entity gets created, an event is sent to Kafka, having some properties in the body and a particular key corresponding to the entity's id. When an entity gets deleted, an event is sent to Kafka, having the same key, but a null body.
How do I ensure that the provider will send the message with a null body? Is it even possible? I've tried multiple different options with the basic one looking like below, but
matchingRules
in the resulting JSON are always missing. I may be missing something, but I haven't yet found a way how to make it work.