tests

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OLMBundleValidationTest   = "olm-bundle-validation"
	OLMCRDsHaveValidationTest = "olm-crds-have-validation"
	OLMCRDsHaveResourcesTest  = "olm-crds-have-resources"
	OLMSpecDescriptorsTest    = "olm-spec-descriptors"
	OLMStatusDescriptorsTest  = "olm-status-descriptors"
)
View Source
const (
	BasicCheckSpecTest = "basic-check-spec"
)

Variables

This section is empty.

Functions

func BundleValidationTest

func BundleValidationTest(bundleRoot string, metadata registryutil.Labels) scapiv1alpha3.TestStatus

BundleValidationTest validates an on-disk bundle

func CRDsHaveResourcesTest

func CRDsHaveResourcesTest(bundle *apimanifests.Bundle) scapiv1alpha3.TestStatus

CRDsHaveResourcesTest verifies CRDs have resources listed in its owned CRDs section

func CRDsHaveValidationTest

func CRDsHaveValidationTest(bundle *apimanifests.Bundle) scapiv1alpha3.TestStatus

CRDsHaveValidationTest verifies all CRDs have a validation section

func CheckResources

CheckResources verified if the owned CRDs have the resources field.

func CheckSpecTest

func CheckSpecTest(bundle *apimanifests.Bundle) scapiv1alpha3.TestStatus

CheckSpecTest verifies that CRs have a spec block

func GetCRs

func GetCRs(bundle *apimanifests.Bundle) (crList []unstructured.Unstructured, err error)

GetCRs parses a Bundle's CSV for CRs

func SpecDescriptorsTest

func SpecDescriptorsTest(bundle *apimanifests.Bundle) scapiv1alpha3.TestStatus

SpecDescriptorsTest verifies all spec fields have descriptors

func StatusDescriptorsTest

func StatusDescriptorsTest(bundle *apimanifests.Bundle) scapiv1alpha3.TestStatus

StatusDescriptorsTest verifies all CRDs have status descriptors

Types

This section is empty.

Jump to

Keyboard shortcuts

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