You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.The text was updated successfully, but these errors were encountered: