Documentation ¶
Index ¶
- func CreateRouteAndConfig(t *testing.T, clients *test.Clients, image string, options *test.Options) (test.ResourceNames, error)
- func DiagnoseMeEvery(t *testing.T, duration time.Duration, clients *test.Clients) chan struct{}
- func ScaleToWithin(t *testing.T, scale int, duration time.Duration, latencies Latencies)
- func Setup(t *testing.T) *test.Clients
- func SetupAlternativeNamespace(t *testing.T) *test.Clients
- func SetupWithNamespace(t *testing.T, namespace string) *test.Clients
- func WaitForScaleToZero(t *testing.T, deploymentName string, clients *test.Clients) error
- type Latencies
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateRouteAndConfig ¶
func CreateRouteAndConfig(t *testing.T, clients *test.Clients, image string, options *test.Options) (test.ResourceNames, error)
CreateRouteAndConfig will create Route and Config objects using clients. The Config object will serve requests to a container started from the image at imagePath.
func DiagnoseMeEvery ¶
DiagnoseMeEvery queries the k8s controller and reports the pod stats to the logger, every `duration` period.
func ScaleToWithin ¶
func SetupAlternativeNamespace ¶
SetupAlternativeNamespace creates the client objects needed in e2e tests under the alternative namespace.
func SetupWithNamespace ¶
SetupWithNamespace creates the client objects needed in the e2e tests under the specified namespace.
Types ¶
type Latencies ¶
type Latencies interface { // Add takes the name of this measurement and the time at which it began. // This should be called at the moment of completion, so that duration may // be computed with `time.Since(start)`. We use this signature to that this // function is suitable for use in a `defer`. Add(name string, start time.Time) }
Latencies is an interface for providing mechanisms for recording timings for the parts of the scale test.
Click to show internal directories.
Click to hide internal directories.