test

package
v0.0.0-...-6a4f5cd Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 7 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Case

type Case struct {
	Name            string
	TemplateOptions *chart.TemplateOptions
	OmitNamedChecks []string
}

type Checks

type Checks []checker.ChainedCheckFunc

type CoverageOptions

type CoverageOptions struct {
	IncludeSubcharts bool
	Disabled         bool
}

type FailureCase

type FailureCase struct {
	Name            string
	TemplateOptions *chart.TemplateOptions

	Covers         []string
	FailureMessage string
}

type NamedCheck

type NamedCheck struct {
	Name   string
	Checks Checks
	Covers []string
}

NamedCheck is a check that run on every `helm template` call identified by the test Suite

type Suite

type Suite struct {
	ChartPath     string
	DefaultValues *chart.Values
	PreCheck      func(*checker.TestContext)
	NamedChecks   []NamedCheck
	Cases         []Case
	FailureCases  []FailureCase
}

func (*Suite) Run

func (s *Suite) Run(t *testing.T, opts *SuiteOptions)

type SuiteOptions

type SuiteOptions struct {
	HelmLint *chart.HelmLintOptions
	YAMLLint YamlLintOptions
	Coverage CoverageOptions
}

func GetRancherOptions

func GetRancherOptions() *SuiteOptions

type YamlLintOptions

type YamlLintOptions struct {
	Enabled       bool
	Configuration string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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