Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Feature: Support for gRPC as protocol #674

Open
osoykan opened this issue Dec 10, 2024 · 0 comments
Open

New Feature: Support for gRPC as protocol #674

osoykan opened this issue Dec 10, 2024 · 0 comments
Labels

Comments

@osoykan
Copy link
Collaborator

osoykan commented Dec 10, 2024

The applications that serve gRPC can be tested with Stove. We need a client from the testing point of view to achieve that.

A simple client would be when we want to invoke an action on a gRPC server.

protoc generated

val channel = ManagedChannelBuilder
    .forAddress("localhost", 50051)
    .usePlaintext()
    .build()

val stub = GreeterServiceGrpcKt.GreeterServiceCoroutineStub(channel)
val response = stub.sayHello(helloRequest { name = "World" })

Note: Wire generation might provide more flexibility over typed client usage.

Stove, dsl idea:

grpc {
 calling<GreeterService> {
  this.sayHello(Req("hi")) shouldBe Response("hello")
 }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant