validation

package
v0.0.0-...-02c6b06 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateConfig

func ValidateConfig(fldPath *field.Path, config tmv1beta1.ConfigElement) field.ErrorList

ValidateConfig validates a testrun config element.

func ValidateConfigList

func ValidateConfigList(fldPath *field.Path, configs []tmv1beta1.ConfigElement) field.ErrorList

ValidateConfigList validates a list of configurations.

func ValidateKubeconfig

func ValidateKubeconfig(fldPath *field.Path, kubeconfig *strconf.StringOrConfig) field.ErrorList

ValidateKubeconfig validates a kubeconfig definition.

func ValidateKubeconfigs

func ValidateKubeconfigs(fldPath *field.Path, kubeconfigs tmv1beta1.TestrunKubeconfigs) field.ErrorList

ValidateKubeconfigs validates all testrun kubeconfigs

func ValidateLabelName

func ValidateLabelName(fldPath *field.Path, label string) field.ErrorList

ValidateLabelName validates the TestDefinition label string. label starting with "!" are not valid as this is considered to mean exclude label

func ValidateLocationSet

func ValidateLocationSet(fldPath *field.Path, set tmv1beta1.LocationSet) field.ErrorList

ValidateLocationSet validates a location set.

func ValidateLocationSets

func ValidateLocationSets(fldPath *field.Path, sets []tmv1beta1.LocationSet) field.ErrorList

ValidateLocationSets validates a list of locationsets.

func ValidateLocations

func ValidateLocations(fldPath *field.Path, spec tmv1beta1.TestrunSpec) field.ErrorList

ValidateLocations validates testlocations.

func ValidateName

func ValidateName(fldPath *field.Path, name string) field.ErrorList

ValidateName validates the TestDefinition name. Therefore Kubernetes naming conventions and elasticsearch naming is considered. es conform: must not contain the #, \, /, *, ?, ", <, >, |, , must not start with _, - or + must no be . or .. must be lowercase

func ValidateStep

func ValidateStep(fldPath *field.Path, definition tmv1beta1.StepDefinition) field.ErrorList

ValidateStep validates a step definition

func ValidateTestDefinition

func ValidateTestDefinition(fldPath *field.Path, td *tmv1beta1.TestDefinition) field.ErrorList

ValidateTestDefinition validates a testdefinition.

func ValidateTestFlow

func ValidateTestFlow(fldPath *field.Path, testflow tmv1beta1.TestFlow) field.ErrorList

ValidateTestFlow validates the structure of a testflow.

func ValidateTestLocation

func ValidateTestLocation(fldPath *field.Path, l tmv1beta1.TestLocation) field.ErrorList

ValidateTestLocation validates a test location of a testrun

func ValidateTestLocations

func ValidateTestLocations(fldPath *field.Path, l []tmv1beta1.TestLocation) field.ErrorList

ValidateTestLocations validates the deprecated test locations.

func ValidateTestrun

func ValidateTestrun(tr *tmv1beta1.Testrun) error

ValidateTestrun validates a testrun.

func ValidateTestrunSpec

func ValidateTestrunSpec(spec tmv1beta1.TestrunSpec) field.ErrorList

ValidateTestrunSpec validates a testrun spec

Types

This section is empty.

Jump to

Keyboard shortcuts

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