Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // FIXME: Interval is set to 200 msec, as lower values will result in errors: knative/eventing#2357 // Interval = 10 * time.Millisecond Interval = 200 * time.Millisecond )
Functions ¶
func AssertEventProber ¶
AssertEventProber will send finish event and then verify if all events propagated well
Types ¶
type Config ¶
type Config struct { Namespace string Interval time.Duration Serving ServingConfig FinishedSleep time.Duration FailOnErrors bool }
Config represents a configuration for prober
type Prober ¶
type Prober interface { // Verify will verify prober state after finished has been send Verify() ([]error, int) // Finish send finished event Finish() // ReportErrors will reports found errors in proper way ReportErrors(t *testing.T, errors []error) // contains filtered or unexported methods }
Prober is the interface for a prober, which checks the result of the probes when stopped.
func RunEventProber ¶
RunEventProber starts a single Prober of the given domain.
type Report ¶
type Report struct { State string `json:"state"` Events int `json:"events"` Thrown []string `json:"thrown"` }
Report represents a receiver JSON report
type ServingConfig ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.