test

package
v0.0.0-...-7ec52c9 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2019 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertGetRequest

func AssertGetRequest(t *testing.T, url string, expectedStatusCode int, expectedBody []byte)

AssertGetRequest ensures that the endpoint `url` can be accessed with an HTTP GET request.

func E2EBootstrap

func E2EBootstrap(t *testing.T) (*framework.TestCtx, *framework.Framework, string)

E2EBootstrap sets up an e2e test adding CRDs, initializing the test ctx and deploying the operator

func WaitForKnativeServiceReady

func WaitForKnativeServiceReady(t *testing.T, servingClient *servingv1alpha1.ServingV1alpha1Interface, name string, namespace string, retryInterval, timeout time.Duration) *v1alpha1.Service

WaitForKnativeServiceReady waits for a Knative service to become available, failing if the service is not available after the provided Duration

func WaitForKnativeServiceReadyDefault

func WaitForKnativeServiceReadyDefault(t *testing.T, servingClient *servingv1alpha1.ServingV1alpha1Interface, name string, namespace string) *v1alpha1.Service

WaitForKnativeServiceReadyDefault waits for a Knative service to become available, failing if the service is not available after the default timeout.

Types

This section is empty.

Jump to

Keyboard shortcuts

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