mirror of https://github.com/grpc/grpc-java.git
interop-testing: add very_large_request case to test client (#4816)
interop-testing: add very_large_request case to test client
This commit is contained in:
parent
554210da2a
commit
d2c0653b2e
|
|
@ -49,7 +49,8 @@ public enum TestCases {
|
||||||
UNIMPLEMENTED_SERVICE("call an unimplemented RPC service"),
|
UNIMPLEMENTED_SERVICE("call an unimplemented RPC service"),
|
||||||
CANCEL_AFTER_BEGIN("cancel stream after starting it"),
|
CANCEL_AFTER_BEGIN("cancel stream after starting it"),
|
||||||
CANCEL_AFTER_FIRST_RESPONSE("cancel on first response"),
|
CANCEL_AFTER_FIRST_RESPONSE("cancel on first response"),
|
||||||
TIMEOUT_ON_SLEEPING_SERVER("timeout before receiving a response");
|
TIMEOUT_ON_SLEEPING_SERVER("timeout before receiving a response"),
|
||||||
|
VERY_LARGE_REQUEST("very large request");
|
||||||
|
|
||||||
private final String description;
|
private final String description;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -336,6 +336,11 @@ public class TestServiceClient {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case VERY_LARGE_REQUEST: {
|
||||||
|
tester.veryLargeRequest();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
throw new IllegalArgumentException("Unknown test case: " + testCase);
|
throw new IllegalArgumentException("Unknown test case: " + testCase);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -69,7 +69,8 @@ public class TestCasesTest {
|
||||||
// additional test cases
|
// additional test cases
|
||||||
String[] additionalTestCases = {
|
String[] additionalTestCases = {
|
||||||
"client_compressed_unary_noprobe",
|
"client_compressed_unary_noprobe",
|
||||||
"client_compressed_streaming_noprobe"
|
"client_compressed_streaming_noprobe",
|
||||||
|
"very_large_request"
|
||||||
};
|
};
|
||||||
|
|
||||||
assertEquals(testCases.length + additionalTestCases.length, TestCases.values().length);
|
assertEquals(testCases.length + additionalTestCases.length, TestCases.values().length);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue