Documentation
¶
Index ¶
Constants ¶
const ClusterEnv = "HELMTIDE_TEST_CLUSTER"
ClusterEnv names the kubeconfig, by absolute path, to run cluster-dependent tests against. Setting it both selects the cluster and turns the isolation off; nothing else does either.
const RemoteChartsEnv = "HELMTIDE_TEST_REMOTE_CHARTS"
RemoteChartsEnv opts a test into pulling charts from the public internet (bitnami, prometheus-community, jetstack, raw gists, ...). Those repositories are outside our control: bitnami moved its public catalog to an archive in 2025, gists get deleted, indexes rate-limit. A release must not go red because someone else's CDN blinked, so the network-dependent suites inherited from upstream are opt-in and nothing but this variable turns them on.
const Root = "../../tests/"
Root is rootdir for test files.
Variables ¶
var ErrTestTimeout = errors.New("tests timeout exceeded")
Functions ¶
func RequireCluster ¶
RequireCluster skips a test unless a cluster was explicitly provided, so a suite that needs one is opted into rather than silently borrowing whichever cluster the developer happens to be logged into.
func RequireLocalPrometheus ¶ added in v1.3.0
RequireLocalPrometheus skips a test whose monitors query Prometheus at localhost:9090 unless something is actually listening there. Fixture 20 pins that address, which only answers when the test host can reach the deployed Prometheus over localhost -- true when the suite runs on the cluster node (a local kind cluster, or with a port-forward), false in a split runner/cluster topology where the cluster lives on another host. Rather than fail on the topology, skip with a reason; the hermetic prometheus monitor coverage in pkg/action already exercises the real client against an in-process stub.
func RequireRemoteCharts ¶ added in v1.2.0
RequireRemoteCharts skips a test unless pulling charts from the public internet was explicitly requested. Symmetric to RequireCluster: the hermetic suite (local charts + an in-cluster registry) always runs, while the tests that reach out to third-party chart repos only run when asked to.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
Command postrender is a deterministic post-renderer for the integration tests.
|
Command postrender is a deterministic post-renderer for the integration tests. |