tests

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2020 License: Apache-2.0 Imports: 18 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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