testutils

package
v0.0.0-...-030b38e Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FakeAcknowledgeReleaseIps

func FakeAcknowledgeReleaseIps(cn *v2.NetResourceSet)

FakeAcknowledgeReleaseIps Fake acknowledge IPs marked for release like cce agent would.

func WaitUntil

func WaitUntil(condition ConditionFunc, timeout time.Duration) error

func WaitUntilWithSleep

func WaitUntilWithSleep(condition ConditionFunc, timeout, sleep time.Duration) error

WaitUntilWithSleep does the same as WaitUntil except that the sleep time between the condition checks is given.

Types

type ConditionFunc

type ConditionFunc func() bool

ConditionFunc is the function implementing the condition, it must return true if the condition has been met

Jump to

Keyboard shortcuts

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