test

package
v4.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2025 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const AWSSecretName = "aws-secret"
View Source
const AerospikeNs string = "aerospike"
View Source
const AerospikeSecretName = "aerospike-secret"
View Source
const AuthSecretName = "auth-secret"
View Source
const AuthSecretNameForUpdate = "auth-update"
View Source
const MultiClusterNs1 string = "test1"
View Source
const MultiClusterNs2 string = "test2"
View Source
const TLSCacertSecretName = "aerospike-cacert-secret" //nolint:gosec // for testing

Variables

View Source
var Namespaces = []string{namespace, MultiClusterNs1, MultiClusterNs2, AerospikeNs}

Namespaces is the list of all the namespaces used in test-suite

Functions

func DeleteNodeLabels

func DeleteNodeLabels(ctx goctx.Context, k8sClient client.Client, keys []string) error

func GetNamespacedName

func GetNamespacedName(name, namespace string) types.NamespacedName

func GetNodeList

func GetNodeList(ctx goctx.Context, k8sClient client.Client) (
	*corev1.NodeList, error,
)

func InitialiseClients

func InitialiseClients(scheme *runtime.Scheme, cfg *rest.Config) (
	k8sClient client.Client, k8sClientSet *kubernetes.Clientset, err error)

func SetNodeLabels

func SetNodeLabels(ctx goctx.Context, k8sClient client.Client, labels map[string]string) error

func SetupBackupServicePreReq

func SetupBackupServicePreReq(k8sClient client.Client, ctx goctx.Context, namespace string) error

func SetupByUser

func SetupByUser(k8sClient client.Client, ctx goctx.Context) error

func StartTestEnvironment

func StartTestEnvironment() (testEnv *envtest.Environment, cfg *rest.Config, err error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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