use of io.servicetalk.grpc.netty.CompatProto.Compat.CompatClient in project servicetalk by apple.
the class ProtocolCompatibilityTest method serviceTalkToGrpcJavaErrorWithStatus.
@ParameterizedTest
@MethodSource("sslStreamingAndCompressionParams")
void serviceTalkToGrpcJavaErrorWithStatus(final boolean ssl, final boolean streaming, final String compression) throws Exception {
final TestServerContext server = grpcJavaServer(ErrorMode.STATUS, ssl, compression);
final CompatClient client = serviceTalkClient(server.listenAddress(), ssl, compression, null);
testGrpcError(client, server, true, streaming, compression);
}
use of io.servicetalk.grpc.netty.CompatProto.Compat.CompatClient in project servicetalk by apple.
the class ProtocolCompatibilityTest method grpcJavaToServiceTalkBlocking.
@ParameterizedTest
@MethodSource("sslStreamingAndCompressionParams")
void grpcJavaToServiceTalkBlocking(final boolean ssl, final boolean streaming, final String compression) throws Exception {
final TestServerContext server = serviceTalkServerBlocking(ErrorMode.NONE, ssl, compression);
final CompatClient client = grpcJavaClient(server.listenAddress(), compression, ssl, null);
testRequestResponse(client, server, streaming, compression);
}
use of io.servicetalk.grpc.netty.CompatProto.Compat.CompatClient in project servicetalk by apple.
the class ProtocolCompatibilityTest method grpcJavaToServiceTalkErrorInStreamingResponse.
@ParameterizedTest
@MethodSource("sslAndCompressionParams")
void grpcJavaToServiceTalkErrorInStreamingResponse(final boolean ssl, final String compression) throws Exception {
final TestServerContext server = serviceTalkServer(ErrorMode.SIMPLE_IN_RESPONSE, ssl, compression, null);
final CompatClient client = grpcJavaClient(server.listenAddress(), compression, ssl, null);
testStreamResetOnUnexpectedErrorOnServiceTalkServer(client, server);
}
use of io.servicetalk.grpc.netty.CompatProto.Compat.CompatClient in project servicetalk by apple.
the class ProtocolCompatibilityTest method grpcJavaToGrpcJavaCompressionError.
@ParameterizedTest
@MethodSource("sslAndStreamingParams")
void grpcJavaToGrpcJavaCompressionError(final boolean ssl, final boolean streaming) throws Exception {
final String clientCompression = "gzip";
final TestServerContext server = grpcJavaServer(ErrorMode.NONE, ssl, null);
final CompatClient client = grpcJavaClient(server.listenAddress(), clientCompression, ssl, 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 grpcJavaToServiceTalkErrorWithStatusInStreamingResponse.
@ParameterizedTest
@MethodSource("sslAndCompressionParams")
void grpcJavaToServiceTalkErrorWithStatusInStreamingResponse(final boolean ssl, final String compression) throws Exception {
final TestServerContext server = serviceTalkServer(ErrorMode.STATUS_IN_RESPONSE, ssl, compression, null);
final CompatClient client = grpcJavaClient(server.listenAddress(), compression, ssl, null);
testStreamResetOnUnexpectedErrorOnServiceTalkServer(client, server);
}
Aggregations