helper

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateNamespace

func CreateNamespace(ctx context.Context, cfg *envconf.Config, t *testing.T, runID string) (context.Context, error)

CreateNamespace ...

func CreateSingleClusterTest

func CreateSingleClusterTest(version fdbv1beta2.Version, t *testing.T) features.Feature

CreateSingleClusterTest returns an e2e test that creates a cluster and assess that the cluster was correctly created.

func DeleteNamespace

func DeleteNamespace(ctx context.Context, cfg *envconf.Config, t *testing.T) (context.Context, error)

DeleteNamespace ...

func GetTestFDBVersions

func GetTestFDBVersions() []fdbv1beta2.Version

GetTestFDBVersions returns a slice that contains all FDB versions we use to do e2e tests.

func InstallOperator

func InstallOperator(ctx context.Context, cfg *envconf.Config, _ *testing.T) (context.Context, error)

InstallOperator is a helper method to install the FDB operator inside the test namespace.

func RegisterFDBScheme

func RegisterFDBScheme(ctx context.Context, cfg *envconf.Config) (context.Context, error)

RegisterFDBScheme registers the fdbv1beta2 scheme to the rest config

func WaitUntilCRDAvailable

func WaitUntilCRDAvailable(ctx context.Context, _ *envconf.Config) (context.Context, error)

WaitUntilCRDAvailable waits until the CRD is available

Types

This section is empty.

Jump to

Keyboard shortcuts

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