Documentation
¶
Index ¶
- func ConformanceGatewayType() string
- func ConformanceSkipTests() []string
- func DataPlaneImage() string
- func IsCI() bool
- func IsCalicoCNIDisabled() bool
- func IsCertManagerDisabled() bool
- func IsInstallingCRDsDisabled() bool
- func IsMetalLBDisabled() bool
- func IsTelepresenceDisabled() bool
- func IsWebhookEnabled() bool
- func KeepTestCluster() bool
- func KongLicenseData() string
- func KonnectAccessToken() string
- func KonnectServerURL() string
- func SkipCleanup() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConformanceGatewayType ¶ added in v2.2.0
func ConformanceGatewayType() string
ConformanceGatewayType returns the gateway type to run in conformance tests. It reads the KONG_TEST_CONFORMANCE_GATEWAY_TYPE environment variable. Valid values are "standard", "hybrid". If not set, it defaults to "standard".
func ConformanceSkipTests ¶ added in v2.3.0
func ConformanceSkipTests() []string
ConformanceSkipTests returns an extra list of conformance test short names to skip, on top of the built-in skip lists. It reads the comma separated KONG_TEST_CONFORMANCE_SKIP_TESTS environment variable, e.g. "HTTPRouteReferenceGrant,HTTPRouteRedirectPort". This lets a local run drop the gotest -run filter entirely and instead exclude flaky or undesired tests. Whitespace around each name is trimmed and empty entries are ignored.
func DataPlaneImage ¶ added in v2.2.0
func DataPlaneImage() string
DataPlaneImage returns the data plane image to use in the test environment. It reads the KONG_TEST_DATA_PLANE_IMAGE environment variable, and defaults to consts.DefaultDataPlaneImage if not set.
func IsCI ¶ added in v2.1.1
func IsCI() bool
IsCI indicates whether or not the tests are running in a CI environment.
func IsCalicoCNIDisabled ¶
func IsCalicoCNIDisabled() bool
IsCalicoCNIDisabled returns true if the Calico CNI plugin is disabled in the test environment.
func IsCertManagerDisabled ¶
func IsCertManagerDisabled() bool
IsCertManagerDisabled returns true if the Cert-Manager is disabled in the test environment.
func IsInstallingCRDsDisabled ¶
func IsInstallingCRDsDisabled() bool
IsInstallingCRDsDisabled returns true if installing CRDs is disabled in the test environment.
func IsMetalLBDisabled ¶
func IsMetalLBDisabled() bool
IsMetalLBDisabled returns true if the MetalLB is disabled in the test environment.
func IsTelepresenceDisabled ¶
func IsTelepresenceDisabled() bool
IsTelepresenceDisabled returns true if the telepresence is disabled in the test environment.
func IsWebhookEnabled ¶
func IsWebhookEnabled() bool
IsWebhookEnabled returns true if the webhook is enabled in the test environment.
func KeepTestCluster ¶ added in v2.1.1
func KeepTestCluster() bool
KeepTestCluster indicates whether the caller wants the cluster created by the test suite to persist after the test for inspection. This has no effect when an existing cluster is provided, as cleanup is not performed for existing clusters.
func KongLicenseData ¶ added in v2.3.0
func KongLicenseData() string
KongLicenseData returns the raw Kong Enterprise license JSON for the test environment, as provided by the KONG_LICENSE_DATA environment variable (e.g. by the Kong/kong-license GitHub Action). Returns an empty string if no license is configured.
func KonnectAccessToken ¶
func KonnectAccessToken() string
KonnectAccessToken returns the Konnect access token for the test environment.
func KonnectServerURL ¶
func KonnectServerURL() string
KonnectServerURL returns the Konnect server URL for the test environment.
func SkipCleanup ¶ added in v2.1.1
func SkipCleanup() bool
SkipCleanup indicates whether or not the test environment should skip cleanup, either because it's running in a CI environment or because the user has explicitly requested to keep the test cluster.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
crdsvalidation
|
|
|
kcfg
Package kcfg (Kubernetes configuration) is a single source of truth for common Kubernetes configuration used by tests - CRDs, RBAC, namespaces, etc.
|
Package kcfg (Kubernetes configuration) is a single source of truth for common Kubernetes configuration used by tests - CRDs, RBAC, namespaces, etc. |
|
mocks
|
|