Documentation
¶
Index ¶
- Constants
- func Gateway(ctx context.Context, t *testing.T, client client.Client) (gatewayapi.Gateway, gatewayapi.GatewayClass)
- func GatewayUsingGatewayClass(ctx context.Context, t *testing.T, client client.Client, ...) gatewayapi.Gateway
- func HTTPRoutes(ctx context.Context, t *testing.T, ctrlClient ctrlclient.Client, ...) []*gatewayapi.HTTPRoute
- func Namespace(ctx context.Context, t *testing.T, cl client.Client) *corev1.Namespace
Constants ¶
View Source
const PublishServiceName = "publish-svc"
PublishServiceName is the name of the publish service used in Gateway API tests.
Variables ¶
This section is empty.
Functions ¶
func Gateway ¶
func Gateway(ctx context.Context, t *testing.T, client client.Client) (gatewayapi.Gateway, gatewayapi.GatewayClass)
Gateway deploys a Gateway, GatewayClass and an ingress service for use in tests.
func GatewayUsingGatewayClass ¶
func GatewayUsingGatewayClass(ctx context.Context, t *testing.T, client client.Client, gwc gatewayapi.GatewayClass) gatewayapi.Gateway
GatewayUsingGatewayClass deploys a Gateway, GatewayClass and an ingress service for use in tests.
func HTTPRoutes ¶
func HTTPRoutes( ctx context.Context, t *testing.T, ctrlClient ctrlclient.Client, gw gatewayapi.Gateway, numOfRoutes int, ) []*gatewayapi.HTTPRoute
HTTPRoutes creates a number of dummy HTTPRoutes for the given Gateway.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.