testutils

package
v0.20.1 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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

type MetadataV1Tree added in v0.10.0

type MetadataV1Tree Tree

func (MetadataV1Tree) ImageSets added in v0.10.0

func (t MetadataV1Tree) ImageSets() string

func (MetadataV1Tree) Legacy added in v0.10.0

func (t MetadataV1Tree) Legacy() string

type RootTree added in v0.10.0

type RootTree Tree

func RootDir

func RootDir() RootTree

func (RootTree) TestData added in v0.10.0

func (t RootTree) TestData() TestDataTree

type TestDataTree added in v0.10.0

type TestDataTree Tree

func (TestDataTree) Bundles added in v0.10.0

func (t TestDataTree) Bundles() string

func (TestDataTree) MetadataV1 added in v0.10.0

func (t TestDataTree) MetadataV1() MetadataV1Tree

func (TestDataTree) MetadataV2 added in v0.10.0

func (t TestDataTree) MetadataV2() string

func (TestDataTree) Validators added in v0.10.0

func (t TestDataTree) Validators() string

type Tree added in v0.10.0

type Tree string

Implement a chaining directory interface. Examples:

RootDir().TestData().MetadataV1().Legacy()
RootDir().TestData().MetadataV2()
RootDir().Bundles()

Jump to

Keyboard shortcuts

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