framework

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Copyright Jetstack Ltd. See LICENSE for details.

Copyright Jetstack Ltd. See LICENSE for details.

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfig = &config.Config{}

Functions

func CasesDescribe

func CasesDescribe(text string, body func()) bool

Types

type Framework

type Framework struct {
	BaseName string

	KubeClientSet kubernetes.Interface
	ProxyClient   kubernetes.Interface

	Namespace *corev1.Namespace
	// contains filtered or unexported fields
}

func NewDefaultFramework

func NewDefaultFramework(baseName string) *Framework

func NewFramework

func NewFramework(baseName string, config *config.Config) *Framework

func (*Framework) AfterEach

func (f *Framework) AfterEach()

AfterEach deletes the namespace, after reading its events.

func (*Framework) BeforeEach

func (f *Framework) BeforeEach()

func (*Framework) ClientID

func (f *Framework) ClientID() string

func (*Framework) CreateKubeNamespace

func (f *Framework) CreateKubeNamespace(baseName string) (*corev1.Namespace, error)

CreateKubeNamespace creates a new Kubernetes Namespace for a test.

func (*Framework) DeleteKubeNamespace

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

DeleteKubeNamespace will delete a namespace resource

func (*Framework) DeployProxyWith

func (f *Framework) DeployProxyWith(extraVolumes []corev1.Volume, extraArgs ...string)

func (*Framework) Helper

func (f *Framework) Helper() *helper.Helper

func (*Framework) IssuerKeyBundle

func (f *Framework) IssuerKeyBundle() *util.KeyBundle

func (*Framework) IssuerURL

func (f *Framework) IssuerURL() *url.URL

func (*Framework) NewProxyClient

func (f *Framework) NewProxyClient() kubernetes.Interface

func (*Framework) NewProxyRestConfig

func (f *Framework) NewProxyRestConfig() *rest.Config

func (*Framework) ProxyKeyBundle

func (f *Framework) ProxyKeyBundle() *util.KeyBundle

func (*Framework) ProxyURL

func (f *Framework) ProxyURL() *url.URL

func (*Framework) WaitForKubeNamespaceNotExist

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

WaitForKubeNamespaceNotExist will wait for the namespace with the given name to not exist for up to 2 minutes.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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