e2e

package
v1.10.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2018 License: Apache-2.0 Imports: 51 Imported by: 0

README

Documentation

Index

Constants

View Source
const (
	MaxRetriesOnFederatedApiserver = 3
	FederatedIngressTimeout        = 15 * time.Minute
	FederatedIngressDeleteTimeout  = 2 * time.Minute
	FederatedIngressName           = "federated-ingress"
	FederatedIngressServiceName    = "federated-ingress-service"
	FederatedIngressTLSSecretName  = "federated-ingress-tls-secret"
	FederatedIngressServicePodName = "federated-ingress-service-test-pod"
	FederatedIngressHost           = "test-f8n.k8s.io."

	FederatedSecretTimeout = 60 * time.Second

	// TLS Certificate and Key for the ingress resource
	// Generated using:
	// $ openssl req -nodes -x509 -newkey rsa:2048 -keyout fedingtestkey.pem -out fedingtestcrt.pem -days 2485
	// 2485 days is an arbitrary large number chosen below int32 seconds.
	FederatedIngressTLSCrt = `` /* 1244-byte string literal not displayed */

	FederatedIngressTLSKey = `` /* 1703-byte string literal not displayed */

)
View Source
const (
	FederatedServiceName    = "federated-service"
	FederatedServicePodName = "federated-service-test-pod"
)
View Source
const (
	// [30000, 32767] is the allowed default service nodeport range and our
	// tests just use the defaults.
	FederatedSvcNodePortFirst = 30000
	FederatedSvcNodePortLast  = 32767
)
View Source
const (
	FederationEventName = "federation-event"
)
View Source
const (
	FederationJobName = "federation-job"
)
View Source
const (
	FederationReplicaSetPrefix = "federation-replicaset-"
)

Variables

View Source
var (
	DefaultFederationName = "e2e-federation"
	// We use this to decide how long to wait for our DNS probes to succeed.
	DNSTTL = 180 * time.Second // TODO: make k8s.io/federation/pkg/federation-controller/service.minDnsTtl exported, and import it here.
)
View Source
var FederatedServiceLabels = map[string]string{
	"foo": "bar",
}
View Source
var FederationSuite common.Suite

Functions

func RemoveCleanupAction

func RemoveCleanupAction(p CleanupActionHandle)

RemoveCleanupAction removes a function that was installed by AddCleanupAction.

func RunCleanupActions

func RunCleanupActions()

RunCleanupActions runs all functions installed by AddCleanupAction. It does not remove them (see RemoveCleanupAction) but it does run unlocked, so they may remove themselves.

func RunE2ETests

func RunE2ETests(t *testing.T)

TestE2E checks configuration parameters (specified through flags) and then runs E2E tests using the Ginkgo runner. If a "report directory" is specified, one or more JUnit test reports will be generated in this directory, and cluster logs will also be saved. This function is called on each Ginkgo node in parallel mode.

Types

type BackendPodMap

type BackendPodMap map[string]*v1.Pod

BackendPodMap maps a cluster name to a backend pod created in that cluster

type CleanupActionHandle

type CleanupActionHandle *int

func AddCleanupAction

func AddCleanupAction(fn func()) CleanupActionHandle

AddCleanupAction installs a function that will be called in the event of the whole test being terminated. This allows arbitrary pieces of the overall test to hook into SynchronizedAfterSuite().

Directories

Path Synopsis
Package upgrades provides a framework for testing Kubernetes federation features before, during, and after different types of upgrades.
Package upgrades provides a framework for testing Kubernetes federation features before, during, and after different types of upgrades.

Jump to

Keyboard shortcuts

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