io.grpc.testing.integration2.ClientTester Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of akka-grpc-interop-tests_2.13 Show documentation
Show all versions of akka-grpc-interop-tests_2.13 Show documentation
Akka gRPC - Support for building streaming gRPC servers and clients on top of Akka Streams.
/*
* Copyright (C) 2018-2023 Lightbend Inc.
*/
package io.grpc.testing.integration2;
import io.grpc.ManagedChannel;
import java.io.InputStream;
/**
* This class has all the methods of the grpc-java AbstractInteropTest, but none of the implementations,
* so it can implemented either by calling AbstractInteropTest or with an Akka gRPC implementation.
*
* Test requirements documentation: https://github.com/grpc/grpc/blob/master/doc/interop-test-descriptions.md
*/
public interface ClientTester {
void setUp();
void tearDown() throws Exception;
void emptyUnary() throws Exception;
void cacheableUnary();
void largeUnary() throws Exception;
void clientCompressedUnary(boolean probe) throws Exception;
void serverCompressedUnary() throws Exception;
void clientStreaming() throws Exception;
void clientCompressedStreaming(boolean probe) throws Exception;
void serverStreaming() throws Exception;
void serverCompressedStreaming() throws Exception;
void pingPong() throws Exception;
void emptyStream() throws Exception;
void computeEngineCreds(String serviceAccount, String oauthScope) throws Exception;
void serviceAccountCreds(String jsonKey, InputStream credentialsStream, String authScope) throws Exception;
void jwtTokenCreds(InputStream serviceAccountJson) throws Exception;
void oauth2AuthToken(String jsonKey, InputStream credentialsStream, String authScope) throws Exception;
void perRpcCreds(String jsonKey, InputStream credentialsStream, String oauthScope) throws Exception;
void customMetadata() throws Exception;
void statusCodeAndMessage() throws Exception;
void unimplementedMethod();
void unimplementedService();
void cancelAfterBegin() throws Exception;
void cancelAfterFirstResponse() throws Exception;
void timeoutOnSleepingServer() throws Exception;
}