testsuite

package
v0.0.0-...-6105717 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2022 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager) error

Add creates a new ClusterTestSuite Controller and adds it to the Manager with default RBAC. The Manager will set fields on the Controller and Start it when the Manager is Started.

Types

type ReconcileTestSuite

type ReconcileTestSuite struct {
	client.Client
	// contains filtered or unexported fields
}

ReconcileTestSuite reconciles a ClusterTestSuite object

func (*ReconcileTestSuite) Reconcile

func (r *ReconcileTestSuite) Reconcile(request reconcile.Request) (reconcile.Result, error)

Automatically generate RBAC rules to allow the Controller to read and write Pods +kubebuilder:rbac:groups=apps,resources=pods,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=testing.kyma-project.io,resources=clustertestsuites,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=testing.kyma-project.io,resources=clustertestsuites/status,verbs=get;update;patch

type SuiteStatusService

type SuiteStatusService interface {
	EnsureStatusIsUpToDate(suite testingv1alpha1.ClusterTestSuite, pods []corev1.Pod) (*testingv1alpha1.TestSuiteStatus, error)
	InitializeTests(suite testingv1alpha1.ClusterTestSuite, defs []testingv1alpha1.TestDefinition) (*testingv1alpha1.TestSuiteStatus, error)
	IsUninitialized(suite testingv1alpha1.ClusterTestSuite) bool
	IsFinished(suite testingv1alpha1.ClusterTestSuite) bool
	SetSuiteCondition(stat *testingv1alpha1.TestSuiteStatus, tp testingv1alpha1.TestSuiteConditionType, reason, msg string)
}

type TestDefinitionService

type TestDefinitionService interface {
	FindMatching(suite testingv1alpha1.ClusterTestSuite) ([]testingv1alpha1.TestDefinition, error)
}

type TestReporter

type TestReporter interface {
	GetPodsForSuite(ctx context.Context, suite testingv1alpha1.ClusterTestSuite) ([]corev1.Pod, error)
}

type TestScheduler

type TestScheduler interface {
	TrySchedule(suite testingv1alpha1.ClusterTestSuite) (*corev1.Pod, *testingv1alpha1.TestSuiteStatus, error)
}

dependencies

Jump to

Keyboard shortcuts

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