framework

package
v0.0.0-...-c3d1141 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GCSBucketName      string
	GCSSecretName      string
	GCSSecretNamespace string
	GCSSecretKey       string
)

Functions

This section is empty.

Types

type AerospikeClient

type AerospikeClient struct {
	// contains filtered or unexported fields
}

func NewAerospikeClient

func NewAerospikeClient(aerospikeCluster *aerospikev1alpha2.AerospikeCluster) (*AerospikeClient, error)

func (*AerospikeClient) Close

func (ac *AerospikeClient) Close()

func (*AerospikeClient) GetNamespaceStorageEngine

func (ac *AerospikeClient) GetNamespaceStorageEngine(namespace string) (string, error)

func (*AerospikeClient) GetNodeNames

func (ac *AerospikeClient) GetNodeNames() []string

func (*AerospikeClient) IsConnected

func (ac *AerospikeClient) IsConnected() bool

func (*AerospikeClient) IsDataInMemoryEnabled

func (ac *AerospikeClient) IsDataInMemoryEnabled(namespace string) (bool, error)

func (*AerospikeClient) ReadSequentialIntegers

func (ac *AerospikeClient) ReadSequentialIntegers(asNamespace string, n int) error

func (*AerospikeClient) WriteSequentialIntegers

func (ac *AerospikeClient) WriteSequentialIntegers(asNamespace string, n int) error

type TestFramework

type TestFramework struct {
	AerospikeClient *aerospikeclientset.Clientset
	KubeClient      *kubernetes.Clientset
	RestConfig      *rest.Config
}

func NewTestFramework

func NewTestFramework(kubeconfigPath string) (*TestFramework, error)

func (*TestFramework) ChangeNamespaceMemorySizeAndScaleClusterAndWait

func (tf *TestFramework) ChangeNamespaceMemorySizeAndScaleClusterAndWait(aerospikeCluster *aerospikev1alpha2.AerospikeCluster, newMemorySizeGB int, nodeCount int32) error

func (*TestFramework) CreateRandomNamespace

func (tf *TestFramework) CreateRandomNamespace() (*v1.Namespace, error)

func (*TestFramework) DeleteNamespace

func (tf *TestFramework) DeleteNamespace(ns *v1.Namespace) error

func (*TestFramework) ErrorCauses

func (tf *TestFramework) ErrorCauses(err error) []string

func (*TestFramework) ExecInContainer

func (tf *TestFramework) ExecInContainer(pod corev1.Pod, ns *corev1.Namespace, command []string, container string) error

func (*TestFramework) NewAerospikeCluster

func (tf *TestFramework) NewAerospikeCluster(version string, nodeCount int32, namespaces []aerospikev1alpha2.AerospikeNamespaceSpec) aerospikev1alpha2.AerospikeCluster

func (*TestFramework) NewAerospikeClusterV1alpha1

func (tf *TestFramework) NewAerospikeClusterV1alpha1(version string, nodeCount int32, namespaces []aerospikev1alpha1.AerospikeNamespaceSpec) aerospikev1alpha1.AerospikeCluster

func (*TestFramework) NewAerospikeClusterWithDefaults

func (tf *TestFramework) NewAerospikeClusterWithDefaults() aerospikev1alpha2.AerospikeCluster

func (*TestFramework) NewAerospikeNamespaceBackupGCS

func (tf *TestFramework) NewAerospikeNamespaceBackupGCS(cluster *aerospikev1alpha2.AerospikeCluster, namespace string, ttl *string) aerospikev1alpha2.AerospikeNamespaceBackup

func (*TestFramework) NewAerospikeNamespaceBackupGCSWithoutBackupStorageSpec

func (tf *TestFramework) NewAerospikeNamespaceBackupGCSWithoutBackupStorageSpec(cluster *aerospikev1alpha2.AerospikeCluster, namespace string, ttl *string) aerospikev1alpha2.AerospikeNamespaceBackup

func (*TestFramework) NewAerospikeNamespaceRestoreGCSWithoutBackupStorageSpec

func (tf *TestFramework) NewAerospikeNamespaceRestoreGCSWithoutBackupStorageSpec(cluster *aerospikev1alpha2.AerospikeCluster, namespace string, backup *aerospikev1alpha2.AerospikeNamespaceBackup) aerospikev1alpha2.AerospikeNamespaceRestore

func (*TestFramework) NewAerospikeNamespaceWithDeviceStorage

func (tf *TestFramework) NewAerospikeNamespaceWithDeviceStorage(name string, replicationFactor int32, memorySizeGB int, defaultTTLSeconds int, storageSizeGB int) aerospikev1alpha2.AerospikeNamespaceSpec

func (*TestFramework) NewAerospikeNamespaceWithFileStorage

func (tf *TestFramework) NewAerospikeNamespaceWithFileStorage(name string, replicationFactor int32, memorySizeGB int, defaultTTLSeconds int, storageSizeGB int) aerospikev1alpha2.AerospikeNamespaceSpec

func (*TestFramework) NewAerospikeNamespaceWithFileStorageV1alpha1

func (tf *TestFramework) NewAerospikeNamespaceWithFileStorageV1alpha1(name string, replicationFactor int32, memorySizeGB int, defaultTTLSeconds int, storageSizeGB int) aerospikev1alpha1.AerospikeNamespaceSpec

func (*TestFramework) NewV1alpha1AerospikeClusterWithDefaults

func (tf *TestFramework) NewV1alpha1AerospikeClusterWithDefaults() aerospikev1alpha1.AerospikeCluster

func (*TestFramework) ScaleCluster

func (tf *TestFramework) ScaleCluster(aerospikeCluster *aerospikev1alpha2.AerospikeCluster, nodeCount int32) error

func (*TestFramework) UpgradeClusterAndWait

func (tf *TestFramework) UpgradeClusterAndWait(aerospikeCluster *aerospikev1alpha2.AerospikeCluster, targetVersion string) (*aerospikev1alpha2.AerospikeCluster, error)

UpgradeClusterAndWait upgrades an Aerospike cluster to the specified targetVersion

func (*TestFramework) WaitForBackupRestoreCompleted

func (tf *TestFramework) WaitForBackupRestoreCompleted(obj aerospikev1alpha2.BackupRestoreObject) error

func (*TestFramework) WaitForBackupRestoreCondition

func (tf *TestFramework) WaitForBackupRestoreCondition(obj aerospikev1alpha2.BackupRestoreObject, fn watch.ConditionFunc, timeout time.Duration) (err error)

func (*TestFramework) WaitForClusterCondition

func (tf *TestFramework) WaitForClusterCondition(aerospikeCluster *aerospikev1alpha2.AerospikeCluster, fn watch.ConditionFunc, timeout time.Duration) error

func (*TestFramework) WaitForClusterNodeCount

func (tf *TestFramework) WaitForClusterNodeCount(aerospikeCluster *aerospikev1alpha2.AerospikeCluster, nodeCount int32) error

func (*TestFramework) WaitForClusterNodeCountOrTimeout

func (tf *TestFramework) WaitForClusterNodeCountOrTimeout(aerospikeCluster *aerospikev1alpha2.AerospikeCluster, nodeCount int32, timeout time.Duration) error

Jump to

Keyboard shortcuts

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