testconfig

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DutConfig

type DutConfig struct {
	Name         string   `yaml:"name,omitempty"`
	Host         string   `yaml:"host,omitempty"`
	SshUsername  string   `yaml:"ssh_username,omitempty"`
	SshPassword  string   `yaml:"ssh_password,omitempty"`
	SshPort      int      `yaml:"ssh_port,omitempty"`
	GnmiUsername string   `yaml:"gnmi_username,omitempty"`
	GnmiPassword string   `yaml:"gnmi_password,omitempty"`
	GnmiPort     int      `yaml:"gnmi_port,omitempty"`
	Interfaces   []string `yaml:"interfaces,omitempty"`
}

type TestConfig

type TestConfig struct {
	OtgHost          string                 `yaml:"otg_host,omitempty"`
	OtgPorts         []string               `yaml:"otg_ports,omitempty"`
	OtgSpeed         string                 `yaml:"otg_speed,omitempty"`
	OtgIterations    int                    `yaml:"otg_iterations,omitempty"`
	OtgCaptureCheck  bool                   `yaml:"otg_capture_check,omitempty"`
	OtgGrpcTransport bool                   `yaml:"otg_grpc_transport,omitempty"`
	DutConfigs       []DutConfig            `yaml:"dut_configs,omitempty"`
	OtgTestConst     map[string]interface{} `yaml:"otg_test_const,omitempty"`
}

func NewTestConfig

func NewTestConfig(t *testing.T) *TestConfig

func (*TestConfig) FromEnv

func (tc *TestConfig) FromEnv() error

func (*TestConfig) Load

func (tc *TestConfig) Load(t *testing.T, path string) error

func (*TestConfig) PatchTestConst

func (tc *TestConfig) PatchTestConst(t *testing.T, testConst map[string]interface{})

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL