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.
Click to show internal directories.
Click to hide internal directories.