aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Eric Gribkoff <ericgribkoff@google.com>2017-05-24 20:49:10 -0700
committerGravatar Eric Gribkoff <ericgribkoff@google.com>2017-06-07 09:53:15 -0700
commite5df1d8dee1090a37b1b3992566ce477446a0bac (patch)
treef9e318060a2da7c3343b6a16f732a24372918c8d
parent2e47c523862af0a5b01ebe5e5f1370b3933d40b0 (diff)
Add Java OkHttp client to interop tests
-rwxr-xr-xtools/run_tests/run_interop_tests.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/tools/run_tests/run_interop_tests.py b/tools/run_tests/run_interop_tests.py
index 6da7b85430..8ac72eddbb 100755
--- a/tools/run_tests/run_interop_tests.py
+++ b/tools/run_tests/run_interop_tests.py
@@ -202,6 +202,28 @@ class JavaLanguage:
return 'java'
+class JavaOkHttpClient:
+
+ def __init__(self):
+ self.client_cwd = '../grpc-java'
+ self.safename = 'java'
+
+ def client_cmd(self, args):
+ return ['./run-test-client.sh', '--use_okhttp=true'] + args
+
+ def cloud_to_prod_env(self):
+ return {}
+
+ def global_env(self):
+ return {}
+
+ def unimplemented_test_cases(self):
+ return _SKIP_COMPRESSION
+
+ def __str__(self):
+ return 'javaokhttp'
+
+
class GoLanguage:
def __init__(self):
@@ -489,6 +511,7 @@ _LANGUAGES = {
'csharpcoreclr' : CSharpCoreCLRLanguage(),
'go' : GoLanguage(),
'java' : JavaLanguage(),
+ 'javaokhttp' : JavaOkHttpClient(),
'node' : NodeLanguage(),
'php' : PHPLanguage(),
'php7' : PHP7Language(),