runner

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertEqual

func AssertEqual(key, value string, data []byte) (string, bool)

AssertEqual returns true if the given key matches the value provided.

func AssertExist

func AssertExist(key string, data []byte) (string, bool)

AssertExist returns true if the given key exists.

func Run added in v0.3.0

func Run(cfg *config.Config, chrt *chart.Chart) (*report.Report, error)

Run takes a config and Helm chart as input, runs through all tests, and returns the report object.

On YAML or template rendering errors, it returns an error object without the report.

func RunAssert

func RunAssert(manifest *manifest.Manifest, assert *config.Assert) report.Assert

RunAssert executes all asserts against all sources.

func RunTest

func RunTest(manifests []manifest.Manifest, test *config.Test) report.Test

RunTest applies the test configuration to the templates and executes all defined asserts.

Types

This section is empty.

Jump to

Keyboard shortcuts

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