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) PatchTestConst ¶
func (tc *TestConfig) PatchTestConst(t *testing.T, testConst map[string]interface{})
Click to show internal directories.
Click to hide internal directories.