helmtest

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package helmtest provides testing utilities for Helm-related operations.

This package offers test helpers, mocks, and fixtures for testing code that interacts with Helm charts and repositories. It simplifies the process of writing tests for Helm-related functionality.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChartClient

type ChartClient interface {
	Pull(ctx context.Context, chart, repoURL, targetRevision string, repos helmrepo.Getter) (*helm.PulledChart, error)
}
var (
	DefaultTestClient ChartClient
	SlowTestClient    ChartClient

	ErrTestClient = errors.New("test client failure")
)

type TestClient

type TestClient struct {
	BaseClient ChartClient
	Latency    time.Duration
}

func (*TestClient) Pull

func (c *TestClient) Pull(
	ctx context.Context,
	chart, repo, version string,
	repos helmrepo.Getter,
) (*helm.PulledChart, error)

type TestPathEncoder

type TestPathEncoder struct{}

func (*TestPathEncoder) Decode

func (*TestPathEncoder) Decode(s string) (string, error)

func (*TestPathEncoder) Encode

func (*TestPathEncoder) Encode(s string) string

Jump to

Keyboard shortcuts

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