e2e

package
v0.0.0-...-fa1f097 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTestProject

func CreateTestProject(t *testing.T, kubeClient kubernetes.Interface, projectClient *projectclient.Clientset) *corev1.Namespace

func NewClientConfigForTest

func NewClientConfigForTest(t *testing.T) *rest.Config

NewClientConfigForTest returns a config configured to connect to the api server

func PortForwardSvc

func PortForwardSvc(t *testing.T, svcNS, svcName, portMapping string) context.CancelFunc

PortForwardSvc forwards a remote service's port to localhost portMapping is a string "localPort:remotePort"

func TestTokenReviews

func TestTokenReviews(t *testing.T)

Types

type ResourceTrashbin

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

ResourceTrashbin serves to put your API resources into in order to remove them at the end of a test

func NewResourceTrashbin

func NewResourceTrashbin(t *testing.T, adminKubeconfig *rest.Config) *ResourceTrashbin

NewResourceTrashbin creates an instance of a ResourceTrashbin

func (*ResourceTrashbin) AddResource

func (b *ResourceTrashbin) AddResource(resource schema.GroupVersionResource, objectMeta metav1.Object)

AddResource adds a resource to the trashbin so that it can eventually be deleted

func (*ResourceTrashbin) Empty

func (b *ResourceTrashbin) Empty(t *testing.T)

Empty deletes all of the cached resources

func (*ResourceTrashbin) Merge

func (b *ResourceTrashbin) Merge(other *ResourceTrashbin)

Merge merges resources to be deleted from another trash bin instance

Jump to

Keyboard shortcuts

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