Hello, team! I am working in an enterprise environ...
# protobufs
j
Hello, team! I am working in an enterprise environment with many teams, communicating over Kafka, using extensive and deeply nested protobufs and am trying to evaluate how difficult it would be to get Pact working with the existing stack. So I installed the pact-protobuf-plugin using the pact-plugin-cli, and can confirm that the plugin
protobuf-0.1.12
was added to my
.pact/plugins
folder. However, running the example consumer tests from the
pact-plugins
repo results in the following error (for the test consumeInitPluginMessage):
Copy code
Failed to resolve parameter [au.com.dius.pact.core.model.V4Interaction$AsynchronousMessage arg0] in method [void io.pact.example.protobuf.provider.PactConsumerTest.consumeInitPluginMessage(au.com.dius.pact.core.model.V4Interaction$AsynchronousMessage) throws com.google.protobuf.InvalidProtocolBufferException]: Plugin protobuf with version any was not found
Is the protobuf plugin from pactflow incompatible with the tests in the pact-foundation pact-plugins examples? The Readme in pact-protobuf-plugin lists it as its JVM example. Apologies in advance if I've missed some critical setup step. Any help is appreciated.
u
Let me check. They were working for me a few weeks ago.
Ah, those are the older Protobuf examples, not the gRPC ones. Let me fix them for you.
thankyou 1
👍 1
That example works fine for me with 0.1.12. What OS are you running? And can you run the plugin executable from a terminal?
Oh, wait, it could be that I upgraded the dependencies in that project