Documentation ¶
Overview ¶
Package v1 contains API Schema definitions for the test suites v1 API group +kubebuilder:object:generate=true +groupName=tests.testkube.io
Index ¶
- Variables
- type TestSuite
- func (dst *TestSuite) ConvertFrom(srcRaw conversion.Hub) error
- func (src *TestSuite) ConvertTo(dstRaw conversion.Hub) error
- func (in *TestSuite) DeepCopy() *TestSuite
- func (in *TestSuite) DeepCopyInto(out *TestSuite)
- func (in *TestSuite) DeepCopyObject() runtime.Object
- func (t *TestSuite) SetupWebhookWithManager(mgr ctrl.Manager) error
- type TestSuiteList
- type TestSuiteSpec
- type TestSuiteStatus
- type TestSuiteStepDelay
- type TestSuiteStepExecute
- type TestSuiteStepSpec
- type TestSuiteStepType
- type Variable
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "tests.testkube.io", Version: "v1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
This section is empty.
Types ¶
type TestSuite ¶
type TestSuite struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec TestSuiteSpec `json:"spec,omitempty"` Status TestSuiteStatus `json:"status,omitempty"` }
TestSuite is the Schema for the testsuites API
func (*TestSuite) ConvertFrom ¶
func (dst *TestSuite) ConvertFrom(srcRaw conversion.Hub) error
ConvertFrom converts Script from the Hub version (v2) to this version.
func (*TestSuite) ConvertTo ¶
func (src *TestSuite) ConvertTo(dstRaw conversion.Hub) error
ConvertTo converts this Script to the Hub version (v2).
func (*TestSuite) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestSuite.
func (*TestSuite) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TestSuite) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TestSuiteList ¶
type TestSuiteList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []TestSuite `json:"items"` }
TestSuiteList contains a list of TestSuite
func (*TestSuiteList) DeepCopy ¶
func (in *TestSuiteList) DeepCopy() *TestSuiteList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestSuiteList.
func (*TestSuiteList) DeepCopyInto ¶
func (in *TestSuiteList) DeepCopyInto(out *TestSuiteList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TestSuiteList) DeepCopyObject ¶
func (in *TestSuiteList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TestSuiteSpec ¶
type TestSuiteSpec struct { // Before steps is list of tests which will be sequentially orchestrated Before []TestSuiteStepSpec `json:"before,omitempty"` // Steps is list of tests which will be sequentially orchestrated Steps []TestSuiteStepSpec `json:"steps,omitempty"` // After steps is list of tests which will be sequentially orchestrated After []TestSuiteStepSpec `json:"after,omitempty"` Repeats int `json:"repeats,omitempty"` Description string `json:"description,omitempty"` // schedule in cron job format for scheduled test execution Schedule string `json:"schedule,omitempty"` // DEPRECATED execution params passed to executor Params map[string]string `json:"params,omitempty"` // Variables are new params with secrets attached Variables map[string]Variable `json:"variables,omitempty"` }
TestSuiteSpec defines the desired state of TestSuite
func (*TestSuiteSpec) DeepCopy ¶
func (in *TestSuiteSpec) DeepCopy() *TestSuiteSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestSuiteSpec.
func (*TestSuiteSpec) DeepCopyInto ¶
func (in *TestSuiteSpec) DeepCopyInto(out *TestSuiteSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TestSuiteStatus ¶
type TestSuiteStatus struct { }
TestSuiteStatus defines the observed state of TestSuite
func (*TestSuiteStatus) DeepCopy ¶
func (in *TestSuiteStatus) DeepCopy() *TestSuiteStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestSuiteStatus.
func (*TestSuiteStatus) DeepCopyInto ¶
func (in *TestSuiteStatus) DeepCopyInto(out *TestSuiteStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TestSuiteStepDelay ¶
type TestSuiteStepDelay struct { // Duration in ms Duration int32 `json:"duration,omitempty"` }
TestSuiteStepDelay contains step delay parameters
func (*TestSuiteStepDelay) DeepCopy ¶
func (in *TestSuiteStepDelay) DeepCopy() *TestSuiteStepDelay
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestSuiteStepDelay.
func (*TestSuiteStepDelay) DeepCopyInto ¶
func (in *TestSuiteStepDelay) DeepCopyInto(out *TestSuiteStepDelay)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TestSuiteStepExecute ¶
type TestSuiteStepExecute struct { Namespace string `json:"namespace,omitempty"` Name string `json:"name,omitempty"` StopOnFailure bool `json:"stopOnFailure,omitempty"` }
TestSuiteStepExecute defines step to be executed
func (*TestSuiteStepExecute) DeepCopy ¶
func (in *TestSuiteStepExecute) DeepCopy() *TestSuiteStepExecute
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestSuiteStepExecute.
func (*TestSuiteStepExecute) DeepCopyInto ¶
func (in *TestSuiteStepExecute) DeepCopyInto(out *TestSuiteStepExecute)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TestSuiteStepSpec ¶
type TestSuiteStepSpec struct { Type string `json:"type,omitempty"` Execute *TestSuiteStepExecute `json:"execute,omitempty"` Delay *TestSuiteStepDelay `json:"delay,omitempty"` }
TestSuiteStepSpec will of particular type will have config for possible step types
func (*TestSuiteStepSpec) DeepCopy ¶
func (in *TestSuiteStepSpec) DeepCopy() *TestSuiteStepSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestSuiteStepSpec.
func (*TestSuiteStepSpec) DeepCopyInto ¶
func (in *TestSuiteStepSpec) DeepCopyInto(out *TestSuiteStepSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TestSuiteStepType ¶
type TestSuiteStepType string
TestSuiteStepType defines different type of test suite steps
const ( TestSuiteStepTypeExecute TestSuiteStepType = "execute" TestSuiteStepTypeDelay TestSuiteStepType = "delay" )