From 98341acc7eba62bd151a7b3c06ac1b2d697d6db2 Mon Sep 17 00:00:00 2001 From: Kelvin Jin Date: Wed, 28 Feb 2018 14:30:26 -0800 Subject: [PATCH] grpc-native: move api tests verbatim to grpc-native-core --- .../interop/async_delay_queue.js | 0 .../interop/interop_client.js | 0 .../interop/interop_server.js | 0 .../grpc-native-core/test}/async_test.js | 0 .../test}/credentials_test.js | 0 .../grpc-native-core/test}/data/README | 0 .../grpc-native-core/test}/data/ca.pem | 0 .../grpc-native-core/test}/data/server1.key | 0 .../grpc-native-core/test}/data/server1.pem | 0 .../test}/interop_sanity_test.js | 0 .../test}/math/math_grpc_pb.js | 0 .../grpc-native-core/test}/math/math_pb.js | 0 .../test}/math/math_server.js | 0 .../test}/math_client_test.js | 0 .../grpc-native-core/test}/metadata_test.js | 0 .../grpc-native-core/test}/numbers.txt | 0 .../grpc-native-core/test}/surface_test.js | 0 .../grpc-native-core/test}/test_service.json | 0 .../grpc-native-core/test}/test_service.proto | 0 test/api/echo_service.proto | 24 ---------- test/api/test_messages.proto | 45 ------------------- 21 files changed, 69 deletions(-) rename {test => packages/grpc-native-core}/interop/async_delay_queue.js (100%) rename {test => packages/grpc-native-core}/interop/interop_client.js (100%) rename {test => packages/grpc-native-core}/interop/interop_server.js (100%) rename {test/api => packages/grpc-native-core/test}/async_test.js (100%) rename {test/api => packages/grpc-native-core/test}/credentials_test.js (100%) rename {test => packages/grpc-native-core/test}/data/README (100%) rename {test => packages/grpc-native-core/test}/data/ca.pem (100%) rename {test => packages/grpc-native-core/test}/data/server1.key (100%) rename {test => packages/grpc-native-core/test}/data/server1.pem (100%) rename {test/api => packages/grpc-native-core/test}/interop_sanity_test.js (100%) rename {test/api => packages/grpc-native-core/test}/math/math_grpc_pb.js (100%) rename {test/api => packages/grpc-native-core/test}/math/math_pb.js (100%) rename {test/api => packages/grpc-native-core/test}/math/math_server.js (100%) rename {test/api => packages/grpc-native-core/test}/math_client_test.js (100%) rename {test/api => packages/grpc-native-core/test}/metadata_test.js (100%) rename {test/api => packages/grpc-native-core/test}/numbers.txt (100%) rename {test/api => packages/grpc-native-core/test}/surface_test.js (100%) rename {test/api => packages/grpc-native-core/test}/test_service.json (100%) rename {test/api => packages/grpc-native-core/test}/test_service.proto (100%) delete mode 100644 test/api/echo_service.proto delete mode 100644 test/api/test_messages.proto diff --git a/test/interop/async_delay_queue.js b/packages/grpc-native-core/interop/async_delay_queue.js similarity index 100% rename from test/interop/async_delay_queue.js rename to packages/grpc-native-core/interop/async_delay_queue.js diff --git a/test/interop/interop_client.js b/packages/grpc-native-core/interop/interop_client.js similarity index 100% rename from test/interop/interop_client.js rename to packages/grpc-native-core/interop/interop_client.js diff --git a/test/interop/interop_server.js b/packages/grpc-native-core/interop/interop_server.js similarity index 100% rename from test/interop/interop_server.js rename to packages/grpc-native-core/interop/interop_server.js diff --git a/test/api/async_test.js b/packages/grpc-native-core/test/async_test.js similarity index 100% rename from test/api/async_test.js rename to packages/grpc-native-core/test/async_test.js diff --git a/test/api/credentials_test.js b/packages/grpc-native-core/test/credentials_test.js similarity index 100% rename from test/api/credentials_test.js rename to packages/grpc-native-core/test/credentials_test.js diff --git a/test/data/README b/packages/grpc-native-core/test/data/README similarity index 100% rename from test/data/README rename to packages/grpc-native-core/test/data/README diff --git a/test/data/ca.pem b/packages/grpc-native-core/test/data/ca.pem similarity index 100% rename from test/data/ca.pem rename to packages/grpc-native-core/test/data/ca.pem diff --git a/test/data/server1.key b/packages/grpc-native-core/test/data/server1.key similarity index 100% rename from test/data/server1.key rename to packages/grpc-native-core/test/data/server1.key diff --git a/test/data/server1.pem b/packages/grpc-native-core/test/data/server1.pem similarity index 100% rename from test/data/server1.pem rename to packages/grpc-native-core/test/data/server1.pem diff --git a/test/api/interop_sanity_test.js b/packages/grpc-native-core/test/interop_sanity_test.js similarity index 100% rename from test/api/interop_sanity_test.js rename to packages/grpc-native-core/test/interop_sanity_test.js diff --git a/test/api/math/math_grpc_pb.js b/packages/grpc-native-core/test/math/math_grpc_pb.js similarity index 100% rename from test/api/math/math_grpc_pb.js rename to packages/grpc-native-core/test/math/math_grpc_pb.js diff --git a/test/api/math/math_pb.js b/packages/grpc-native-core/test/math/math_pb.js similarity index 100% rename from test/api/math/math_pb.js rename to packages/grpc-native-core/test/math/math_pb.js diff --git a/test/api/math/math_server.js b/packages/grpc-native-core/test/math/math_server.js similarity index 100% rename from test/api/math/math_server.js rename to packages/grpc-native-core/test/math/math_server.js diff --git a/test/api/math_client_test.js b/packages/grpc-native-core/test/math_client_test.js similarity index 100% rename from test/api/math_client_test.js rename to packages/grpc-native-core/test/math_client_test.js diff --git a/test/api/metadata_test.js b/packages/grpc-native-core/test/metadata_test.js similarity index 100% rename from test/api/metadata_test.js rename to packages/grpc-native-core/test/metadata_test.js diff --git a/test/api/numbers.txt b/packages/grpc-native-core/test/numbers.txt similarity index 100% rename from test/api/numbers.txt rename to packages/grpc-native-core/test/numbers.txt diff --git a/test/api/surface_test.js b/packages/grpc-native-core/test/surface_test.js similarity index 100% rename from test/api/surface_test.js rename to packages/grpc-native-core/test/surface_test.js diff --git a/test/api/test_service.json b/packages/grpc-native-core/test/test_service.json similarity index 100% rename from test/api/test_service.json rename to packages/grpc-native-core/test/test_service.json diff --git a/test/api/test_service.proto b/packages/grpc-native-core/test/test_service.proto similarity index 100% rename from test/api/test_service.proto rename to packages/grpc-native-core/test/test_service.proto diff --git a/test/api/echo_service.proto b/test/api/echo_service.proto deleted file mode 100644 index 0b27c8b1..00000000 --- a/test/api/echo_service.proto +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright 2015 gRPC authors. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -message EchoMessage { - string value = 1; - int32 value2 = 2; -} - -service EchoService { - rpc Echo (EchoMessage) returns (EchoMessage); -} diff --git a/test/api/test_messages.proto b/test/api/test_messages.proto deleted file mode 100644 index da1ef565..00000000 --- a/test/api/test_messages.proto +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright 2015 gRPC authors. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -message LongValues { - int64 int_64 = 1; - uint64 uint_64 = 2; - sint64 sint_64 = 3; - fixed64 fixed_64 = 4; - sfixed64 sfixed_64 = 5; -} - -message SequenceValues { - bytes bytes_field = 1; - repeated int32 repeated_field = 2; -} - -message OneOfValues { - oneof oneof_choice { - int32 int_choice = 1; - string string_choice = 2; - } -} - -enum TestEnum { - ZERO = 0; - ONE = 1; - TWO = 2; -} - -message EnumValues { - TestEnum enum_value = 1; -}