diff --git a/.circleci/config.yml b/.circleci/config.yml index 0ce0f3437..72115af90 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -66,7 +66,7 @@ jobs: (echo -e "hello\nworld" && sleep .1) | gapic-showcase chat gapic-showcase pagedExpand --page_size 3 --page_token 3 one two three o'clock four o'clock rock gapic-showcase wait --duration 1s hello world! - gapic-showcase getOperation --name operations/google.showcase.v1alpha2.Echo/Wait/CgwIxNqN3gUQsI6MxgIaDQoLaGVsbG8gd29ybGQ= + gapic-showcase getOperation --name operations/google.showcase.v1alpha3.Echo/Wait/CgwIxNqN3gUQsI6MxgIaDQoLaGVsbG8gd29ybGQ= - run: name: Submit coverage data to codecov. command: bash <(curl -s https://codecov.io/bash) @@ -80,8 +80,8 @@ jobs: name: Stage showcase in proto dependencies command: | git clone -b input-contract https://github.com/googleapis/api-common-protos.git - mkdir -p api-common-protos/google/showcase/v1alpha2/ - cp schema/* api-common-protos/google/showcase/v1alpha2/ + mkdir -p api-common-protos/google/showcase/v1alpha3/ + cp schema/* api-common-protos/google/showcase/v1alpha3/ - run: name: Run kotlin generation command: | diff --git a/README.md b/README.md index 04ac6753c..61e79814a 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ or simply by using go commands. #### Binary Installation ```sh -$ export GAPIC_SHOWCASE_VERSION=0.0.6 +$ export GAPIC_SHOWCASE_VERSION=0.0.8 $ export OS=linux $ export ARCH=amd64 $ curl -L https://github.com/googleapis/gapic-showcase/releases/download/v${GAPIC_SHOWCASE_VERSION}/gapic-showcase-${GAPIC_SHOWCASE_VERSION}-${OS}-${ARCH} | sudo tar -zx -- --directory /usr/local/bin/ @@ -39,7 +39,7 @@ $ gapic-showcase run #### Docker Installation ```sh -$ export GAPIC_SHOWCASE_VERSION=0.0.6 +$ export GAPIC_SHOWCASE_VERSION=0.0.8 $ docker pull gcr.io/gapic-showcase/gapic-showcase:${GAPIC_SHOWCASE_VERSION} $ docker run -it gcr.io/gapic-showcase/gapic-showcase:${GAPIC_SHOWCASE_VERSION} > 2018/09/19 02:13:09 Showcase listening on port: :7469 @@ -68,9 +68,9 @@ protobuf files into their gapic-generator. This client will be the client used for integration testing their gapic- generator. ```sh -$ export GAPIC_SHOWCASE_VERSION=0.0.6 +$ export GAPIC_SHOWCASE_VERSION=0.0.8 $ curl -L https://github.com/googleapis/gapic-showcase/releases/download/v${GAPIC_SHOWCASE_VERSION}/gapic-showcase-${GAPIC_SHOWCASE_VERSION}-protos.tar.gz | sudo tar -zx -$ protoc google/showcase/v1alpha2/*.proto \ +$ protoc google/showcase/v1alpha3/*.proto \ --proto_path=. \ --${YOUR_GAPIC_GENERATOR}_out=/dest/ ``` @@ -115,7 +115,7 @@ The integration test needs a server to send its requests to. Download and run the server so that gapic-showcase is available for the tests. ```sh -$ export GAPIC_SHOWCASE_VERSION=0.0.6 +$ export GAPIC_SHOWCASE_VERSION=0.0.8 $ export OS=linux $ export ARCH=amd64 $ curl -L https://github.com/googleapis/gapic-showcase/releases/download/v${GAPIC_SHOWCASE_VERSION}/gapic-showcase-${OS}-${ARCH} | sudo tar -zx -- --directory /usr/local/bin/ @@ -176,7 +176,7 @@ API. ```sh $ gapic-showcase run > 2018/09/19 02:13:09 Showcase listening on port: :7469 -> 2018/09/19 02:14:08 Received Unary Request for Method: /google.showcase.v1alpha2.Echo/Echo +> 2018/09/19 02:14:08 Received Unary Request for Method: /google.showcase.v1alpha3.Echo/Echo > 2018/09/19 02:14:08 Request: content:"hello world" > 2018/09/19 02:14:08 Returning Response: content:"hello world" ``` diff --git a/cmd/root.go b/cmd/root.go index f6683189b..9279a4ee9 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -30,7 +30,7 @@ var rootCmd = &cobra.Command{ Long: `Showcase is an API used to showcase Generate API Client (GAPIC) features. This tool is used run the gapic-showcase server, and used to make to an already running server.`, - Version: "0.0.7", + Version: "0.0.8", } // Execute adds all child commands to the root command and sets flags appropriately. diff --git a/schema/echo.proto b/schema/echo.proto index 59308a8f3..e24b8b214 100644 --- a/schema/echo.proto +++ b/schema/echo.proto @@ -19,10 +19,10 @@ import "google/longrunning/operations.proto"; import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; -package google.showcase.v1alpha2; +package google.showcase.v1alpha3; option go_package = "github.com/googleapis/gapic-showcase/server/genproto"; -option java_package = "com.google.showcase.v1alpha2"; +option java_package = "com.google.showcase.v1alpha3"; option java_multiple_files = true; option (google.api.metadata) = { @@ -41,7 +41,7 @@ service Echo { // This method simply echos the request. This method is showcases unary rpcs. rpc Echo(EchoRequest) returns (EchoResponse) { option (google.api.http) = { - post: "/v1alpha2/echo:echo" + post: "/v1alpha3/echo:echo" body: "*" }; } @@ -50,7 +50,7 @@ service Echo { // through the stream. This method showcases server-side streaming rpcs. rpc Expand(ExpandRequest) returns (stream EchoResponse) { option (google.api.http) = { - post: "/v1alpha2/echo:expand" + post: "/v1alpha3/echo:expand" body: "*" }; // TODO(landrito): change this to be `fields: ["content", "error"]` once @@ -66,7 +66,7 @@ service Echo { // passed to it. This method showcases client-side streaming rpcs. rpc Collect(stream EchoRequest) returns (EchoResponse) { option (google.api.http) = { - post: "/v1alpha2/echo:collect" + post: "/v1alpha3/echo:collect" body: "*" }; } @@ -80,7 +80,7 @@ service Echo { // expanded words, this method returns a paged list of expanded words. rpc PagedExpand(PagedExpandRequest) returns (PagedExpandResponse) { option (google.api.http) = { - post: "/v1alpha2/echo:pagedExpand" + post: "/v1alpha3/echo:pagedExpand" body: "*" }; } @@ -89,7 +89,7 @@ service Echo { // This method showcases how a client handles a request timing out. rpc Wait(WaitRequest) returns (google.longrunning.Operation) { option (google.api.http) = { - post: "/v1alpha2/echo:wait" + post: "/v1alpha3/echo:wait" body: "*" }; } diff --git a/schema/testing.proto b/schema/testing.proto index 651f85198..20a313a6a 100644 --- a/schema/testing.proto +++ b/schema/testing.proto @@ -17,10 +17,10 @@ syntax = "proto3"; import "google/api/annotations.proto"; import "google/protobuf/empty.proto"; -package google.showcase.v1alpha2; +package google.showcase.v1alpha3; option go_package = "github.com/googleapis/gapic-showcase/server/genproto"; -option java_package = "com.google.showcase.v1alpha2"; +option java_package = "com.google.showcase.v1alpha3"; option java_multiple_files = true; // A service to facilitate running discrete sets of tests @@ -33,7 +33,7 @@ service Testing { // and an overall rollup. rpc ReportSession(ReportSessionRequest) returns (ReportSessionResponse) { option (google.api.http) = { - post: "/v1alpha2/{name=sessions/*}:report" + post: "/v1alpha3/{name=sessions/*}:report" }; } @@ -45,7 +45,7 @@ service Testing { // This method will error if attempting to delete a required test. rpc DeleteTest(DeleteTestRequest) returns (google.protobuf.Empty) { option (google.api.http) = { - delete: "/v1alpha2/{name=sessions/*/tests/*}" + delete: "/v1alpha3/{name=sessions/*/tests/*}" }; } @@ -55,7 +55,7 @@ service Testing { // end of the test, this method provides the means to do so. rpc RegisterTest(RegisterTestRequest) returns (google.protobuf.Empty) { option (google.api.http) = { - post: "/v1alpha2/{name=sessions/*/tests/*}:register" + post: "/v1alpha3/{name=sessions/*/tests/*}:register" }; } } diff --git a/server/genproto/echo.pb.go b/server/genproto/echo.pb.go index c1961725e..3f35b81cc 100644 --- a/server/genproto/echo.pb.go +++ b/server/genproto/echo.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// source: google/showcase/v1alpha2/echo.proto +// source: google/showcase/v1alpha3/echo.proto package genproto @@ -45,7 +45,7 @@ func (m *EchoRequest) Reset() { *m = EchoRequest{} } func (m *EchoRequest) String() string { return proto.CompactTextString(m) } func (*EchoRequest) ProtoMessage() {} func (*EchoRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_98bc525ffbb2467c, []int{0} + return fileDescriptor_1c4be78b9cf935ae, []int{0} } func (m *EchoRequest) XXX_Unmarshal(b []byte) error { @@ -186,7 +186,7 @@ func (m *EchoResponse) Reset() { *m = EchoResponse{} } func (m *EchoResponse) String() string { return proto.CompactTextString(m) } func (*EchoResponse) ProtoMessage() {} func (*EchoResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_98bc525ffbb2467c, []int{1} + return fileDescriptor_1c4be78b9cf935ae, []int{1} } func (m *EchoResponse) XXX_Unmarshal(b []byte) error { @@ -229,7 +229,7 @@ func (m *ExpandRequest) Reset() { *m = ExpandRequest{} } func (m *ExpandRequest) String() string { return proto.CompactTextString(m) } func (*ExpandRequest) ProtoMessage() {} func (*ExpandRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_98bc525ffbb2467c, []int{2} + return fileDescriptor_1c4be78b9cf935ae, []int{2} } func (m *ExpandRequest) XXX_Unmarshal(b []byte) error { @@ -281,7 +281,7 @@ func (m *PagedExpandRequest) Reset() { *m = PagedExpandRequest{} } func (m *PagedExpandRequest) String() string { return proto.CompactTextString(m) } func (*PagedExpandRequest) ProtoMessage() {} func (*PagedExpandRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_98bc525ffbb2467c, []int{3} + return fileDescriptor_1c4be78b9cf935ae, []int{3} } func (m *PagedExpandRequest) XXX_Unmarshal(b []byte) error { @@ -338,7 +338,7 @@ func (m *PagedExpandResponse) Reset() { *m = PagedExpandResponse{} } func (m *PagedExpandResponse) String() string { return proto.CompactTextString(m) } func (*PagedExpandResponse) ProtoMessage() {} func (*PagedExpandResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_98bc525ffbb2467c, []int{4} + return fileDescriptor_1c4be78b9cf935ae, []int{4} } func (m *PagedExpandResponse) XXX_Unmarshal(b []byte) error { @@ -390,7 +390,7 @@ func (m *WaitRequest) Reset() { *m = WaitRequest{} } func (m *WaitRequest) String() string { return proto.CompactTextString(m) } func (*WaitRequest) ProtoMessage() {} func (*WaitRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_98bc525ffbb2467c, []int{5} + return fileDescriptor_1c4be78b9cf935ae, []int{5} } func (m *WaitRequest) XXX_Unmarshal(b []byte) error { @@ -542,7 +542,7 @@ func (m *WaitResponse) Reset() { *m = WaitResponse{} } func (m *WaitResponse) String() string { return proto.CompactTextString(m) } func (*WaitResponse) ProtoMessage() {} func (*WaitResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_98bc525ffbb2467c, []int{6} + return fileDescriptor_1c4be78b9cf935ae, []int{6} } func (m *WaitResponse) XXX_Unmarshal(b []byte) error { @@ -583,7 +583,7 @@ func (m *WaitMetadata) Reset() { *m = WaitMetadata{} } func (m *WaitMetadata) String() string { return proto.CompactTextString(m) } func (*WaitMetadata) ProtoMessage() {} func (*WaitMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_98bc525ffbb2467c, []int{7} + return fileDescriptor_1c4be78b9cf935ae, []int{7} } func (m *WaitMetadata) XXX_Unmarshal(b []byte) error { @@ -612,14 +612,14 @@ func (m *WaitMetadata) GetEndTime() *timestamp.Timestamp { } func init() { - proto.RegisterType((*EchoRequest)(nil), "google.showcase.v1alpha2.EchoRequest") - proto.RegisterType((*EchoResponse)(nil), "google.showcase.v1alpha2.EchoResponse") - proto.RegisterType((*ExpandRequest)(nil), "google.showcase.v1alpha2.ExpandRequest") - proto.RegisterType((*PagedExpandRequest)(nil), "google.showcase.v1alpha2.PagedExpandRequest") - proto.RegisterType((*PagedExpandResponse)(nil), "google.showcase.v1alpha2.PagedExpandResponse") - proto.RegisterType((*WaitRequest)(nil), "google.showcase.v1alpha2.WaitRequest") - proto.RegisterType((*WaitResponse)(nil), "google.showcase.v1alpha2.WaitResponse") - proto.RegisterType((*WaitMetadata)(nil), "google.showcase.v1alpha2.WaitMetadata") + proto.RegisterType((*EchoRequest)(nil), "google.showcase.v1alpha3.EchoRequest") + proto.RegisterType((*EchoResponse)(nil), "google.showcase.v1alpha3.EchoResponse") + proto.RegisterType((*ExpandRequest)(nil), "google.showcase.v1alpha3.ExpandRequest") + proto.RegisterType((*PagedExpandRequest)(nil), "google.showcase.v1alpha3.PagedExpandRequest") + proto.RegisterType((*PagedExpandResponse)(nil), "google.showcase.v1alpha3.PagedExpandResponse") + proto.RegisterType((*WaitRequest)(nil), "google.showcase.v1alpha3.WaitRequest") + proto.RegisterType((*WaitResponse)(nil), "google.showcase.v1alpha3.WaitResponse") + proto.RegisterType((*WaitMetadata)(nil), "google.showcase.v1alpha3.WaitMetadata") } // Reference imports to suppress errors if they are not otherwise used. @@ -665,7 +665,7 @@ func NewEchoClient(cc *grpc.ClientConn) EchoClient { func (c *echoClient) Echo(ctx context.Context, in *EchoRequest, opts ...grpc.CallOption) (*EchoResponse, error) { out := new(EchoResponse) - err := c.cc.Invoke(ctx, "/google.showcase.v1alpha2.Echo/Echo", in, out, opts...) + err := c.cc.Invoke(ctx, "/google.showcase.v1alpha3.Echo/Echo", in, out, opts...) if err != nil { return nil, err } @@ -673,7 +673,7 @@ func (c *echoClient) Echo(ctx context.Context, in *EchoRequest, opts ...grpc.Cal } func (c *echoClient) Expand(ctx context.Context, in *ExpandRequest, opts ...grpc.CallOption) (Echo_ExpandClient, error) { - stream, err := c.cc.NewStream(ctx, &_Echo_serviceDesc.Streams[0], "/google.showcase.v1alpha2.Echo/Expand", opts...) + stream, err := c.cc.NewStream(ctx, &_Echo_serviceDesc.Streams[0], "/google.showcase.v1alpha3.Echo/Expand", opts...) if err != nil { return nil, err } @@ -705,7 +705,7 @@ func (x *echoExpandClient) Recv() (*EchoResponse, error) { } func (c *echoClient) Collect(ctx context.Context, opts ...grpc.CallOption) (Echo_CollectClient, error) { - stream, err := c.cc.NewStream(ctx, &_Echo_serviceDesc.Streams[1], "/google.showcase.v1alpha2.Echo/Collect", opts...) + stream, err := c.cc.NewStream(ctx, &_Echo_serviceDesc.Streams[1], "/google.showcase.v1alpha3.Echo/Collect", opts...) if err != nil { return nil, err } @@ -739,7 +739,7 @@ func (x *echoCollectClient) CloseAndRecv() (*EchoResponse, error) { } func (c *echoClient) Chat(ctx context.Context, opts ...grpc.CallOption) (Echo_ChatClient, error) { - stream, err := c.cc.NewStream(ctx, &_Echo_serviceDesc.Streams[2], "/google.showcase.v1alpha2.Echo/Chat", opts...) + stream, err := c.cc.NewStream(ctx, &_Echo_serviceDesc.Streams[2], "/google.showcase.v1alpha3.Echo/Chat", opts...) if err != nil { return nil, err } @@ -771,7 +771,7 @@ func (x *echoChatClient) Recv() (*EchoResponse, error) { func (c *echoClient) PagedExpand(ctx context.Context, in *PagedExpandRequest, opts ...grpc.CallOption) (*PagedExpandResponse, error) { out := new(PagedExpandResponse) - err := c.cc.Invoke(ctx, "/google.showcase.v1alpha2.Echo/PagedExpand", in, out, opts...) + err := c.cc.Invoke(ctx, "/google.showcase.v1alpha3.Echo/PagedExpand", in, out, opts...) if err != nil { return nil, err } @@ -780,7 +780,7 @@ func (c *echoClient) PagedExpand(ctx context.Context, in *PagedExpandRequest, op func (c *echoClient) Wait(ctx context.Context, in *WaitRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) { out := new(longrunning.Operation) - err := c.cc.Invoke(ctx, "/google.showcase.v1alpha2.Echo/Wait", in, out, opts...) + err := c.cc.Invoke(ctx, "/google.showcase.v1alpha3.Echo/Wait", in, out, opts...) if err != nil { return nil, err } @@ -824,7 +824,7 @@ func _Echo_Echo_Handler(srv interface{}, ctx context.Context, dec func(interface } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/google.showcase.v1alpha2.Echo/Echo", + FullMethod: "/google.showcase.v1alpha3.Echo/Echo", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(EchoServer).Echo(ctx, req.(*EchoRequest)) @@ -915,7 +915,7 @@ func _Echo_PagedExpand_Handler(srv interface{}, ctx context.Context, dec func(in } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/google.showcase.v1alpha2.Echo/PagedExpand", + FullMethod: "/google.showcase.v1alpha3.Echo/PagedExpand", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(EchoServer).PagedExpand(ctx, req.(*PagedExpandRequest)) @@ -933,7 +933,7 @@ func _Echo_Wait_Handler(srv interface{}, ctx context.Context, dec func(interface } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/google.showcase.v1alpha2.Echo/Wait", + FullMethod: "/google.showcase.v1alpha3.Echo/Wait", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(EchoServer).Wait(ctx, req.(*WaitRequest)) @@ -942,7 +942,7 @@ func _Echo_Wait_Handler(srv interface{}, ctx context.Context, dec func(interface } var _Echo_serviceDesc = grpc.ServiceDesc{ - ServiceName: "google.showcase.v1alpha2.Echo", + ServiceName: "google.showcase.v1alpha3.Echo", HandlerType: (*EchoServer)(nil), Methods: []grpc.MethodDesc{ { @@ -976,14 +976,14 @@ var _Echo_serviceDesc = grpc.ServiceDesc{ ClientStreams: true, }, }, - Metadata: "google/showcase/v1alpha2/echo.proto", + Metadata: "google/showcase/v1alpha3/echo.proto", } func init() { - proto.RegisterFile("google/showcase/v1alpha2/echo.proto", fileDescriptor_98bc525ffbb2467c) + proto.RegisterFile("google/showcase/v1alpha3/echo.proto", fileDescriptor_1c4be78b9cf935ae) } -var fileDescriptor_98bc525ffbb2467c = []byte{ +var fileDescriptor_1c4be78b9cf935ae = []byte{ // 702 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0xcf, 0x6f, 0xd3, 0x3e, 0x1c, 0x9d, 0xf7, 0xab, 0x9b, 0xfb, 0xdd, 0x17, 0xf0, 0x04, 0x54, 0xd9, 0xc6, 0x46, 0xd0, 0x46, @@ -991,42 +991,42 @@ var fileDescriptor_98bc525ffbb2467c = []byte{ 0x99, 0x3c, 0xd7, 0x24, 0x11, 0xa9, 0x6d, 0x62, 0x67, 0x9b, 0x26, 0x71, 0x81, 0x03, 0x57, 0x10, 0xff, 0x10, 0xe2, 0xc8, 0x95, 0x1b, 0x27, 0x0e, 0xfc, 0x1f, 0xa0, 0x38, 0xf1, 0x96, 0x16, 0xb5, 0x2b, 0x68, 0x97, 0x46, 0x76, 0xdf, 0xe7, 0xf3, 0xde, 0xfb, 0xf8, 0x39, 0x81, 0x77, 0x7c, 0xce, - 0xfd, 0x88,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0xe4, 0xd0, 0x25, 0xbc, 0xe3, 0x65, 0x4c, 0x58, 0x84, 0xd2, - 0xf3, 0xb1, 0x08, 0xc9, 0x9a, 0x91, 0x06, 0xe7, 0x09, 0xef, 0xf4, 0xd5, 0xbb, 0x0b, 0x5e, 0x6c, - 0x0e, 0xd3, 0xc5, 0x93, 0x34, 0x3e, 0xa2, 0xb1, 0xe7, 0x53, 0x96, 0xdd, 0xd0, 0x49, 0xfd, 0xd8, - 0xf8, 0x1d, 0x00, 0x00, 0xff, 0xff, 0xf1, 0x8e, 0xa9, 0xa2, 0x5d, 0x07, 0x00, 0x00, + 0xfd, 0x88, 0x7a, 0x32, 0xe0, 0xc7, 0x04, 0x4b, 0xea, 0x1d, 0xdd, 0xc3, 0x91, 0x08, 0xf0, 0x86, + 0x47, 0x49, 0xc0, 0x5d, 0x11, 0x73, 0xc5, 0x51, 0x25, 0x03, 0xb9, 0x06, 0xe4, 0x1a, 0x90, 0x35, + 0x9f, 0x97, 0x63, 0x11, 0x7a, 0x98, 0x31, 0xae, 0xb0, 0x0a, 0x39, 0x93, 0x59, 0x9d, 0x65, 0x9a, + 0x47, 0x9c, 0xf9, 0x71, 0xc2, 0x58, 0xc8, 0x7c, 0x8f, 0x0b, 0x1a, 0x77, 0x81, 0x16, 0x73, 0x90, + 0x5e, 0x1d, 0x26, 0x2f, 0x3d, 0x15, 0x76, 0xa8, 0x54, 0xb8, 0x23, 0x72, 0xc0, 0xcd, 0x1c, 0x10, + 0x0b, 0xe2, 0x49, 0x85, 0x55, 0x92, 0x57, 0xda, 0x18, 0x96, 0xb7, 0x49, 0xc0, 0x5b, 0xf4, 0x75, + 0x42, 0xa5, 0x42, 0x16, 0x2c, 0x11, 0xce, 0x14, 0x65, 0xaa, 0x02, 0x96, 0x80, 0x33, 0xbd, 0x33, + 0xd2, 0x32, 0x1b, 0xa8, 0x0a, 0x27, 0x68, 0x1c, 0xf3, 0xb8, 0x32, 0xba, 0x04, 0x9c, 0x72, 0x0d, + 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c1, 0xf1, 0x34, 0xc7, + 0x83, 0xec, 0x16, 0xee, 0xb4, 0xb5, 0x60, 0x60, 0x85, 0x8f, 0x83, 0xfb, 0xd4, 0x7c, 0x1c, 0xfa, + 0xc6, 0xed, 0x18, 0x87, 0xe9, 0x78, 0xad, 0x6b, 0x5f, 0x1b, 0xff, 0x47, 0x9c, 0xe0, 0x28, 0xe0, + 0x52, 0xd5, 0x1f, 0x6e, 0x3e, 0x78, 0xd4, 0x7c, 0x0f, 0xbe, 0x34, 0x5c, 0xb4, 0x1a, 0x28, 0x25, + 0x64, 0xdd, 0xf3, 0xfc, 0x50, 0x05, 0xc9, 0xa1, 0x4b, 0x78, 0xc7, 0xcb, 0x98, 0xb0, 0x08, 0xa5, + 0xe7, 0x63, 0x11, 0x92, 0x35, 0x23, 0x0d, 0xce, 0x13, 0xde, 0xe9, 0xab, 0x77, 0x17, 0xbc, 0xd8, + 0x1c, 0xa6, 0x8b, 0x27, 0x69, 0x7c, 0x44, 0x63, 0xcf, 0xa7, 0x2c, 0xbb, 0xa1, 0x93, 0xfa, 0xb1, + 0xf1, 0x3b, 0x00, 0x00, 0xff, 0xff, 0x4d, 0x37, 0xff, 0x1f, 0x5d, 0x07, 0x00, 0x00, } diff --git a/server/genproto/testing.pb.go b/server/genproto/testing.pb.go index 3b40e91bf..0448282de 100644 --- a/server/genproto/testing.pb.go +++ b/server/genproto/testing.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// source: google/showcase/v1alpha2/testing.proto +// source: google/showcase/v1alpha3/testing.proto package genproto @@ -60,7 +60,7 @@ func (x ReportSessionResponse_State) String() string { } func (ReportSessionResponse_State) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_2518af7ad0e363c2, []int{1, 0} + return fileDescriptor_736740e9d5372b99, []int{1, 0} } // The different potential types of issues. @@ -92,7 +92,7 @@ func (x ReportSessionResponse_Issue_Type) String() string { } func (ReportSessionResponse_Issue_Type) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_2518af7ad0e363c2, []int{1, 0, 0} + return fileDescriptor_736740e9d5372b99, []int{1, 0, 0} } // Severity levels. @@ -123,7 +123,7 @@ func (x ReportSessionResponse_Issue_Severity) String() string { } func (ReportSessionResponse_Issue_Severity) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_2518af7ad0e363c2, []int{1, 0, 1} + return fileDescriptor_736740e9d5372b99, []int{1, 0, 1} } // The specification versions understood by Showcase. @@ -154,7 +154,7 @@ func (x Session_Version) String() string { } func (Session_Version) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_2518af7ad0e363c2, []int{4, 0} + return fileDescriptor_736740e9d5372b99, []int{4, 0} } // Whether or not a test is required, recommended, or optional. @@ -202,7 +202,7 @@ func (x Test_ExpectationLevel) String() string { } func (Test_ExpectationLevel) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_2518af7ad0e363c2, []int{5, 0} + return fileDescriptor_736740e9d5372b99, []int{5, 0} } // Request message for reporting on a session. @@ -218,7 +218,7 @@ func (m *ReportSessionRequest) Reset() { *m = ReportSessionRequest{} } func (m *ReportSessionRequest) String() string { return proto.CompactTextString(m) } func (*ReportSessionRequest) ProtoMessage() {} func (*ReportSessionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_2518af7ad0e363c2, []int{0} + return fileDescriptor_736740e9d5372b99, []int{0} } func (m *ReportSessionRequest) XXX_Unmarshal(b []byte) error { @@ -249,7 +249,7 @@ func (m *ReportSessionRequest) GetName() string { // Response message for reporting on a session. type ReportSessionResponse struct { // The state of the report. - State ReportSessionResponse_State `protobuf:"varint,1,opt,name=state,proto3,enum=google.showcase.v1alpha2.ReportSessionResponse_State" json:"state,omitempty"` + State ReportSessionResponse_State `protobuf:"varint,1,opt,name=state,proto3,enum=google.showcase.v1alpha3.ReportSessionResponse_State" json:"state,omitempty"` // Issues found which constitute errors. // A non-zero list here requires a failure state for the report overall. Errors []*ReportSessionResponse_Issue `protobuf:"bytes,2,rep,name=errors,proto3" json:"errors,omitempty"` @@ -266,7 +266,7 @@ func (m *ReportSessionResponse) Reset() { *m = ReportSessionResponse{} } func (m *ReportSessionResponse) String() string { return proto.CompactTextString(m) } func (*ReportSessionResponse) ProtoMessage() {} func (*ReportSessionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_2518af7ad0e363c2, []int{1} + return fileDescriptor_736740e9d5372b99, []int{1} } func (m *ReportSessionResponse) XXX_Unmarshal(b []byte) error { @@ -320,9 +320,9 @@ type ReportSessionResponse_Issue struct { // The test that is the root of the issue. Test string `protobuf:"bytes,1,opt,name=test,proto3" json:"test,omitempty"` // The type of the issue. - Type ReportSessionResponse_Issue_Type `protobuf:"varint,2,opt,name=type,proto3,enum=google.showcase.v1alpha2.ReportSessionResponse_Issue_Type" json:"type,omitempty"` + Type ReportSessionResponse_Issue_Type `protobuf:"varint,2,opt,name=type,proto3,enum=google.showcase.v1alpha3.ReportSessionResponse_Issue_Type" json:"type,omitempty"` // The severity of the issue. - Severity ReportSessionResponse_Issue_Severity `protobuf:"varint,3,opt,name=severity,proto3,enum=google.showcase.v1alpha2.ReportSessionResponse_Issue_Severity" json:"severity,omitempty"` + Severity ReportSessionResponse_Issue_Severity `protobuf:"varint,3,opt,name=severity,proto3,enum=google.showcase.v1alpha3.ReportSessionResponse_Issue_Severity" json:"severity,omitempty"` // A description of the issue. Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -334,7 +334,7 @@ func (m *ReportSessionResponse_Issue) Reset() { *m = ReportSessionRespon func (m *ReportSessionResponse_Issue) String() string { return proto.CompactTextString(m) } func (*ReportSessionResponse_Issue) ProtoMessage() {} func (*ReportSessionResponse_Issue) Descriptor() ([]byte, []int) { - return fileDescriptor_2518af7ad0e363c2, []int{1, 0} + return fileDescriptor_736740e9d5372b99, []int{1, 0} } func (m *ReportSessionResponse_Issue) XXX_Unmarshal(b []byte) error { @@ -407,7 +407,7 @@ func (m *ReportSessionResponse_Completion) Reset() { *m = ReportSessionR func (m *ReportSessionResponse_Completion) String() string { return proto.CompactTextString(m) } func (*ReportSessionResponse_Completion) ProtoMessage() {} func (*ReportSessionResponse_Completion) Descriptor() ([]byte, []int) { - return fileDescriptor_2518af7ad0e363c2, []int{1, 1} + return fileDescriptor_736740e9d5372b99, []int{1, 1} } func (m *ReportSessionResponse_Completion) XXX_Unmarshal(b []byte) error { @@ -469,7 +469,7 @@ func (m *DeleteTestRequest) Reset() { *m = DeleteTestRequest{} } func (m *DeleteTestRequest) String() string { return proto.CompactTextString(m) } func (*DeleteTestRequest) ProtoMessage() {} func (*DeleteTestRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_2518af7ad0e363c2, []int{2} + return fileDescriptor_736740e9d5372b99, []int{2} } func (m *DeleteTestRequest) XXX_Unmarshal(b []byte) error { @@ -512,7 +512,7 @@ func (m *RegisterTestRequest) Reset() { *m = RegisterTestRequest{} } func (m *RegisterTestRequest) String() string { return proto.CompactTextString(m) } func (*RegisterTestRequest) ProtoMessage() {} func (*RegisterTestRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_2518af7ad0e363c2, []int{3} + return fileDescriptor_736740e9d5372b99, []int{3} } func (m *RegisterTestRequest) XXX_Unmarshal(b []byte) error { @@ -557,7 +557,7 @@ type Session struct { // If this is not provided, Showcase chooses one at random. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Required. The version this session is using. - Version Session_Version `protobuf:"varint,2,opt,name=version,proto3,enum=google.showcase.v1alpha2.Session_Version" json:"version,omitempty"` + Version Session_Version `protobuf:"varint,2,opt,name=version,proto3,enum=google.showcase.v1alpha3.Session_Version" json:"version,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -567,7 +567,7 @@ func (m *Session) Reset() { *m = Session{} } func (m *Session) String() string { return proto.CompactTextString(m) } func (*Session) ProtoMessage() {} func (*Session) Descriptor() ([]byte, []int) { - return fileDescriptor_2518af7ad0e363c2, []int{4} + return fileDescriptor_736740e9d5372b99, []int{4} } func (m *Session) XXX_Unmarshal(b []byte) error { @@ -610,7 +610,7 @@ type Test struct { // from session to session. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The expectation level for this test. - ExpectationLevel Test_ExpectationLevel `protobuf:"varint,2,opt,name=expectation_level,json=expectationLevel,proto3,enum=google.showcase.v1alpha2.Test_ExpectationLevel" json:"expectation_level,omitempty"` + ExpectationLevel Test_ExpectationLevel `protobuf:"varint,2,opt,name=expectation_level,json=expectationLevel,proto3,enum=google.showcase.v1alpha3.Test_ExpectationLevel" json:"expectation_level,omitempty"` // A description of the test. Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -622,7 +622,7 @@ func (m *Test) Reset() { *m = Test{} } func (m *Test) String() string { return proto.CompactTextString(m) } func (*Test) ProtoMessage() {} func (*Test) Descriptor() ([]byte, []int) { - return fileDescriptor_2518af7ad0e363c2, []int{5} + return fileDescriptor_736740e9d5372b99, []int{5} } func (m *Test) XXX_Unmarshal(b []byte) error { @@ -665,19 +665,19 @@ func (m *Test) GetDescription() string { } func init() { - proto.RegisterEnum("google.showcase.v1alpha2.ReportSessionResponse_State", ReportSessionResponse_State_name, ReportSessionResponse_State_value) - proto.RegisterEnum("google.showcase.v1alpha2.ReportSessionResponse_Issue_Type", ReportSessionResponse_Issue_Type_name, ReportSessionResponse_Issue_Type_value) - proto.RegisterEnum("google.showcase.v1alpha2.ReportSessionResponse_Issue_Severity", ReportSessionResponse_Issue_Severity_name, ReportSessionResponse_Issue_Severity_value) - proto.RegisterEnum("google.showcase.v1alpha2.Session_Version", Session_Version_name, Session_Version_value) - proto.RegisterEnum("google.showcase.v1alpha2.Test_ExpectationLevel", Test_ExpectationLevel_name, Test_ExpectationLevel_value) - proto.RegisterType((*ReportSessionRequest)(nil), "google.showcase.v1alpha2.ReportSessionRequest") - proto.RegisterType((*ReportSessionResponse)(nil), "google.showcase.v1alpha2.ReportSessionResponse") - proto.RegisterType((*ReportSessionResponse_Issue)(nil), "google.showcase.v1alpha2.ReportSessionResponse.Issue") - proto.RegisterType((*ReportSessionResponse_Completion)(nil), "google.showcase.v1alpha2.ReportSessionResponse.Completion") - proto.RegisterType((*DeleteTestRequest)(nil), "google.showcase.v1alpha2.DeleteTestRequest") - proto.RegisterType((*RegisterTestRequest)(nil), "google.showcase.v1alpha2.RegisterTestRequest") - proto.RegisterType((*Session)(nil), "google.showcase.v1alpha2.Session") - proto.RegisterType((*Test)(nil), "google.showcase.v1alpha2.Test") + proto.RegisterEnum("google.showcase.v1alpha3.ReportSessionResponse_State", ReportSessionResponse_State_name, ReportSessionResponse_State_value) + proto.RegisterEnum("google.showcase.v1alpha3.ReportSessionResponse_Issue_Type", ReportSessionResponse_Issue_Type_name, ReportSessionResponse_Issue_Type_value) + proto.RegisterEnum("google.showcase.v1alpha3.ReportSessionResponse_Issue_Severity", ReportSessionResponse_Issue_Severity_name, ReportSessionResponse_Issue_Severity_value) + proto.RegisterEnum("google.showcase.v1alpha3.Session_Version", Session_Version_name, Session_Version_value) + proto.RegisterEnum("google.showcase.v1alpha3.Test_ExpectationLevel", Test_ExpectationLevel_name, Test_ExpectationLevel_value) + proto.RegisterType((*ReportSessionRequest)(nil), "google.showcase.v1alpha3.ReportSessionRequest") + proto.RegisterType((*ReportSessionResponse)(nil), "google.showcase.v1alpha3.ReportSessionResponse") + proto.RegisterType((*ReportSessionResponse_Issue)(nil), "google.showcase.v1alpha3.ReportSessionResponse.Issue") + proto.RegisterType((*ReportSessionResponse_Completion)(nil), "google.showcase.v1alpha3.ReportSessionResponse.Completion") + proto.RegisterType((*DeleteTestRequest)(nil), "google.showcase.v1alpha3.DeleteTestRequest") + proto.RegisterType((*RegisterTestRequest)(nil), "google.showcase.v1alpha3.RegisterTestRequest") + proto.RegisterType((*Session)(nil), "google.showcase.v1alpha3.Session") + proto.RegisterType((*Test)(nil), "google.showcase.v1alpha3.Test") } // Reference imports to suppress errors if they are not otherwise used. @@ -720,7 +720,7 @@ func NewTestingClient(cc *grpc.ClientConn) TestingClient { func (c *testingClient) ReportSession(ctx context.Context, in *ReportSessionRequest, opts ...grpc.CallOption) (*ReportSessionResponse, error) { out := new(ReportSessionResponse) - err := c.cc.Invoke(ctx, "/google.showcase.v1alpha2.Testing/ReportSession", in, out, opts...) + err := c.cc.Invoke(ctx, "/google.showcase.v1alpha3.Testing/ReportSession", in, out, opts...) if err != nil { return nil, err } @@ -729,7 +729,7 @@ func (c *testingClient) ReportSession(ctx context.Context, in *ReportSessionRequ func (c *testingClient) DeleteTest(ctx context.Context, in *DeleteTestRequest, opts ...grpc.CallOption) (*empty.Empty, error) { out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/google.showcase.v1alpha2.Testing/DeleteTest", in, out, opts...) + err := c.cc.Invoke(ctx, "/google.showcase.v1alpha3.Testing/DeleteTest", in, out, opts...) if err != nil { return nil, err } @@ -738,7 +738,7 @@ func (c *testingClient) DeleteTest(ctx context.Context, in *DeleteTestRequest, o func (c *testingClient) RegisterTest(ctx context.Context, in *RegisterTestRequest, opts ...grpc.CallOption) (*empty.Empty, error) { out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/google.showcase.v1alpha2.Testing/RegisterTest", in, out, opts...) + err := c.cc.Invoke(ctx, "/google.showcase.v1alpha3.Testing/RegisterTest", in, out, opts...) if err != nil { return nil, err } @@ -779,7 +779,7 @@ func _Testing_ReportSession_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/google.showcase.v1alpha2.Testing/ReportSession", + FullMethod: "/google.showcase.v1alpha3.Testing/ReportSession", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TestingServer).ReportSession(ctx, req.(*ReportSessionRequest)) @@ -797,7 +797,7 @@ func _Testing_DeleteTest_Handler(srv interface{}, ctx context.Context, dec func( } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/google.showcase.v1alpha2.Testing/DeleteTest", + FullMethod: "/google.showcase.v1alpha3.Testing/DeleteTest", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TestingServer).DeleteTest(ctx, req.(*DeleteTestRequest)) @@ -815,7 +815,7 @@ func _Testing_RegisterTest_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/google.showcase.v1alpha2.Testing/RegisterTest", + FullMethod: "/google.showcase.v1alpha3.Testing/RegisterTest", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TestingServer).RegisterTest(ctx, req.(*RegisterTestRequest)) @@ -824,7 +824,7 @@ func _Testing_RegisterTest_Handler(srv interface{}, ctx context.Context, dec fun } var _Testing_serviceDesc = grpc.ServiceDesc{ - ServiceName: "google.showcase.v1alpha2.Testing", + ServiceName: "google.showcase.v1alpha3.Testing", HandlerType: (*TestingServer)(nil), Methods: []grpc.MethodDesc{ { @@ -841,75 +841,75 @@ var _Testing_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "google/showcase/v1alpha2/testing.proto", + Metadata: "google/showcase/v1alpha3/testing.proto", } func init() { - proto.RegisterFile("google/showcase/v1alpha2/testing.proto", fileDescriptor_2518af7ad0e363c2) + proto.RegisterFile("google/showcase/v1alpha3/testing.proto", fileDescriptor_736740e9d5372b99) } -var fileDescriptor_2518af7ad0e363c2 = []byte{ - // 983 bytes of a gzipped FileDescriptorProto +var fileDescriptor_736740e9d5372b99 = []byte{ + // 984 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x56, 0x5f, 0x6f, 0xdb, 0x54, - 0x14, 0xc7, 0x4e, 0xda, 0xa4, 0xa7, 0xdd, 0xe6, 0xde, 0x75, 0x5b, 0x94, 0x0d, 0x54, 0x3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1, 0x8d, 0x29, 0x20, 0x0f, 0x03, 0x9f, 0x23, 0x79, 0x04, 0x73, 0x3c, - 0x76, 0xe2, 0x14, 0x7a, 0x75, 0xeb, 0x03, 0x6d, 0x56, 0xda, 0xda, 0xbf, 0xe2, 0x35, 0x2b, 0x01, - 0xb3, 0x94, 0x83, 0x34, 0x60, 0x1e, 0xa3, 0x28, 0x88, 0x78, 0x45, 0x5e, 0x2d, 0xac, 0x2d, 0x5e, - 0x9e, 0xcd, 0xe4, 0x7c, 0x88, 0x2c, 0x23, 0x21, 0x8f, 0xa1, 0x7c, 0xec, 0x44, 0xbe, 0xeb, 0xf7, - 0x79, 0xa5, 0xf0, 0x7f, 0x08, 0xc7, 0x34, 0x64, 0x1f, 0xa0, 0x17, 0x0c, 0x42, 0x0f, 0x13, 0xc9, - 0x2b, 0xc5, 0x55, 0x69, 0x6d, 0x71, 0x6b, 0xe7, 0xb2, 0xa4, 0xb5, 0x31, 0x03, 0x3b, 0xc5, 0x56, - 0xfd, 0x5b, 0x86, 0x39, 0x11, 0x8f, 0x10, 0x28, 0x26, 0xcd, 0x90, 0x1e, 0x07, 0x13, 0xff, 0x49, - 0x13, 0x8a, 0xf1, 0x49, 0x88, 0x15, 0x59, 0xe8, 0xbc, 0xf3, 0x4a, 0x85, 0x68, 0xf6, 0x49, 0x88, - 0x4c, 0xf0, 0x90, 0x7d, 0x28, 0x73, 0x1c, 0x61, 0xe4, 0xc6, 0x27, 0x95, 0x82, 0xe0, 0xfc, 0xec, - 0xd5, 0x38, 0xad, 0x8c, 0x85, 0x8d, 0xf9, 0xc8, 0x2a, 0x2c, 0x1e, 0x22, 0xef, 0x45, 0x6e, 0x38, - 0x96, 0x69, 0x81, 0x9d, 0x36, 0xa9, 0x14, 0x8a, 0x49, 0x2e, 0x64, 0x05, 0x14, 0xfb, 0x69, 0x9b, - 0x76, 0x9f, 0x34, 0xad, 0x36, 0xad, 0x99, 0x7b, 0x26, 0xdd, 0x55, 0x5e, 0x23, 0x8b, 0x50, 0xb2, - 0x1e, 0x99, 0xed, 0x36, 0xdd, 0x55, 0x24, 0x52, 0x85, 0x9b, 0x66, 0xb3, 0xd6, 0x62, 0x8c, 0xd6, - 0xec, 0x6e, 0xad, 0xd5, 0xdc, 0x33, 0x59, 0xc3, 0xb0, 0xcd, 0x56, 0x53, 0x91, 0xd5, 0x4f, 0xa0, - 0x9c, 0x87, 0x27, 0x15, 0x58, 0xb1, 0x68, 0x87, 0x32, 0xd3, 0x7e, 0x3a, 0x45, 0xb7, 0x00, 0x73, - 0x94, 0xb1, 0x16, 0x53, 0xa4, 0x84, 0xf9, 0x0b, 0x83, 0x35, 0xcd, 0xe6, 0xe7, 0x8a, 0x5c, 0xfd, - 0x0e, 0x60, 0x72, 0x14, 0x64, 0x05, 0xe6, 0xe2, 0x20, 0x76, 0x3c, 0xa1, 0xba, 0xcc, 0xd2, 0x05, - 0xa9, 0x42, 0x39, 0xc2, 0x67, 0x43, 0x37, 0xc2, 0x43, 0x21, 0xbd, 0xcc, 0xc6, 0xeb, 0xa4, 0xcc, - 0x08, 0x7b, 0xc1, 0x60, 0x80, 0xfe, 0x21, 0x1e, 0x0a, 0x15, 0x65, 0x76, 0xda, 0x94, 0xa0, 0x03, - 0x51, 0xb0, 0xe3, 0x09, 0x15, 0x64, 0x36, 0x5e, 0xab, 0x7b, 0x30, 0x27, 0x9a, 0x9f, 0xdc, 0x80, - 0x65, 0xcb, 0x36, 0xec, 0x69, 0x11, 0x00, 0xe6, 0xdb, 0x86, 0x65, 0x09, 0x0d, 0x00, 0xe6, 0xf7, - 0x0c, 0xb3, 0x4e, 0x77, 0x15, 0x99, 0x5c, 0x05, 0x48, 0xf4, 0x68, 0xb4, 0xeb, 0xd4, 0xa6, 0x4a, - 0x41, 0xbd, 0x0f, 0xcb, 0xbb, 0xe8, 0x61, 0x8c, 0x36, 0xf2, 0x38, 0x1f, 0xe8, 0xdb, 0x67, 0x06, - 0xba, 0xf4, 0xd2, 0x28, 0x8a, 0xd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 0xfd, 0xbf, 0x6a, 0xcf, 0x8d, 0xdb, 0xd4, 0x24, 0xb6, 0x44, 0x12, + 0x9a, 0xfa, 0xc1, 0x05, 0x92, 0xd8, 0x8e, 0x32, 0xe2, 0xea, 0xd2, 0x9f, 0xc6, 0xa2, 0x17, 0x74, + 0x1d, 0xef, 0x28, 0xe0, 0xf1, 0xf6, 0x47, 0x5b, 0x0f, 0x3e, 0x7e, 0xd8, 0x86, 0xdb, 0xdd, 0xa0, + 0x3f, 0x35, 0xa9, 0x96, 0xb4, 0xbf, 0xd5, 0x73, 0xe3, 0xa3, 0xc1, 0x81, 0xd6, 0x0d, 0xfa, 0x7a, + 0xea, 0xe6, 0x84, 0x2e, 0xd7, 0x7b, 0x4e, 0xe8, 0x76, 0xef, 0x8e, 0x3e, 0x50, 0x38, 0x46, 0x43, + 0x8c, 0xf4, 0x1e, 0xfa, 0x69, 0xa6, 0xb3, 0xe2, 0xe7, 0xfe, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, + 0xb1, 0xcf, 0xdd, 0xde, 0xca, 0x08, 0x00, 0x00, } diff --git a/server/operations_service.go b/server/operations_service.go index fb78301a4..df2717611 100644 --- a/server/operations_service.go +++ b/server/operations_service.go @@ -37,7 +37,7 @@ type operationsServerImpl struct { } func (s *operationsServerImpl) GetOperation(ctx context.Context, in *lropb.GetOperationRequest) (*lropb.Operation, error) { - prefix := "operations/google.showcase.v1alpha2.Echo/Wait/" + prefix := "operations/google.showcase.v1alpha3.Echo/Wait/" if !strings.HasPrefix(in.Name, prefix) { return nil, status.Errorf(codes.NotFound, "Operation %q not found.", in.Name) } diff --git a/server/operations_service_test.go b/server/operations_service_test.go index e34a1b719..d170ef179 100644 --- a/server/operations_service_test.go +++ b/server/operations_service_test.go @@ -35,7 +35,7 @@ func TestGetOperation(t *testing.T) { nameBytes, _ := proto.Marshal(waitReq) req := &lropb.GetOperationRequest{ Name: fmt.Sprintf( - "operations/google.showcase.v1alpha2.Echo/Wait/%s", + "operations/google.showcase.v1alpha3.Echo/Wait/%s", base64.StdEncoding.EncodeToString(nameBytes)), } @@ -61,7 +61,24 @@ func TestGetOperation_notFoundOperation(t *testing.T) { func TestGetOperation_invalidEncodedName(t *testing.T) { req := &lropb.GetOperationRequest{ - Name: "operations/google.showcase.v1alpha2.Echo/Wait/BOGUS", + Name: "operations/google.showcase.v1alpha3.Echo/Wait/BOGUS", + } + server := NewOperationsServer() + _, err := server.GetOperation(context.Background(), req) + s, _ := status.FromError(err) + if codes.NotFound != s.Code() { + t.Errorf("GetOperation with invalid name expected code=%d, got %d", codes.NotFound, s.Code()) + } +} + +func TestGetOperation_invalidMarshalledProto(t *testing.T) { + prefix := "operations/google.showcase.v1alpha3.Echo/Wait" + name := fmt.Sprintf( + "%s/%s", + prefix, + base64.StdEncoding.EncodeToString([]byte("BOGUS"))) + req := &lropb.GetOperationRequest{ + Name: name, } server := NewOperationsServer() _, err := server.GetOperation(context.Background(), req) diff --git a/server/waiter.go b/server/waiter.go index fd815823d..0b07e340a 100644 --- a/server/waiter.go +++ b/server/waiter.go @@ -43,7 +43,7 @@ func (w *waiterImpl) Wait(req *pb.WaitRequest) *lropb.Operation { done := w.nowF().After(endTime) name := fmt.Sprintf( - "operations/google.showcase.v1alpha2.Echo/Wait/%s", + "operations/google.showcase.v1alpha3.Echo/Wait/%s", base64.StdEncoding.EncodeToString(reqBytes)) answer := &lropb.Operation{ Name: name, diff --git a/server/waiter_test.go b/server/waiter_test.go index ffbd65af2..76f302c4e 100644 --- a/server/waiter_test.go +++ b/server/waiter_test.go @@ -127,15 +127,15 @@ func timestampProto(t time.Time) *timestamp.Timestamp { } func checkName(t *testing.T, req *pb.WaitRequest, op *lropb.Operation) { - if !strings.HasPrefix(op.Name, "operations/google.showcase.v1alpha2.Echo/Wait/") { + if !strings.HasPrefix(op.Name, "operations/google.showcase.v1alpha3.Echo/Wait/") { t.Errorf( - "Wait() expected op.Name prefex 'operations/google.showcase.v1alpha2.Echo/Wait/', got: %s'", + "Wait() expected op.Name prefex 'operations/google.showcase.v1alpha3.Echo/Wait/', got: %s'", op.Name) } nameProto := &pb.WaitRequest{} encodedBytes := strings.TrimPrefix( op.Name, - "operations/google.showcase.v1alpha2.Echo/Wait/") + "operations/google.showcase.v1alpha3.Echo/Wait/") bytes, _ := base64.StdEncoding.DecodeString(encodedBytes) proto.Unmarshal(bytes, nameProto) if !proto.Equal(nameProto, req) {