add new test proto; re-run mk-test-files.sh
This commit is contained in:
parent
2a6ef4e19e
commit
8f59f45ed4
|
|
@ -6,11 +6,14 @@ cd "$(dirname $0)"
|
|||
|
||||
# Run this script to generate files used by tests.
|
||||
|
||||
echo "Creating protoset..."
|
||||
echo "Creating protosets..."
|
||||
protoc ../../../google.golang.org/grpc/interop/grpc_testing/test.proto \
|
||||
-I../../../ --include_imports \
|
||||
--descriptor_set_out=testing/test.protoset
|
||||
|
||||
protoc testing/example.proto \
|
||||
--include_imports \
|
||||
--descriptor_set_out=testing/example.protoset
|
||||
|
||||
echo "Creating certs for TLS testing..."
|
||||
if ! hash certstrap 2>/dev/null; then
|
||||
|
|
|
|||
|
|
@ -0,0 +1,19 @@
|
|||
syntax = "proto3";
|
||||
|
||||
import "google/protobuf/descriptor.proto";
|
||||
import "google/protobuf/empty.proto";
|
||||
import "google/protobuf/timestamp.proto";
|
||||
|
||||
message TestRequest {
|
||||
repeated string file_names = 1;
|
||||
}
|
||||
|
||||
message TestResponse {
|
||||
map<string, google.protobuf.FileDescriptorProto> file_protos = 1;
|
||||
google.protobuf.Timestamp last_update_date = 2;
|
||||
}
|
||||
|
||||
service TestService {
|
||||
rpc GetFiles (TestRequest) returns (TestResponse);
|
||||
rpc Ping (google.protobuf.Empty) returns (google.protobuf.Empty);
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue