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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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