Skip to content
New issue

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

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

Already on GitHub? # 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")
 }
}
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant