test: Move TLS client configuration to versioned API
* RTD invocation is the only user of the TLS client configuration
* This configuration should be versioned along with the RTD invocation
API.
BUG=chromium:1069902
TEST=./generate.sh
Change-Id: I7c724d4e5f708835c78529e723b450c84c2284a8
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/infra/proto/+/2157904
Commit-Queue: Prathmesh Prabhu <pprabhu@chromium.org>
Tested-by: Prathmesh Prabhu <pprabhu@chromium.org>
Reviewed-by: Allen Li <ayatane@chromium.org>
diff --git a/go/lab/services/client.pb.go b/go/lab/services/client.pb.go
deleted file mode 100644
index 1f871cf..0000000
--- a/go/lab/services/client.pb.go
+++ /dev/null
@@ -1,120 +0,0 @@
-// Code generated by protoc-gen-go. DO NOT EDIT.
-// source: lab/services/client.proto
-
-package services
-
-import (
- fmt "fmt"
- proto "github.com/golang/protobuf/proto"
- math "math"
-)
-
-// Reference imports to suppress errors if they are not otherwise used.
-var _ = proto.Marshal
-var _ = fmt.Errorf
-var _ = math.Inf
-
-// This is a compile-time assertion to ensure that this generated file
-// is compatible with the proto package it is being compiled against.
-// A compilation error at this line likely means your copy of the
-// proto package needs to be updated.
-const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
-
-// Configuration information required by clients of Test Lab Services.
-type ClientConfig struct {
- // Address where Test Lab Services is reachable.
- // This should be an IPv4 or IPv6 address to avoid name
- // resolution issues.
- // IPv4 addresses will be in standard dotted decimal notation.
- // IPv6 addresses will be formatted according to RFC4291, Section
- // 2.2, 1. (no zero compression)
- // If this is a hostname, the RTS should ensure that the hostname
- // can be resolved by the RTD via standard name resolution
- // facilities.
- TlsAddress string `protobuf:"bytes,1,opt,name=tls_address,json=tlsAddress,proto3" json:"tls_address,omitempty"`
- // Port on the tls_address where the service is reachable.
- TlsPort int32 `protobuf:"varint,2,opt,name=tls_port,json=tlsPort,proto3" json:"tls_port,omitempty"`
- // Address where Test Lab Services Wiring is reachable.
- // This has the same format as tls_address.
- TlwAddress string `protobuf:"bytes,3,opt,name=tlw_address,json=tlwAddress,proto3" json:"tlw_address,omitempty"`
- // Port on the tlw_address where the service is reachable.
- TlwPort int32 `protobuf:"varint,4,opt,name=tlw_port,json=tlwPort,proto3" json:"tlw_port,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
-}
-
-func (m *ClientConfig) Reset() { *m = ClientConfig{} }
-func (m *ClientConfig) String() string { return proto.CompactTextString(m) }
-func (*ClientConfig) ProtoMessage() {}
-func (*ClientConfig) Descriptor() ([]byte, []int) {
- return fileDescriptor_cf54823844c81740, []int{0}
-}
-
-func (m *ClientConfig) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_ClientConfig.Unmarshal(m, b)
-}
-func (m *ClientConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_ClientConfig.Marshal(b, m, deterministic)
-}
-func (m *ClientConfig) XXX_Merge(src proto.Message) {
- xxx_messageInfo_ClientConfig.Merge(m, src)
-}
-func (m *ClientConfig) XXX_Size() int {
- return xxx_messageInfo_ClientConfig.Size(m)
-}
-func (m *ClientConfig) XXX_DiscardUnknown() {
- xxx_messageInfo_ClientConfig.DiscardUnknown(m)
-}
-
-var xxx_messageInfo_ClientConfig proto.InternalMessageInfo
-
-func (m *ClientConfig) GetTlsAddress() string {
- if m != nil {
- return m.TlsAddress
- }
- return ""
-}
-
-func (m *ClientConfig) GetTlsPort() int32 {
- if m != nil {
- return m.TlsPort
- }
- return 0
-}
-
-func (m *ClientConfig) GetTlwAddress() string {
- if m != nil {
- return m.TlwAddress
- }
- return ""
-}
-
-func (m *ClientConfig) GetTlwPort() int32 {
- if m != nil {
- return m.TlwPort
- }
- return 0
-}
-
-func init() {
- proto.RegisterType((*ClientConfig)(nil), "lab.services.ClientConfig")
-}
-
-func init() { proto.RegisterFile("lab/services/client.proto", fileDescriptor_cf54823844c81740) }
-
-var fileDescriptor_cf54823844c81740 = []byte{
- // 191 bytes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 0x00, 0x00, 0x00, 0xff, 0xff, 0x58, 0xbd, 0xea, 0xf3, 0xf4, 0x00, 0x00, 0x00,
-}
diff --git a/go/test/rtd/v1/invocation.pb.go b/go/test/rtd/v1/invocation.pb.go
index 17c5a92..4b46dcd 100644
--- a/go/test/rtd/v1/invocation.pb.go
+++ b/go/test/rtd/v1/invocation.pb.go
@@ -8,7 +8,6 @@
proto "github.com/golang/protobuf/proto"
api "go.chromium.org/chromiumos/config/go/api"
lab "go.chromium.org/chromiumos/infra/proto/go/lab"
- services "go.chromium.org/chromiumos/infra/proto/go/lab/services"
math "math"
)
@@ -40,10 +39,10 @@
Requests []*Request `protobuf:"bytes,3,rep,name=requests,proto3" json:"requests,omitempty"`
// Configuration information for using Test Lab Services to interact
// with DUTs and their peripherals.
- TestLabServicesConfig *services.ClientConfig `protobuf:"bytes,4,opt,name=test_lab_services_config,json=testLabServicesConfig,proto3" json:"test_lab_services_config,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ TestLabServicesConfig *TLSClientConfig `protobuf:"bytes,4,opt,name=test_lab_services_config,json=testLabServicesConfig,proto3" json:"test_lab_services_config,omitempty"`
+ XXX_NoUnkeyedLiteral struct{} `json:"-"`
+ XXX_unrecognized []byte `json:"-"`
+ XXX_sizecache int32 `json:"-"`
}
func (m *Invocation) Reset() { *m = Invocation{} }
@@ -92,7 +91,7 @@
return nil
}
-func (m *Invocation) GetTestLabServicesConfig() *services.ClientConfig {
+func (m *Invocation) GetTestLabServicesConfig() *TLSClientConfig {
if m != nil {
return m.TestLabServicesConfig
}
@@ -314,47 +313,128 @@
return ""
}
+// Configuration information required for using Test Lab & Wiring Services.
+type TLSClientConfig struct {
+ // Address where Test Lab Services is reachable.
+ // This should be an IPv4 or IPv6 address to avoid name
+ // resolution issues.
+ // IPv4 addresses will be in standard dotted decimal notation.
+ // IPv6 addresses will be formatted according to RFC4291, Section
+ // 2.2, 1. (no zero compression)
+ // If this is a hostname, the RTS should ensure that the hostname
+ // can be resolved by the RTD via standard name resolution
+ // facilities.
+ TlsAddress string `protobuf:"bytes,1,opt,name=tls_address,json=tlsAddress,proto3" json:"tls_address,omitempty"`
+ // Port on the tls_address where the service is reachable.
+ TlsPort int32 `protobuf:"varint,2,opt,name=tls_port,json=tlsPort,proto3" json:"tls_port,omitempty"`
+ // Address where Test Lab Services Wiring is reachable.
+ // This has the same format as tls_address.
+ TlwAddress string `protobuf:"bytes,3,opt,name=tlw_address,json=tlwAddress,proto3" json:"tlw_address,omitempty"`
+ // Port on the tlw_address where the service is reachable.
+ TlwPort int32 `protobuf:"varint,4,opt,name=tlw_port,json=tlwPort,proto3" json:"tlw_port,omitempty"`
+ XXX_NoUnkeyedLiteral struct{} `json:"-"`
+ XXX_unrecognized []byte `json:"-"`
+ XXX_sizecache int32 `json:"-"`
+}
+
+func (m *TLSClientConfig) Reset() { *m = TLSClientConfig{} }
+func (m *TLSClientConfig) String() string { return proto.CompactTextString(m) }
+func (*TLSClientConfig) ProtoMessage() {}
+func (*TLSClientConfig) Descriptor() ([]byte, []int) {
+ return fileDescriptor_8ce9aeaf734a34de, []int{3}
+}
+
+func (m *TLSClientConfig) XXX_Unmarshal(b []byte) error {
+ return xxx_messageInfo_TLSClientConfig.Unmarshal(m, b)
+}
+func (m *TLSClientConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ return xxx_messageInfo_TLSClientConfig.Marshal(b, m, deterministic)
+}
+func (m *TLSClientConfig) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_TLSClientConfig.Merge(m, src)
+}
+func (m *TLSClientConfig) XXX_Size() int {
+ return xxx_messageInfo_TLSClientConfig.Size(m)
+}
+func (m *TLSClientConfig) XXX_DiscardUnknown() {
+ xxx_messageInfo_TLSClientConfig.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_TLSClientConfig proto.InternalMessageInfo
+
+func (m *TLSClientConfig) GetTlsAddress() string {
+ if m != nil {
+ return m.TlsAddress
+ }
+ return ""
+}
+
+func (m *TLSClientConfig) GetTlsPort() int32 {
+ if m != nil {
+ return m.TlsPort
+ }
+ return 0
+}
+
+func (m *TLSClientConfig) GetTlwAddress() string {
+ if m != nil {
+ return m.TlwAddress
+ }
+ return ""
+}
+
+func (m *TLSClientConfig) GetTlwPort() int32 {
+ if m != nil {
+ return m.TlwPort
+ }
+ return 0
+}
+
func init() {
proto.RegisterType((*Invocation)(nil), "test.rtd.v1.Invocation")
proto.RegisterType((*DUT)(nil), "test.rtd.v1.DUT")
proto.RegisterType((*Request)(nil), "test.rtd.v1.Request")
proto.RegisterType((*Request_Environment)(nil), "test.rtd.v1.Request.Environment")
+ proto.RegisterType((*TLSClientConfig)(nil), "test.rtd.v1.TLSClientConfig")
}
func init() { proto.RegisterFile("test/rtd/v1/invocation.proto", fileDescriptor_8ce9aeaf734a34de) }
var fileDescriptor_8ce9aeaf734a34de = []byte{
- // 509 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0xdf, 0x6e, 0xd3, 0x30,
- 0x14, 0xc6, 0xd5, 0x3f, 0xa2, 0x9b, 0xc3, 0x45, 0xb1, 0x98, 0x94, 0x15, 0x2e, 0xaa, 0x6a, 0x88,
- 0xdd, 0x60, 0xb3, 0x72, 0x85, 0x76, 0xb7, 0x16, 0x04, 0x12, 0x42, 0x53, 0xda, 0xdd, 0x70, 0x13,
- 0xb9, 0x8d, 0x9b, 0x5a, 0x4d, 0xec, 0x70, 0xec, 0x74, 0xe2, 0x09, 0x78, 0x0c, 0xde, 0x83, 0xa7,
- 0x43, 0x76, 0x9c, 0x36, 0x81, 0x21, 0xed, 0x2e, 0x39, 0xdf, 0xef, 0x1c, 0x7f, 0xfe, 0x8e, 0x8c,
- 0x5e, 0x1a, 0xae, 0x0d, 0x05, 0x93, 0xd0, 0xfd, 0x15, 0x15, 0x72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d, 0x98, 0x3e, 0xf1, 0xfb,
+ 0xb2, 0x62, 0xf2, 0x62, 0x19, 0x64, 0x02, 0xca, 0x53, 0x3d, 0xf0, 0x7b, 0x2a, 0x96, 0x33, 0x01,
+ 0xaa, 0xf4, 0x16, 0x07, 0x6f, 0xa7, 0xf2, 0x16, 0x0d, 0x6f, 0x51, 0x7a, 0xbb, 0x95, 0xb7, 0xd0,
+ 0xde, 0x9b, 0xeb, 0xaf, 0xef, 0x22, 0x71, 0xd8, 0x14, 0x11, 0x10, 0x79, 0xb5, 0xeb, 0xca, 0xd3,
+ 0x0d, 0x50, 0xcf, 0x5c, 0x50, 0x2f, 0x12, 0x5e, 0xed, 0x3f, 0xe1, 0x1a, 0x54, 0xb8, 0x7a, 0x68,
+ 0x94, 0xb7, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0x19, 0xa0, 0xe2, 0x7a, 0x6f, 0x04, 0x00, 0x00,
}
diff --git a/src/lab/services/client.proto b/src/lab/services/client.proto
deleted file mode 100644
index 1f33bfc..0000000
--- a/src/lab/services/client.proto
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright 2020 The Chromium OS Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-syntax = "proto3";
-
-package lab.services;
-
-option go_package = "go.chromium.org/chromiumos/infra/proto/go/lab/services";
-
-// Configuration information required by clients of Test Lab Services.
-message ClientConfig {
- // Address where Test Lab Services is reachable.
- // This should be an IPv4 or IPv6 address to avoid name
- // resolution issues.
- // IPv4 addresses will be in standard dotted decimal notation.
- // IPv6 addresses will be formatted according to RFC4291, Section
- // 2.2, 1. (no zero compression)
- // If this is a hostname, the RTS should ensure that the hostname
- // can be resolved by the RTD via standard name resolution
- // facilities.
- string tls_address = 1;
- // Port on the tls_address where the service is reachable.
- int32 tls_port = 2;
-
- // Address where Test Lab Services Wiring is reachable.
- // This has the same format as tls_address.
- string tlw_address = 3;
- // Port on the tlw_address where the service is reachable.
- int32 tlw_port = 4;
-}
diff --git a/src/test/rtd/v1/invocation.proto b/src/test/rtd/v1/invocation.proto
index c8b14ec..cb0c52e 100644
--- a/src/test/rtd/v1/invocation.proto
+++ b/src/test/rtd/v1/invocation.proto
@@ -9,7 +9,6 @@
option go_package = "go.chromium.org/chromiumos/infra/proto/go/test/rtd/v1;rtd";
import "lab/peripherals.proto";
-import "lab/services/client.proto";
import "test/rtd/v1/progress.proto";
// From chromiumos/config repo.
@@ -36,7 +35,7 @@
// Configuration information for using Test Lab Services to interact
// with DUTs and their peripherals.
- lab.services.ClientConfig test_lab_services_config = 4;
+ TLSClientConfig test_lab_services_config = 4;
}
// Contains all configuration data required to interact with a single device
@@ -111,3 +110,25 @@
// request of the Remote Test Driver.
Environment environment = 3;
}
+
+// Configuration information required for using Test Lab & Wiring Services.
+message TLSClientConfig {
+ // Address where Test Lab Services is reachable.
+ // This should be an IPv4 or IPv6 address to avoid name
+ // resolution issues.
+ // IPv4 addresses will be in standard dotted decimal notation.
+ // IPv6 addresses will be formatted according to RFC4291, Section
+ // 2.2, 1. (no zero compression)
+ // If this is a hostname, the RTS should ensure that the hostname
+ // can be resolved by the RTD via standard name resolution
+ // facilities.
+ string tls_address = 1;
+ // Port on the tls_address where the service is reachable.
+ int32 tls_port = 2;
+
+ // Address where Test Lab Services Wiring is reachable.
+ // This has the same format as tls_address.
+ string tlw_address = 3;
+ // Port on the tlw_address where the service is reachable.
+ int32 tlw_port = 4;
+}