Documentation ¶
Index ¶
Constants ¶
View Source
const ( OperandImage = "quay.io/test/aws-load-balancer:latest" OperatorNamespace = "aws-load-balancer-operator" )
Variables ¶
Functions ¶
func IndexEvents ¶
IndexEvents turns the slice of events into a map for the more convenient lookups.
Types ¶
type Event ¶
type Event struct { EventType watch.EventType ObjType string types.NamespacedName }
Event is a simplified representation of the watch event received from the controller runtime client.
type EventCollector ¶
type EventCollector struct { T *testing.T Client client.WithWatch WatchTypes []client.ObjectList Verbose bool // contains filtered or unexported fields }
EventCollector collects all types of events for the given watch types.
func NewEventCollector ¶
func NewEventCollector(t *testing.T, client client.WithWatch, watchTypes []client.ObjectList, bufSize int) *EventCollector
NewEventCollector returns an instance of the event collector.
func (*EventCollector) Collect ¶
func (c *EventCollector) Collect(num int, timeout time.Duration) []Event
Collect collects events until the given number is reached or until the timeout is expired.
func (*EventCollector) Start ¶
func (c *EventCollector) Start(ctx context.Context)
Start starts watches for all the watch types.
Click to show internal directories.
Click to hide internal directories.