xyz.block.ftl.java.test.internal.TestDeploymentServer Maven / Gradle / Ivy
package xyz.block.ftl.java.test.internal;
import io.grpc.stub.StreamObserver;
import xyz.block.ftl.deployment.v1.DeploymentServiceGrpc;
import xyz.block.ftl.deployment.v1.GetDeploymentContextRequest;
import xyz.block.ftl.deployment.v1.GetDeploymentContextResponse;
import xyz.block.ftl.v1.PingRequest;
import xyz.block.ftl.v1.PingResponse;
public class TestDeploymentServer extends DeploymentServiceGrpc.DeploymentServiceImplBase {
@Override
public void ping(PingRequest request, StreamObserver responseObserver) {
responseObserver.onNext(PingResponse.newBuilder().build());
responseObserver.onCompleted();
}
@Override
public void getDeploymentContext(GetDeploymentContextRequest request,
StreamObserver responseObserver) {
//TODO: add a way to test secrets and other module context values
responseObserver.onNext(GetDeploymentContextResponse.newBuilder().build());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy