helpers

package
v0.0.0-...-70b8fbd Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package helpers provides helper APIs to simplify writing FP test cases.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchOperStatusUPIntfs

func FetchOperStatusUPIntfs(t *testing.T, dut *ondatra.DUTDevice, checkInterfacesInBinding bool) []string

FetchOperStatusUPIntfs function uses telemetry to generate a list of all up interfaces. When CheckInterfacesInBinding is set to true, all interfaces that are not defined in binding file are excluded.

func GNMINotifString

func GNMINotifString(n *gpb.Notification) string

GNMINotifString builds a string from a gnmi notification message

func ValidateOperStatusUPIntfs

func ValidateOperStatusUPIntfs(t *testing.T, dut *ondatra.DUTDevice, upIntfs []string, timeout time.Duration)

ValidateOperStatusUPIntfs function takes a list of interfaces and validates if they are up. if any of the given interfaces is not up, it fails the test and logs the failed interfaces.

Types

This section is empty.

Jump to

Keyboard shortcuts

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