tests

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
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.

View Source
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.

View Source
const Root = "../../tests/"

Root is rootdir for test files.

Variables

View Source
var ErrTestTimeout = errors.New("tests timeout exceeded")

Functions

func GetContext

func GetContext(t *testing.T) context.Context

func RequireCluster

func RequireCluster(t *testing.T)

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

func RequireLocalPrometheus(t *testing.T)

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

func RequireRemoteCharts(t *testing.T)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL