Add managed .NET gRPC client to interop tests

pull/18897/head
James Newton-King 6 years ago
parent 64528cdf4d
commit 57e090989a
No known key found for this signature in database
GPG Key ID: A66B2F456BF5526
  1. 3
      templates/tools/dockerfile/interoptest/grpc_interop_aspnetcore/build_interop.sh.template
  2. 3
      tools/dockerfile/interoptest/grpc_interop_aspnetcore/build_interop.sh
  3. 11
      tools/run_tests/run_interop_tests.py

@ -41,5 +41,4 @@
./build/get-grpc.sh ./build/get-grpc.sh
cd testassets/InteropTestsWebsite dotnet build --configuration Debug Grpc.AspNetCore.sln
dotnet build --configuration Debug

@ -39,5 +39,4 @@ fi
./build/get-grpc.sh ./build/get-grpc.sh
cd testassets/InteropTestsWebsite dotnet build --configuration Debug Grpc.AspNetCore.sln
dotnet build --configuration Debug

@ -192,7 +192,7 @@ class CSharpCoreCLRLanguage:
class AspNetCoreLanguage: class AspNetCoreLanguage:
def __init__(self): def __init__(self):
self.client_cwd = '../grpc-dotnet' self.client_cwd = '../grpc-dotnet/testassets/InteropTestsClient/bin/Debug/netcoreapp3.0'
self.server_cwd = '../grpc-dotnet/testassets/InteropTestsWebsite/bin/Debug/netcoreapp3.0' self.server_cwd = '../grpc-dotnet/testassets/InteropTestsWebsite/bin/Debug/netcoreapp3.0'
self.safename = str(self) self.safename = str(self)
@ -200,8 +200,7 @@ class AspNetCoreLanguage:
return {} return {}
def client_cmd(self, args): def client_cmd(self, args):
# attempt to run client should fail return ['dotnet', 'exec', 'InteropTestsClient.dll'] + args
return ['dotnet' 'exec', 'CLIENT_NOT_SUPPORTED'] + args
def server_cmd(self, args): def server_cmd(self, args):
return ['dotnet', 'exec', 'InteropTestsWebsite.dll'] + args return ['dotnet', 'exec', 'InteropTestsWebsite.dll'] + args
@ -210,8 +209,10 @@ class AspNetCoreLanguage:
return {} return {}
def unimplemented_test_cases(self): def unimplemented_test_cases(self):
# aspnetcore doesn't have a client so ignore all test cases. return _SKIP_COMPRESSION + \
return _TEST_CASES + _AUTH_TEST_CASES _SKIP_SPECIAL_STATUS_MESSAGE + \
_AUTH_TEST_CASES + \
['cancel_after_first_response', 'ping_pong']
def unimplemented_test_cases_server(self): def unimplemented_test_cases_server(self):
return _SKIP_COMPRESSION + _SKIP_SPECIAL_STATUS_MESSAGE return _SKIP_COMPRESSION + _SKIP_SPECIAL_STATUS_MESSAGE

Loading…
Cancel
Save