basic

package
v0.0.0-...-9c83fae Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package basic is a suite of basic functionality tests for the link agent

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateInsecureConnection

func CreateInsecureConnection(targetAaddress string) (*grpc.ClientConn, error)

CreateInsecureConnection creates gRPC connection to the specified gRPC end-point

func SetPipelineConfig

func SetPipelineConfig(t *testing.T, id int, device *simapi.Device, info *p4info.P4Info)

SetPipelineConfig applies the pipeline configuration to the specified device.

func ValidateHostDiscovery

func ValidateHostDiscovery(t *testing.T, id int)

ValidateHostDiscovery validates that all hosts get discovered

func ValidateLinkDiscovery

func ValidateLinkDiscovery(t *testing.T, id int)

ValidateLinkDiscovery validates that all links get discovered

Types

type TestSuite

type TestSuite struct {
	// contains filtered or unexported fields
}

TestSuite is the basic test suite

func (*TestSuite) SetupTestSuite

func (s *TestSuite) SetupTestSuite(c *input.Context) error

SetupTestSuite sets up the link agent basic test suite using fabric-sim

func (*TestSuite) TestBasics

func (s *TestSuite) TestBasics(t *testing.T)

TestBasics loads fabric simulator with access fabric topology, and tests basic gNMI operations

Jump to

Keyboard shortcuts

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