# Packages
No description provided by the author
# Functions
ControllerManagerOptAdditionalWatchNamespace adds the provided namespace to controller manager's watch namespaces if it's not there yet.
ControllerManagerOptFlagUseLastValidConfigForFallback sets --use-last-valid-config-for-fallback controller manager flag.
No description provided by the author
No description provided by the author
DefaultHTTPClient returns a client that should be used by default in tests.
DeployGateway creates a default gateway, accepts a variadic set of options, and finally deploys it on the Kubernetes cluster by means of the gateway client given as arg.
DeployGatewayClass creates a default gatewayClass, accepts a variadic set of options, and finally deploys it on the Kubernetes cluster by means of the gateway client given as arg.
DistributionOfMapValues returns a map of the values in the given counter map and the relative frequency of each value.
DumpDiagnosticsIfFailed dumps the diagnostics if the test failed.
EventuallyExpectHTTP404WithNoRoute is used to check whether a given http response is (specifically) a Kong 404.
EventuallyGETPath makes a GET request to the Kong proxy multiple times until either the request starts to respond with the given status code and contents present in the response body, or until timeout occurs according to ingressWait time limits.
ExitOnErr is a wrapper around exitOnErrorWithCode that defaults to using the ExitCodeEnvSetupFailed exit code.
ExitOnErrWithCode is a helper function meant for us in the test.Main to simplify failing and exiting the tests under unrecoverable error conditions.
GenerateKongBuilder returns a Kong KTF addon builder, a string slice of controller arguments needed to interact with the addon and an error.
GetGatewayIsLinkedCallback returns a callback that checks if the specific Route (HTTP, TCP, TLS, or UDP) is correctly linked to a supported gateway.
GetGatewayIsUnlinkedCallback returns a callback that checks if the specific Route (HTTP, TCP, TLS, or UDP) is correctly unlinked from a supported gateway.
GetKongDBMode returns kong dbmode using the provided Admin API URL.
GetKongLicenses fetches all licenses applied to Kong gateway.
GetKongRootConfig gets version and root configurations of Kong from / endpoint of the provided Admin API URL.
GetKongRouterFlavor gets router flavor of Kong using the provided Admin API URL.
GetKongVersion returns kong version using the provided Admin API URL.
No description provided by the author
LabelValueForTest returns a sanitized test name that can be used as kubernetes label value.
MatchRespByStatusAndContent returns a responseMatcher that matches the given status code and body contents.
MustHTTPRequest creates a request with provided parameters and it fails the test that it was called in when request creation fails.
Namespace provides the Namespace provisioned for each test case given their t.Name as the "testCase".
No description provided by the author
RemoveCluster removes the cluster if it was created by the test suite.
RetryableHTTPClient wraps a client with retry logic.
Setup is a test helper function which: - creates a cluster cleaner which will be used to to clean up test resources automatically after the test finishes and creates a new namespace for the test to use.
TeardownCluster dumps the diagnostics from the test cluster if the test failed and performs a cluster removal.
ValidateMinimalSupportedKongVersion returns version of Kong Gateway running at the provided Admin API URL.
WaitForDeploymentRollout waits for the deployment to roll out in the cluster.
WithResolveHostTo sets the host to resolve to (equivalent of `curl --resolve`).
WithRootCAs sets the root CAs for the client.
# Constants
DefaultGatewayName is the default name for the Gateways created during tests.
# Structs
No description provided by the author
TCPProxy is a simple server that forwards TCP connections to a given destination.
No description provided by the author
# Type aliases
No description provided by the author
No description provided by the author
HTTPClientOption is a functional option for configuring the HTTP client.
ResponseMatcher is a function that returns match-name and whether the response matches the provided criteria.