tests

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2020 License: Apache-2.0 Imports: 15 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(dir string) scapiv1alpha2.ScorecardTestResult

BundleValidationTest validates an on-disk bundle

func CRDsHaveResourcesTest

func CRDsHaveResourcesTest(bundle *apimanifests.Bundle) scapiv1alpha2.ScorecardTestResult

CRDsHaveResourcesTest verifies CRDs have resources listed in its owned CRDs section

func CRDsHaveValidationTest

func CRDsHaveValidationTest(bundle *apimanifests.Bundle) scapiv1alpha2.ScorecardTestResult

CRDsHaveValidationTest verifies all CRDs have a validation section

func CheckResources

CheckResources verified if the owned CRDs have the resources field.

func CheckSpecTest

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) scapiv1alpha2.ScorecardTestResult

SpecDescriptorsTest verifies all spec fields have descriptors

func StatusDescriptorsTest

func StatusDescriptorsTest(bundle *apimanifests.Bundle) scapiv1alpha2.ScorecardTestResult

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