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:
Eric Gribkoff 2018-09-06 16:01:35 -07:00 committed by creamsoup
parent 554210da2a
commit d2c0653b2e
3 changed files with 9 additions and 2 deletions

View File

@ -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;

View File

@ -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);
} }

View File

@ -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);