Comments (2)
Hi @RomanKhachko , this is already available for both unary and server streaming requests. There's a method .willProxyTo((request, responseObserver) -> ...)
, where you control the whole flow, and also .willReturn(request -> ...)
where you can respond based on the request and will complete the call that call for you after this function completes. You can see more examples here and here
from grpcmock.
Amazing! Thanks a lot for the clarification! It's exactly what is needed. We can remove the request then.
from grpcmock.
Related Issues (20)
- GrpcMock Junit, UNAVAILABLE: No servers found when running tests in --parallel HOT 1
- Failed to start gRPC mock server HOT 3
- How to make GrpcMock work for Armeria defined clients HOT 1
- Add ability to turn off logs HOT 1
- Cannot disable request logging HOT 3
- Doesn't work with StatusRuntimeException! HOT 2
- How to mock Grpc Method .withRequest with one unknown field HOT 1
- Support StubMapping in JSON HOT 1
- Allow integration tests to run in parallell - bug? HOT 1
- Support JUnit 5 @Nested HOT 1
- Spring Boot 3 support HOT 1
- Access to gRPC Mock server from outer client HOT 3
- Support for future stubs HOT 1
- `UNIMPLEMENTED` with Kotest and Kotlin gRPC services HOT 2
- gRPC Mock is Static and Single Instance HOT 5
- support returning the requests for manual asserting HOT 5
- Doesn't seem to work in reactive applications? HOT 20
- Error with gRPC 1.59.0 HOT 1
- question: how can i I delay a reply until an event occurs. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grpcmock.