Sandy
08/08/2023, 8:22 AMservice 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
"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 Thanksuglyog
Sandy
08/08/2023, 11:01 AMSandy
08/08/2023, 4:13 PMuglyog
Sandy
08/09/2023, 5:23 AM