testcase

package
v0.0.0-...-6165e84 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusPending    string = "Pending"
	StatusInProgress string = "InProgress"
	StatusCompleted  string = "Completed"
	StatusError      string = "Error"

	StatusPendingReason    string = "AwaitingExecution"
	StatusInProgressReason string = "ExecutionStarted"
	StatusCompletedReason  string = "ExecutionSuccessful"
	StatusErrorReason      string = "ExecutionFailed"

	StatusPendingMsg    string = "The TestCase is pending and has not started execution."
	StatusInProgressMsg string = "The TestCase is currently in progress."
	StatusCompletedMsg  string = "The TestCase has completed successfully."
	StatusErrorMsg      string = "The TestCase encountered an error during execution."
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Reconciler

type Reconciler struct {
	common.Reconciler
}

Reconciler reconciles a TestCase object

func (*Reconciler) ApplyObjectToCluster

func (r *Reconciler) ApplyObjectToCluster(ctx context.Context, objJSON []byte, testCaseName string) error

func (*Reconciler) ApplyValueToTemplate

func (r *Reconciler) ApplyValueToTemplate(objectTemplate *tofaniov1alpha1.ObjectTemplate, path string, value []byte) ([]byte, error)

ApplyValueToTemplate applies dynamic field value to the specified ObjectTemplate

func (*Reconciler) CheckTestCaseResourcesReadiness

func (r *Reconciler) CheckTestCaseResourcesReadiness(ctx context.Context, testCase *tofaniov1alpha1.TestCase, objTpl *tofaniov1alpha1.ObjectTemplate) (bool, error)

CheckTestCaseResourcesReadiness checks if the given resources are ready by examining its status conditions.

func (*Reconciler) ProcessTestCase

func (r *Reconciler) ProcessTestCase(ctx context.Context, objectTemplate *tofaniov1alpha1.ObjectTemplate, testCase *tofaniov1alpha1.TestCase) error

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*Reconciler) SetupWithManager

func (r *Reconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

func (*Reconciler) TeardownResourcesForTestCase

func (r *Reconciler) TeardownResourcesForTestCase(ctx context.Context, testCase *tofaniov1alpha1.TestCase, objTpl *tofaniov1alpha1.ObjectTemplate) error

TeardownResourcesForTestCase deletes all resources associated with a given TestCase, using objTpl to identify resource types.

Jump to

Keyboard shortcuts

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