[bug]: assertions on a gRPC test case are ignored on replay
Author: omlahoreCreated Sep 19, 2026Updated Sep 21, 2026
Labelskeploy
Is there an existing issue for this?
- I have searched and didn't find similar issue
Current behavior
I put assertions on a gRPC test case and replay passes whatever they say. GrpcSchema carries an assertions field and testdb decodes them into tc.Assertions, but pkg/matcher/grpc/match.go never reads them. The HTTP matcher hands off to AssertionMatch when a test case has any.
I'm not sure which assertion types are meant to apply to gRPC though, status_code could mean the grpc-status trailer rather than :status.
Steps to Replicate
- Build a gRPC test case and set assertions to status_code: 500 and json_contains with a field that isn't in the body.
- Call grpc.Match with a response that matches the recorded one.
- It returns true.
Operating system
MacOS
Version
main at bac49ba
Repository
keploy
Source: keploy/keploy