Documentation ¶
Overview ¶
Code generated by hack/generators/testcases-registration/main.go. DO NOT EDIT.
Index ¶
- func CreateValidatingWebhook(ctx context.Context, k8sClient *kubernetesclient.Clientset, webhookURL string, ...) error
- func DefaultControllerConfigForTests() manager.Config
- func Expect404WithNoRouteFunc(t *testing.T, ctx context.Context, url string) func() bool
- func GetClients() testutils.K8sClients
- func GetCtx() context.Context
- func GetEnv() environments.Environment
- func GetEnvValueByName(envs []corev1.EnvVar, name string) string
- func GetEnvValueFromByName(envs []corev1.EnvVar, name string) *corev1.EnvVarSource
- func GetKongPluginImageRegistryCredentialsForTests() string
- func GetTestSuite() []func(*testing.T)
- func GetVolumeByName(volumes []corev1.Volume, name string) *corev1.Volume
- func GetVolumeMountsByVolumeName(volumeMounts []corev1.VolumeMount, name string) []corev1.VolumeMount
- func TestAIGatewayCreation(t *testing.T)
- func TestControlPlaneEssentials(t *testing.T)
- func TestControlPlaneUpdate(t *testing.T)
- func TestControlPlaneWhenNoDataPlane(t *testing.T)
- func TestDataPlaneBlueGreenHorizontalScaling(t *testing.T)
- func TestDataPlaneBlueGreenRollout(t *testing.T)
- func TestDataPlaneBlueGreen_ResourcesNotDeletedUntilOwnerIsRemoved(t *testing.T)
- func TestDataPlaneEssentials(t *testing.T)
- func TestDataPlaneHorizontalScaling(t *testing.T)
- func TestDataPlanePodDisruptionBudget(t *testing.T)
- func TestDataPlaneServiceExternalTrafficPolicy(t *testing.T)
- func TestDataPlaneUpdate(t *testing.T)
- func TestDataPlaneValidation(t *testing.T)
- func TestDataPlaneVolumeMounts(t *testing.T)
- func TestGatewayClassCreation(t *testing.T)
- func TestGatewayClassUpdates(t *testing.T)
- func TestGatewayConfigurationEssentials(t *testing.T)
- func TestGatewayDataPlaneNetworkPolicy(t *testing.T)
- func TestGatewayEssentials(t *testing.T)
- func TestGatewayMultiple(t *testing.T)
- func TestGatewayProvisionDataPlaneFail(t *testing.T)
- func TestGatewayWithMultipleListeners(t *testing.T)
- func TestHTTPRoute(t *testing.T)
- func TestHTTPRouteWithTLS(t *testing.T)
- func TestIngressEssentials(t *testing.T)
- func TestKongPluginInstallationEssentials(t *testing.T)
- func TestKonnectEntities(t *testing.T)
- func TestMain(m *testing.M, setUpAndRunManager SetUpAndRunManagerFunc)
- func TestManualGatewayUpgradesAndDowngrades(t *testing.T)
- func TestScalingDataPlaneThroughGatewayConfiguration(t *testing.T)
- func URLForService(ctx context.Context, cluster clusters.Cluster, nsn types.NamespacedName, ...) (*url.URL, error)
- type SetUpAndRunManagerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateValidatingWebhook ¶
func CreateValidatingWebhook(ctx context.Context, k8sClient *kubernetesclient.Clientset, webhookURL string, ca, cert, key []byte) error
CreateValidatingWebhook creates validating webhook for gateway operator.
func DefaultControllerConfigForTests ¶
DefaultControllerConfigForTests returns a default configuration for the controller manager used in tests. It can be adjusted by overriding arbitrary fields in the returned config.
func Expect404WithNoRouteFunc ¶
Expect404WithNoRouteFunc is used to check whether a given URL responds with 404 and a standard Kong no route message.
func GetClients ¶
func GetClients() testutils.K8sClients
GetClients returns the Kubernetes clients used by the test suite. It allows interaction in tests with environment bootstrapped by TestMain
func GetCtx ¶
GetCtx returns the context used by the test suite. It allows interaction in tests with environment bootstrapped by TestMain.
func GetEnv ¶
func GetEnv() environments.Environment
GetEnv returns the environment used by the test suite. It allows interaction in tests with environment bootstrapped by TestMain
func GetEnvValueByName ¶
GetEnvValueByName returns the corresponding value of LAST item with given name. returns empty string if the name not appeared.
func GetEnvValueFromByName ¶
func GetEnvValueFromByName(envs []corev1.EnvVar, name string) *corev1.EnvVarSource
GetEnvValueFromByName returns the corresponding ValueFrom pointer of LAST item with given name. returns nil if the name not appeared.
func GetKongPluginImageRegistryCredentialsForTests ¶ added in v1.4.0
func GetKongPluginImageRegistryCredentialsForTests() string
func GetTestSuite ¶
GetTestSuite returns all integration tests that should be run.
func GetVolumeMountsByVolumeName ¶
func GetVolumeMountsByVolumeName(volumeMounts []corev1.VolumeMount, name string) []corev1.VolumeMount
func TestAIGatewayCreation ¶
func TestControlPlaneUpdate ¶
func TestDataPlaneEssentials ¶
func TestDataPlanePodDisruptionBudget ¶ added in v1.4.0
func TestDataPlaneServiceExternalTrafficPolicy ¶ added in v1.4.0
func TestDataPlaneUpdate ¶
func TestDataPlaneValidation ¶
func TestGatewayClassUpdates ¶
func TestGatewayEssentials ¶
func TestGatewayMultiple ¶
TestGatewayMultiple checks essential Gateway behavior with multiple Gateways of the same class. Ensure DataPlanes only serve routes attached to their Gateway.
func TestHTTPRoute ¶ added in v1.2.2
func TestHTTPRouteWithTLS ¶ added in v1.2.2
func TestIngressEssentials ¶
func TestKongPluginInstallationEssentials ¶ added in v1.4.0
func TestKonnectEntities ¶ added in v1.4.0
func TestMain ¶
func TestMain( m *testing.M, setUpAndRunManager SetUpAndRunManagerFunc, )
TestMain is the entrypoint for the integration test suite. It bootstraps the testing environment and runs the test suite on instance of KGO constructed by the argument setUpAndRunManager. This callback is called, when the whole cluster is ready and the controller manager can be started. Thus it can be used e.g. to apply additional resources to the cluster too.
Types ¶
type SetUpAndRunManagerFunc ¶
type SetUpAndRunManagerFunc func(startedChan chan struct{}) error
SetUpAndRunManagerFunc is the type of the callback that is passed to TestMain. This id called to set up and run the controller manager. Returned error should be a result of calling manager.Run.
Source Files ¶
- suite.go
- test_aigateway.go
- test_controlplane.go
- test_dataplane.go
- test_dataplane_bluegreen.go
- test_gateway.go
- test_gatewayclass.go
- test_gatewayconfiguration.go
- test_httproute.go
- test_ingress.go
- test_kongplugininstallation.go
- test_konnect_entities.go
- test_manual_upgrades_and_downgrades.go
- test_validating.go
- utils.go
- zz_generated_registered_testcases.go