Documentation
¶
Index ¶
- type Framework
- func (f *Framework) CleanupNamespace(ctx context.Context)
- func (f *Framework) ControllerRunning(ctx context.Context) bool
- func (f *Framework) CreateEnvironment(ctx context.Context, env *v1alpha1.Environment) error
- func (f *Framework) CreateNamespace(ctx context.Context)
- func (f *Framework) WaitForCondition(ctx context.Context, name, condType string, status metav1.ConditionStatus, ...) error
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 ¶
NewFramework creates a new E2E test framework.
func (*Framework) CleanupNamespace ¶
CleanupNamespace deletes the test namespace.
func (*Framework) ControllerRunning ¶ added in v0.4.0
ControllerRunning checks if the diverge-controller deployment exists and has ready replicas.
func (*Framework) CreateEnvironment ¶
CreateEnvironment creates an Environment CR and waits for it to be reconciled.
func (*Framework) CreateNamespace ¶
CreateNamespace creates a test namespace.
Click to show internal directories.
Click to hide internal directories.