testutils

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ReferenceAddonImageSetDir   = path.Join(AddonsImagesetDir, "reference-addon")
	ReferenceAddonIndexImageDir = path.Join(AddonsIndexImageDir, "reference-addon")
)
View Source
var (
	RootDir             string = getRootDir()
	TestdataDir         string = path.Join(RootDir, "internal", "testdata")
	AddonsImagesetDir   string = path.Join(TestdataDir, "addons-imageset")
	AddonsIndexImageDir string = path.Join(TestdataDir, "addons-indeximage")
)

Functions

func DefaultSucceedingCandidates added in v0.6.0

func DefaultSucceedingCandidates() ([]types.MetaBundle, error)

DefaultSucceedingCandidates - returns a slice of valid metaBundles that are supposed to pass all validators successfully. If it is not the case, please make the required adjustments.

func GetReferenceAddonStage added in v0.6.0

func GetReferenceAddonStage() (*singleton, error)

GetReferenceAddonStage - uses singleton pattern to avoid loading yaml manifests over and over currently supports: - (DEPRECATED) static indexImage reference-addon - imageSet reference-addon

func GetStringLiteralRef added in v0.6.0

func GetStringLiteralRef(s string) *string

func NewBundle added in v0.7.0

func NewBundle(name string, yamlFilePaths ...string) (registry.Bundle, error)

func RemoveDir added in v0.6.0

func RemoveDir(downloadDir string)

func YamlToDynamicObj added in v0.7.0

func YamlToDynamicObj(yamlPath string) (unstructured.Unstructured, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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