e2e

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Framework

type Framework struct {
	Client    client.Client
	Clientset *kubernetes.Clientset
	Namespace string
	T         *testing.T
}

Framework holds the test context for E2E tests.

func NewFramework

func NewFramework(t *testing.T) *Framework

NewFramework creates a new E2E test framework.

func (*Framework) CleanupNamespace

func (f *Framework) CleanupNamespace(ctx context.Context)

CleanupNamespace deletes the test namespace.

func (*Framework) ControllerRunning added in v0.4.0

func (f *Framework) ControllerRunning(ctx context.Context) bool

ControllerRunning checks if the diverge-controller deployment exists and has ready replicas.

func (*Framework) CreateEnvironment

func (f *Framework) CreateEnvironment(ctx context.Context, env *v1alpha1.Environment) error

CreateEnvironment creates an Environment CR and waits for it to be reconciled.

func (*Framework) CreateNamespace

func (f *Framework) CreateNamespace(ctx context.Context)

CreateNamespace creates a test namespace.

func (*Framework) WaitForCondition

func (f *Framework) WaitForCondition(ctx context.Context, name, condType string, status metav1.ConditionStatus, timeout time.Duration) error

WaitForCondition waits for a condition on an Environment.

Jump to

Keyboard shortcuts

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