Search in sources :

Example 1 with TraceServiceBlockingStub

use of com.google.devtools.cloudtrace.v1.TraceServiceGrpc.TraceServiceBlockingStub in project zipkin-gcp by openzipkin.

the class ZipkinStackdriverStorageIntegrationTest method mockGrpcServerServesOverSSL.

@Test
public void mockGrpcServerServesOverSSL() {
    // sanity checks the mock server
    NettyChannelBuilder channelBuilder = NettyChannelBuilder.forTarget(mockServer.grpcURI());
    TraceServiceBlockingStub sslTraceService = TraceServiceGrpc.newBlockingStub(channelBuilder.sslContext(CLIENT_SSL_CONTEXT).build());
    sslTraceService.patchTraces(PatchTracesRequest.getDefaultInstance());
}
Also used : TraceServiceBlockingStub(com.google.devtools.cloudtrace.v1.TraceServiceGrpc.TraceServiceBlockingStub) NettyChannelBuilder(io.grpc.netty.NettyChannelBuilder) Test(org.junit.Test)

Aggregations

TraceServiceBlockingStub (com.google.devtools.cloudtrace.v1.TraceServiceGrpc.TraceServiceBlockingStub)1 NettyChannelBuilder (io.grpc.netty.NettyChannelBuilder)1 Test (org.junit.Test)1