support

package
v1.11.4 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2023 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TestTimeoutMini   = 5 * time.Second
	TestTimeoutShort  = 1 * time.Minute
	TestTimeoutMedium = 2 * time.Minute
	TestTimeoutLong   = 5 * time.Minute
)

Variables

This section is empty.

Functions

func CatalogSource added in v1.11.2

func CatalogSource(t Test, name string, namespace string) func(g gomega.Gomega) (*olmV1Alpha1.CatalogSource, error)

func ConditionReason

func ConditionReason[T conditionType](conditionType T) func(any) string

func ConditionStatus

func ConditionStatus[T conditionType](conditionType T) func(any) corev1.ConditionStatus

func ControlPlane

func ControlPlane(t Test, dapr *daprApi.DaprControlPlane) func(g gomega.Gomega) (*daprApi.DaprControlPlane, error)

func Deployment

func Deployment(t Test, name string, namespace string) func(g gomega.Gomega) (*appsv1.Deployment, error)

func ExtractCatalogState added in v1.11.2

func ExtractCatalogState() func(*olmV1Alpha1.CatalogSource) string

func ExtractSubscriptionInstallPlan added in v1.11.2

func ExtractSubscriptionInstallPlan() func(*olmV1Alpha1.Subscription) string

func Subscription added in v1.11.2

func Subscription(t Test, name string, namespace string) func(g gomega.Gomega) (*olmV1Alpha1.Subscription, error)

Types

type Client

type Client struct {
	kubernetes.Interface

	Dapr      daprClient.Interface
	DaprCP    daprAC.DaprControlPlaneInterface
	Discovery discovery.DiscoveryInterface
	OLM       olmAC.Interface
	// contains filtered or unexported fields
}

type Option

type Option[T any] interface {
	// contains filtered or unexported methods
}

type T

type T struct {
	*gomega.WithT
	// contains filtered or unexported fields
}

func (*T) Client

func (t *T) Client() *Client

func (*T) Ctx

func (t *T) Ctx() context.Context

func (*T) NewTestNamespace

func (t *T) NewTestNamespace(options ...Option[*corev1.Namespace]) *corev1.Namespace

func (*T) T

func (t *T) T() *testing.T

type Test

type Test interface {
	T() *testing.T
	Ctx() context.Context
	Client() *Client

	NewTestNamespace(...Option[*corev1.Namespace]) *corev1.Namespace
	NewDaprControlPlane(spec *daprAc.DaprControlPlaneSpecApplyConfiguration) *v1alpha1.DaprControlPlane
	NewNamespacedNameDaprControlPlane(types.NamespacedName, *daprAc.DaprControlPlaneSpecApplyConfiguration) *v1alpha1.DaprControlPlane

	gomega.Gomega
}

func With

func With(t *testing.T) Test

Jump to

Keyboard shortcuts

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