framework

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2020 License: Apache-2.0 Imports: 27 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// Poll how often to poll for conditions
	Poll = 2 * time.Second

	// DefaultTimeout time to wait for operations to complete
	DefaultTimeout = 90 * time.Second
)

Variables

View Source
var (
	// KubectlPath defines the full path of the kubectl binary
	KubectlPath = "/usr/local/bin/kubectl"
	// RunID is a unique ID for this e2e test run
	RunID = uuid.NewUUID()
)

Functions

func CreateAWSSecretsManagerSecret

func CreateAWSSecretsManagerSecret(namespace, name, secret string) error

CreateAWSSecretsManagerSecret creates a sm secret with the given value

func CreateNamespace

func CreateNamespace(name string, c client.Client) error

CreateNamespace creates a new namespace in the cluster

func Logs

func Logs(pod *corev1.Pod) (string, error)

Logs returns the log entries of a given Pod.

func WaitForSMPod

func WaitForSMPod(ns string, c client.Client) (*corev1.Pod, error)

WaitForSMPod returns the ingress controller running pod

Types

type Framework

type Framework struct {
	// Name of the e2e test suite
	BaseName  string
	Namespace string

	// A Kubernetes and Service Catalog client
	KubeClient client.Client
	KubeConfig *restclient.Config
	HelmValues string
}

Framework supports common operations used by e2e tests; it will keep a client & a namespace for you.

func NewDefaultFramework

func NewDefaultFramework(baseName, helmValues string) *Framework

NewDefaultFramework makes a new framework and sets up a BeforeEach/AfterEach for you (you can write additional before/after each functions).

func (*Framework) AfterEach

func (f *Framework) AfterEach()

AfterEach deletes the namespace, after reading its events.

func (*Framework) BeforeEach

func (f *Framework) BeforeEach()

BeforeEach gets a client and makes a namespace.

func (*Framework) NewLocalstack

func (f *Framework) NewLocalstack(namespace string) error

NewLocalstack deploys a fresh localstack instance into the specified namespace

Jump to

Keyboard shortcuts

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