integration

package
v2.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InProgress = "In Progress"
)

Variables

This section is empty.

Functions

func MarkIntegrationTest

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

func Run

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

func SetupDockerClient

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

SetupDockerClient creates a client against the local docker daemon

func WaitForLogs

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

Types

type NSKubernetesClient

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

NSKubernetesClient wraps a Kubernetes Client for a given namespace.

func DefaultNamespace

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

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

func (*NSKubernetesClient) DefaultSecrets

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

func (*NSKubernetesClient) Deployments

func (*NSKubernetesClient) ExternalIP

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

ExternalIP waits for the external IP aof a given service.

func (*NSKubernetesClient) GetDeployment

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

GetDeployment gets a deployment by name.

func (*NSKubernetesClient) GetPod

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

GetDeployment gets a deployment by name.

func (*NSKubernetesClient) Pods

func (*NSKubernetesClient) Secrets

func (*NSKubernetesClient) Services

func (*NSKubernetesClient) WaitForDeploymentsToStabilize

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

WaitForDeploymentsToStabilize waits for a list of deployments to become stable.

func (*NSKubernetesClient) WaitForPodsInPhase

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

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

func (*NSKubernetesClient) WaitForPodsReady

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

WaitForPodsReady waits for a list of pods to become ready.

type TestType

type TestType int
const (
	CanRunWithoutGcp TestType = iota
	NeedsGcp
)

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

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