Hello, I am trying to set-up consumer test for ou...
# pact-jvm
s
Hello, I am trying to set-up consumer test for our grpc service. This is how proto message looks like
Copy code
service OMCalc {
rpc handleBatchRequest(ActionRequest) return (ActionResponse);
}

message ActionRequest {
string action =1;
map<string, string> param =2;
repeated string ids =3;
}

message ActionResponse{
bool responseStatus =1;
}
And This is how I am setting the request and response
Copy code
"request", Map.of(
	"action", "Dummy",
	"param", Map.of(
		"apply", "Skip_holiday"
	),
	"ids", List.of("ID1", "ID2")
),
"response", Map.of(
	"responseStatus", "true"
)
After running the test, I am getting the following error message 'Failed to set interaction: Failed to process protobuf: For the message fields, you need to define a Map of expected fields, got String("Skip_holiday")' Could someone please suggest what I am doing wrong here? Many Thanks
u
What version of the gRPC plugin are you using, and what version of Pact-JVM?
s
Grpc plugin version is 0.1.5 and pact-jvm (au.com.dius.pact.consumer.junit5) is 4.4.1
Sorry the plugin version is 0.3.2
u
Protobuf plugin 0.3.5 has been released with a fix for this
s
Thank you. Will update the plugin