use of io.servicetalk.grpc.netty.CompatProto.Compat.CompatClient in project servicetalk by apple.
the class ProtocolCompatibilityTest method serviceTalkToGrpcJavaClientTimeout.
@ParameterizedTest
@MethodSource("sslStreamingAndCompressionParams")
void serviceTalkToGrpcJavaClientTimeout(final boolean ssl, final boolean streaming, final String compression) throws Exception {
final TestServerContext server = grpcJavaServer(ErrorMode.NONE, ssl, compression);
try (ServerContext proxyCtx = buildTimeoutProxy(server.listenAddress(), null, ssl)) {
final CompatClient client = serviceTalkClient(proxyCtx.listenAddress(), ssl, compression, DEFAULT_DEADLINE);
testGrpcError(client, server, false, streaming, compression, DEADLINE_EXCEEDED, null);
}
}
use of io.servicetalk.grpc.netty.CompatProto.Compat.CompatClient in project servicetalk by apple.
the class ProtocolCompatibilityTest method serviceTalkToGrpcJavaCompressionError.
@ParameterizedTest
@MethodSource("sslAndStreamingParams")
void serviceTalkToGrpcJavaCompressionError(final boolean ssl, final boolean streaming) throws Exception {
final String clientCompression = "gzip";
final TestServerContext server = grpcJavaServer(ErrorMode.NONE, ssl, null);
final CompatClient client = serviceTalkClient(server.listenAddress(), ssl, clientCompression, null);
testGrpcError(client, server, false, streaming, clientCompression, GrpcStatusCode.UNIMPLEMENTED, null);
}
use of io.servicetalk.grpc.netty.CompatProto.Compat.CompatClient in project servicetalk by apple.
the class ProtocolCompatibilityTest method grpcJavaToServiceTalkClientTimeout.
@ParameterizedTest
@MethodSource("sslStreamingAndCompressionParams")
void grpcJavaToServiceTalkClientTimeout(final boolean ssl, final boolean streaming, final String compression) throws Exception {
final TestServerContext server = serviceTalkServer(ErrorMode.NONE, ssl, compression, null);
try (ServerContext proxyCtx = buildTimeoutProxy(server.listenAddress(), null, ssl)) {
final CompatClient client = grpcJavaClient(proxyCtx.listenAddress(), compression, ssl, DEFAULT_DEADLINE);
testGrpcError(client, server, false, streaming, compression, DEADLINE_EXCEEDED, null);
}
}
use of io.servicetalk.grpc.netty.CompatProto.Compat.CompatClient in project servicetalk by apple.
the class ProtocolCompatibilityTest method serviceTalkToGrpcJavaError.
@ParameterizedTest
@MethodSource("sslStreamingAndCompressionParams")
void serviceTalkToGrpcJavaError(final boolean ssl, final boolean streaming, final String compression) throws Exception {
final TestServerContext server = grpcJavaServer(ErrorMode.SIMPLE, ssl, compression);
final CompatClient client = serviceTalkClient(server.listenAddress(), ssl, compression, null);
testGrpcError(client, server, false, streaming, compression);
}
use of io.servicetalk.grpc.netty.CompatProto.Compat.CompatClient in project servicetalk by apple.
the class ProtocolCompatibilityTest method grpcJavaToServiceTalkBlockingError.
@ParameterizedTest
@MethodSource("sslStreamingAndCompressionParams")
void grpcJavaToServiceTalkBlockingError(final boolean ssl, final boolean streaming, final String compression) throws Exception {
final TestServerContext server = serviceTalkServerBlocking(ErrorMode.SIMPLE, ssl, compression);
final CompatClient client = grpcJavaClient(server.listenAddress(), compression, ssl, null);
testGrpcError(client, server, false, streaming, compression);
}
Aggregations