Documentation
¶
Overview ¶
Package helpers provides helper APIs to simplify writing FP test cases.
Index ¶
- func FetchOperStatusUPIntfs(t *testing.T, dut *ondatra.DUTDevice, checkInterfacesInBinding bool) []string
- func GNMINotifString(n *gpb.Notification) string
- func GnmiCLIConfig(t testing.TB, dut *ondatra.DUTDevice, config string)
- func ValidateOperStatusUPIntfs(t *testing.T, dut *ondatra.DUTDevice, upIntfs []string, timeout time.Duration)
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 GnmiCLIConfig ¶
GnmiCLIConfig sets config built with buildCliConfigRequest.
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.
Click to show internal directories.
Click to hide internal directories.