suite

package
Version: v0.0.0-...-6fa03d5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_suite_suite_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CommonMessages

type CommonMessages struct {
	SetRequests       map[string]*gnmi.SetRequest       `` /* 182-byte string literal not displayed */
	GetRequests       map[string]*gnmi.GetRequest       `` /* 182-byte string literal not displayed */
	GetResponses      map[string]*gnmi.GetResponse      `` /* 185-byte string literal not displayed */
	SubscribeRequests map[string]*gnmi.SubscribeRequest `` /* 200-byte string literal not displayed */
	// contains filtered or unexported fields
}

CommonMessages specifies a set of gNMI messages that are referred to across multiple tests. This ensures that where the same message is required (e.g., a SetRequest that specifies a safe initial configuration) then it does not require repetition in the test specification.

Each specificiation is a map keyed by a unique identifying name for the message value of the map.

func (*CommonMessages) Descriptor deprecated

This method has been deprecated.
func (*CommonMessages) Descriptor() ([]byte, []int)

Deprecated: Use CommonMessages.ProtoReflect.Descriptor instead.

func (*CommonMessages) GetGetRequests

func (x *CommonMessages) GetGetRequests() map[string]*gnmi.GetRequest

func (*CommonMessages) GetGetResponses

func (x *CommonMessages) GetGetResponses() map[string]*gnmi.GetResponse

func (*CommonMessages) GetSetRequests

func (x *CommonMessages) GetSetRequests() map[string]*gnmi.SetRequest

func (*CommonMessages) GetSubscribeRequests

func (x *CommonMessages) GetSubscribeRequests() map[string]*gnmi.SubscribeRequest

func (*CommonMessages) ProtoMessage

func (*CommonMessages) ProtoMessage()

func (*CommonMessages) ProtoReflect

func (x *CommonMessages) ProtoReflect() protoreflect.Message

func (*CommonMessages) Reset

func (x *CommonMessages) Reset()

func (*CommonMessages) String

func (x *CommonMessages) String() string

type ExtensionList

type ExtensionList struct {
	Extension []*tests.Test `protobuf:"bytes,1,rep,name=extension,proto3" json:"extension,omitempty"`
	// contains filtered or unexported fields
}

ExtensionList is a list of extensions. They run as part of the subscription created for the parent test in openconfig.test.Instance.

func (*ExtensionList) Descriptor deprecated

This method has been deprecated.
func (*ExtensionList) Descriptor() ([]byte, []int)

Deprecated: Use ExtensionList.ProtoReflect.Descriptor instead.

func (*ExtensionList) GetExtension

func (x *ExtensionList) GetExtension() []*tests.Test

func (*ExtensionList) ProtoMessage

func (*ExtensionList) ProtoMessage()

func (*ExtensionList) ProtoReflect

func (x *ExtensionList) ProtoReflect() protoreflect.Message

func (*ExtensionList) Reset

func (x *ExtensionList) Reset()

func (*ExtensionList) String

func (x *ExtensionList) String() string

type Instance

type Instance struct {

	// Description of the Instance. Used for reporting purposes.
	Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
	// Test configuration to use.
	Test *tests.Test `protobuf:"bytes,2,opt,name=test,proto3" json:"test,omitempty"`
	// List of openconfig.test.ExtensionList to run as part of this test.
	// The tests run within the same context as the test specified in
	// this message - and have access to the same requests (e.g.,
	// subscription in the case of Subscribe tests).
	ExtensionList []string `protobuf:"bytes,3,rep,name=extension_list,json=extensionList,proto3" json:"extension_list,omitempty"`
	// contains filtered or unexported fields
}

Instance is what the framework treats as a test. It contains all the information to run and report a test.

func (*Instance) Descriptor deprecated

This method has been deprecated.
func (*Instance) Descriptor() ([]byte, []int)

Deprecated: Use Instance.ProtoReflect.Descriptor instead.

func (*Instance) GetDescription

func (x *Instance) GetDescription() string

func (*Instance) GetExtensionList

func (x *Instance) GetExtensionList() []string

func (*Instance) GetTest

func (x *Instance) GetTest() *tests.Test

func (*Instance) ProtoMessage

func (*Instance) ProtoMessage()

func (*Instance) ProtoReflect

func (x *Instance) ProtoReflect() protoreflect.Message

func (*Instance) Reset

func (x *Instance) Reset()

func (*Instance) String

func (x *Instance) String() string

type InstanceGroup

