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
Timothy Jones
03/22/2023, 12:56 PM
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
Rafał Maciak
03/22/2023, 12:59 PM
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
Timothy Jones
03/22/2023, 1:02 PM
I misunderstood what you were asking, my apologies. It was for http verification.
👍 1
u
uglyog
03/22/2023, 10:27 PM
There is nothing with groovy/spock that is going to stop you from being able to write a provider verification test.