From d2c0653b2e48a54ec460ed00de85cf56c968ed8d Mon Sep 17 00:00:00 2001 From: Eric Gribkoff Date: Thu, 6 Sep 2018 16:01:35 -0700 Subject: [PATCH] interop-testing: add very_large_request case to test client (#4816) interop-testing: add very_large_request case to test client --- .../src/main/java/io/grpc/testing/integration/TestCases.java | 3 ++- .../java/io/grpc/testing/integration/TestServiceClient.java | 5 +++++ .../test/java/io/grpc/testing/integration/TestCasesTest.java | 3 ++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/interop-testing/src/main/java/io/grpc/testing/integration/TestCases.java b/interop-testing/src/main/java/io/grpc/testing/integration/TestCases.java index 39eef8a5ab..7ac02ad57d 100644 --- a/interop-testing/src/main/java/io/grpc/testing/integration/TestCases.java +++ b/interop-testing/src/main/java/io/grpc/testing/integration/TestCases.java @@ -49,7 +49,8 @@ public enum TestCases { UNIMPLEMENTED_SERVICE("call an unimplemented RPC service"), CANCEL_AFTER_BEGIN("cancel stream after starting it"), 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; diff --git a/interop-testing/src/main/java/io/grpc/testing/integration/TestServiceClient.java b/interop-testing/src/main/java/io/grpc/testing/integration/TestServiceClient.java index 2119621727..7e7531a043 100644 --- a/interop-testing/src/main/java/io/grpc/testing/integration/TestServiceClient.java +++ b/interop-testing/src/main/java/io/grpc/testing/integration/TestServiceClient.java @@ -336,6 +336,11 @@ public class TestServiceClient { break; } + case VERY_LARGE_REQUEST: { + tester.veryLargeRequest(); + break; + } + default: throw new IllegalArgumentException("Unknown test case: " + testCase); } diff --git a/interop-testing/src/test/java/io/grpc/testing/integration/TestCasesTest.java b/interop-testing/src/test/java/io/grpc/testing/integration/TestCasesTest.java index 844ab9bd76..cec02dde8a 100644 --- a/interop-testing/src/test/java/io/grpc/testing/integration/TestCasesTest.java +++ b/interop-testing/src/test/java/io/grpc/testing/integration/TestCasesTest.java @@ -69,7 +69,8 @@ public class TestCasesTest { // additional test cases String[] additionalTestCases = { "client_compressed_unary_noprobe", - "client_compressed_streaming_noprobe" + "client_compressed_streaming_noprobe", + "very_large_request" }; assertEquals(testCases.length + additionalTestCases.length, TestCases.values().length);