integration

package
v1.39.4 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2022 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InProgress = "In Progress"
)

Variables

This section is empty.

Functions

func MarkIntegrationTest added in v1.7.1

func MarkIntegrationTest(t *testing.T, testType TestType)

func Run

func Run(t *testing.T, dir, command string, args ...string)

func SetupDockerClient added in v1.32.0

func SetupDockerClient(t *testing.T) docker.LocalDaemon

SetupDockerClient creates a client against the local docker daemon

func WaitForLogs added in v1.7.1

func WaitForLogs(t *testing.T, out io.Reader, firstMessage string, moreMessages ...string)

Types

type NSKubernetesClient added in v0.25.0

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

NSKubernetesClient wraps a Kubernetes Client for a given namespace.

func DefaultNamespace added in v1.28.1

func DefaultNamespace(t *testing.T) (*v1.Namespace, *NSKubernetesClient)

func SetupNamespace

func SetupNamespace(t *testing.T) (*v1.Namespace, *NSKubernetesClient)

SetupNamespace creates a Kubernetes namespace to run a test.

func (*NSKubernetesClient) CreateSecretFrom added in v1.1.0

func (k *NSKubernetesClient) CreateSecretFrom(ns, name string)

func (*NSKubernetesClient) DefaultSecrets added in v1.1.0

func (k *NSKubernetesClient) DefaultSecrets() corev1.SecretInterface

func (*NSKubernetesClient) Deployments added in v1.1.0

func (*NSKubernetesClient) ExternalIP added in v1.1.0

func (k *NSKubernetesClient) ExternalIP(serviceName string) string

ExternalIP waits for the external IP aof a given service.

func (*NSKubernetesClient) GetDeployment added in v0.25.0

func (k *NSKubernetesClient) GetDeployment(depName string) *appsv1.Deployment

GetDeployment gets a deployment by name.

func (*NSKubernetesClient) GetPod added in v1.7.1

func (k *NSKubernetesClient) GetPod(podName string) *v1.Pod

GetDeployment gets a deployment by name.

func (*NSKubernetesClient) Pods added in v0.38.0

func (*NSKubernetesClient) Secrets added in v0.38.0

func (*NSKubernetesClient) Services added in v1.1.0

func (*NSKubernetesClient) WaitForDeploymentsToStabilize added in v0.25.0

func (k *NSKubernetesClient) WaitForDeploymentsToStabilize(depNames ...string)

WaitForDeploymentsToStabilize waits for a list of deployments to become stable.

func (*NSKubernetesClient) WaitForPodsInPhase added in v0.38.0

func (k *NSKubernetesClient) WaitForPodsInPhase(expectedPhase v1.PodPhase, podNames ...string)

WaitForPodsInPhase waits for a list of pods to reach the given phase.

func (*NSKubernetesClient) WaitForPodsReady added in v0.25.0

func (k *NSKubernetesClient) WaitForPodsReady(podNames ...string)

WaitForPodsReady waits for a list of pods to become ready.

type TestType added in v1.7.1

type TestType int
const (
	CanRunWithoutGcp TestType = iota
	NeedsGcp
)

Jump to

Keyboard shortcuts

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