Hello! I'm looking for a way to test message based...
# pact-jvm
r
Hello! I'm looking for a way to test message based communication (with Kafka) using Pact and groovy/spock. I already defined the consumer's test using this example (https://docs.pact.io/implementation_guides/jvm/consumer/groovy#consumer-test-for-a-message-consumer). Now I'm struggling how to test provider with groovy/spock. I couldn't find a doc/sample/tutorial. Is there a way to test message communication with groovy?
t
I’ve done provider verification with groovy before, so it’s definitely possible. I’m afraid it has been a long time since I’ve used groovy, so I don’t personally have any examples to hand
r
Hi @Timothy Jones, thanks for you reply. Was this verification for messages or http (e.g. rest API)? I also did verification for REST API in groovy/spock but can't figure out nor find examples how to do it for messages 😞
t
I misunderstood what you were asking, my apologies. It was for http verification.
👍 1
u
There is nothing with groovy/spock that is going to stop you from being able to write a provider verification test.
r
Thanks for those examples. Now I need to figure out how to connect it with Pact broker 😉