Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Broker ¶
type Broker struct { Name string Opts []resources.BrokerOption }
Broker will hold settings for broker itself
type BrokerAndTriggers ¶
BrokerAndTriggers will deploy a default broker and 2 triggers to route two types of events to receiver.
func (*BrokerAndTriggers) Deploy ¶
func (b *BrokerAndTriggers) Deploy(ctx Context, dest duckv1.Destination) interface{}
type Context ¶
Context represents a context of system under test that we'd like to deploy and teardown.
type HasTeardown ¶
type HasTeardown interface { // Teardown will remove all deployed SUT resources. Teardown(ctx Context) }
HasTeardown indicates that SystemUnderTest supports custom teardown that exceeds regular teardown via usage of testlib.Tracker.
type SystemUnderTest ¶
type SystemUnderTest interface { // Deploy is responsible for deploying SUT and returning a URL to feed // events into. Deploy(ctx Context, destination duckv1.Destination) interface{} }
SystemUnderTest (SUT) represents a system that we'd like to test with continual prober.
func NewBrokerAndTriggers ¶
func NewBrokerAndTriggers() SystemUnderTest
NewBrokerAndTriggers will create default configuration for BrokerAndTriggers based SUT.
func NewDefault ¶
func NewDefault() SystemUnderTest
NewDefault will return a default SUT for this repo.
Click to show internal directories.
Click to hide internal directories.