test_utils

package
v0.0.0-...-0cee181 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HOME = os.Getenv("HOME")
View Source
var PATH_TO_TOBS = "./../../bin/tobs"

Functions

func CheckPVCSExist

func CheckPVCSExist(releaseName, namespace string) error

func CheckPodsRunning

func CheckPodsRunning(namespace string) error

func CreateTimescaleDBNodePortService

func CreateTimescaleDBNodePortService(namespace string) (string, error)

func DeleteNamespace

func DeleteNamespace(namespace string) error

func DeletePod

func DeletePod(pod, namespace string) error

func DeleteWebhooks

func DeleteWebhooks() error

func GetAllPVCSizes

func GetAllPVCSizes(namespace string) (map[string]string, error)

func GetTSDBBackUpSecret

func GetTSDBBackUpSecret(releaseName, namespace string) (*v1.Secret, error)

func GetUpdatedPromscaleMemResource

func GetUpdatedPromscaleMemResource(releaseName, namespace string) (string, error)

func PortForwardPromscale

func PortForwardPromscale(t testing.TB, releaseName, namespace string)

func ShowAllPVCs

func ShowAllPVCs(t testing.TB)

func ShowAllPods

func ShowAllPods(t testing.TB)

func UpdateStorageClassAllowVolumeExpand

func UpdateStorageClassAllowVolumeExpand() error

By default local storage provider doesn't let us to expand PVC's For e2e tests to run we are configuring storageClass to allow PVC expansion

Types

type ReleaseInfo

type ReleaseInfo struct {
	Release   string
	Namespace string
}

func (*ReleaseInfo) TestPromscalePortForward

func (r *ReleaseInfo) TestPromscalePortForward(t testing.TB, portPromscale string)

func (*ReleaseInfo) TestTimescaleChangePassword

func (r *ReleaseInfo) TestTimescaleChangePassword(t testing.TB, newpass string)

func (*ReleaseInfo) TestTimescaleConnect

func (r *ReleaseInfo) TestTimescaleConnect(t testing.TB, master bool, user string)

func (*ReleaseInfo) TestTimescaleGetPassword

func (r *ReleaseInfo) TestTimescaleGetPassword(t testing.TB)

func (*ReleaseInfo) TestTimescalePortForward

func (r *ReleaseInfo) TestTimescalePortForward(t testing.TB, port string)

func (*ReleaseInfo) TestTimescaleSuperUserConnect

func (r *ReleaseInfo) TestTimescaleSuperUserConnect(t testing.TB, master bool)

func (*ReleaseInfo) VerifyTimescalePassword

func (r *ReleaseInfo) VerifyTimescalePassword(t testing.TB, expectedPass string)

type TestInstallSpec

type TestInstallSpec struct {
	PathToChart  string
	ReleaseName  string
	Namespace    string
	PathToValues string
	EnableBackUp bool
	OnlySecrets  bool
}

func (*TestInstallSpec) TestInstall

func (c *TestInstallSpec) TestInstall(t testing.TB)

type TestUnInstallSpec

type TestUnInstallSpec struct {
	ReleaseName string
	Namespace   string
	DeleteData  bool
}

func (*TestUnInstallSpec) TestUninstall

func (c *TestUnInstallSpec) TestUninstall(t testing.TB)

Jump to

Keyboard shortcuts

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