gnmitest

package
v0.0.0-...-737f52e Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package gnmitest contains functions related to gNMI tests. They test the functionalities of configuring or fetching telemetry data from AP devices through gNMI.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunTest

func RunTest(client pb.GNMIClient, testCase *common.TestCase, timeout time.Duration, stateUpdateDelay time.Duration) error

RunTest runs one gNMI test case. Args:

client: A gNMI client. It is used to send gNMI requests.
testCase: The target test case to run.
timeout: The timeout for each gNMI request. The test case failes if hitting timeout.
stateUpdateDelay: The timeout for verifying related state field udpates. The test case failes if state field is not synced to the pushed config value before timeout.

Returns:

nil if test case passed. Otherwise, return the error with failure details.

Types

This section is empty.

Jump to

Keyboard shortcuts

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