type InstanceGroup struct {

	// Description of the instance group. Used for reporting purposes.
	Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
	// Name of the openconfig.test.Instances to run in parallel.
	Instance []*Instance `protobuf:"bytes,2,rep,name=instance,proto3" json:"instance,omitempty"`
	// Whether the failure of a test within the InstanceGroup should be considered
	// fatal for the Suite. If set to true, when one or more of the tests within
	// the group fails, all subsequent groups are not executed.
	Fatal bool `protobuf:"varint,3,opt,name=fatal,proto3" json:"fatal,omitempty"`
	// contains filtered or unexported fields
}

InstanceGroup is a list of openconfig.test.Instances to run in parallel. RPC requests for tests in this group will be made in parallel.

func (*InstanceGroup) Descriptor deprecated

This method has been deprecated.
func (*InstanceGroup) Descriptor() ([]byte, []int)

Deprecated: Use InstanceGroup.ProtoReflect.Descriptor instead.

func (*InstanceGroup) GetDescription

func (x *InstanceGroup) GetDescription() string

func (*InstanceGroup) GetFatal

func (x *InstanceGroup) GetFatal() bool

func (*InstanceGroup) GetInstance

func (x *InstanceGroup) GetInstance() []*Instance

func (*InstanceGroup) ProtoMessage

func (*InstanceGroup) ProtoMessage()

func (*InstanceGroup) ProtoReflect

func (x *InstanceGroup) ProtoReflect() protoreflect.Message

func (*InstanceGroup) Reset

func (x *InstanceGroup) Reset()

func (*InstanceGroup) String

func (x *InstanceGroup) String() string

type Suite

type Suite struct {

	// Name of the suite. Used for reporting purposes.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Amount of time in seconds a test is allowed to run before cancelled.
	// This can be overridden by individual tests.
	Timeout int32 `protobuf:"varint,2,opt,name=timeout,proto3" json:"timeout,omitempty"`
	// Schema denotes which version of compiled gostructs to use in the test. If
	// test doesn't specify one, the one specified in Suite will be effective.
	Schema string `protobuf:"bytes,3,opt,name=schema,proto3" json:"schema,omitempty"`
	// Connection parameters to use while dialing into target. This must be set
	// here or in all individual tests. If set both here and a test, the test
	// instance takes precedence.
	Connection *tests.Connection `protobuf:"bytes,4,opt,name=connection,proto3" json:"connection,omitempty"`
	// Set of ExtensionList that can be referenced while composing
	// openconfig.test.Instance.
	ExtensionList map[string]*ExtensionList `` /* 189-byte string literal not displayed */
	// List of openconfig.test.InstanceGroup that comprises the test suite.
	// openconfig.test.InstanceGroups run serially. However the tests within
	// openconfig.test.InstanceGroup run in parallel.
	InstanceGroupList []*InstanceGroup `protobuf:"bytes,15,rep,name=instance_group_list,json=instanceGroupList,proto3" json:"instance_group_list,omitempty"`
	// A set of common request and response messages which can be referenced
	// from individual tests to reduce duplication of messages in the test
	// specification.
	Common *CommonMessages `protobuf:"bytes,16,opt,name=common,proto3" json:"common,omitempty"`
	// contains filtered or unexported fields
}

Suite is the main proto message that comprises all the test configuration for test framework.

func (*Suite) Descriptor deprecated

This method has been deprecated.
func (*Suite) Descriptor() ([]byte, []int)

Deprecated: Use Suite.ProtoReflect.Descriptor instead.

func (*Suite) GetCommon

func (x *Suite) GetCommon() *CommonMessages

func (*Suite) GetConnection

func (x *Suite) GetConnection() *tests.Connection

func (*Suite) GetExtensionList

func (x *Suite) GetExtensionList() map[string]*ExtensionList

func (*Suite) GetInstanceGroupList

func (x *Suite) GetInstanceGroupList() []*InstanceGroup

func (*Suite) GetName

func (x *Suite) GetName() string

func (*Suite) GetSchema

func (x *Suite) GetSchema() string

func (*Suite) GetTimeout

func (x *Suite) GetTimeout() int32

func (*Suite) ProtoMessage

func (*Suite) ProtoMessage()

func (*Suite) ProtoReflect

func (x *Suite) ProtoReflect() protoreflect.Message

func (*Suite) Reset

func (x *Suite) Reset()

func (*Suite) String

func (x *Suite) String() string

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL