testkit

package
v0.0.0-...-1ac4f16 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2019 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HelmClient

type HelmClient interface {
	CheckReleaseStatus(rlsName string) (*rls.GetReleaseStatusResponse, error)
	CheckReleaseExistence(name string) (bool, error)
}

func NewHelmClient

func NewHelmClient(host string) HelmClient

type K8sResourceChecker

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

func NewK8sChecker

func NewK8sChecker(client K8sResourcesClient, appName string) *K8sResourceChecker

type K8sResourcesClient

type K8sResourcesClient interface {
	GetDeployment(name string, options v1.GetOptions) (interface{}, error)
	GetService(name string, options v1.GetOptions) (interface{}, error)
	GetIngress(name string, options v1.GetOptions) (interface{}, error)
	GetRole(name string, options v1.GetOptions) (interface{}, error)
	GetRoleBinding(name string, options v1.GetOptions) (interface{}, error)
	CreateDummyApplication(name string, accessLabel string, skipInstallation bool) (*v1alpha1.Application, error)
	DeleteApplication(name string, options *v1.DeleteOptions) error
	GetApplication(name string, options v1.GetOptions) (*v1alpha1.Application, error)
}

func NewK8sResourcesClient

func NewK8sResourcesClient(namespace string) (K8sResourcesClient, error)

type TestConfig

type TestConfig struct {
	Namespace           string
	TillerHost          string
	ProvisioningTimeout int
}

func ReadConfig

func ReadConfig() (TestConfig, error)

type TestSuite

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

func NewTestSuite

func NewTestSuite(t *testing.T) *TestSuite

func (*TestSuite) CheckAccessLabel

func (ts *TestSuite) CheckAccessLabel()

func (*TestSuite) CheckK8sResourceRemoved

func (ts *TestSuite) CheckK8sResourceRemoved()

func (*TestSuite) CheckK8sResourcesDeployed

func (ts *TestSuite) CheckK8sResourcesDeployed()

func (*TestSuite) CleanUp

func (ts *TestSuite) CleanUp()

func (*TestSuite) CreateApplication

func (ts *TestSuite) CreateApplication(accessLabel string, skipInstallation bool)

func (*TestSuite) DeleteApplication

func (ts *TestSuite) DeleteApplication()

func (*TestSuite) EnsureReleaseNotInstalling

func (ts *TestSuite) EnsureReleaseNotInstalling()

func (*TestSuite) WaitForReleaseToInstall

func (ts *TestSuite) WaitForReleaseToInstall()

func (*TestSuite) WaitForReleaseToUninstall

func (ts *TestSuite) WaitForReleaseToUninstall()

Jump to

Keyboard shortcuts

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