framework

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2023 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SerialLabelName = "Serial"
)
View Source
const (
	ServiceAccountName = "e2e-user"
)

Variables

View Source
var (
	Serial = []interface{}{
		g.Serial,
		g.Label(SerialLabelName),
	}
)

Functions

func By

func By(format string, args ...interface{})

func DumpEventsInNamespace

func DumpEventsInNamespace(ctx context.Context, c kubernetes.Interface, namespace string)

func DumpNamespace added in v1.3.0

func DumpNamespace(ctx context.Context, discoveryClient discovery.DiscoveryInterface, dynamicClient dynamic.Interface, podClient corev1client.CoreV1Interface, artifactsDir, namespace string) error

func DumpResource added in v1.3.0

func DumpResource(ctx context.Context, dynamicClient dynamic.Interface, coreClient corev1client.CoreV1Interface, gvr schema.GroupVersionResource, groupDir, namespace string) error

func Errorf

func Errorf(format string, args ...interface{})

func Failf

func Failf(format string, args ...interface{})

func Infof

func Infof(format string, args ...interface{})

func Skipf

func Skipf(format string, args ...interface{})

func WaitForObjectDeletion

func WaitForObjectDeletion(ctx context.Context, dynamicClient dynamic.Interface, resource schema.GroupVersionResource, namespace, name string, uid *types.UID) error

func WaitForServiceAccount

func WaitForServiceAccount(ctx context.Context, c corev1client.CoreV1Interface, namespace, name string) (*corev1.ServiceAccount, error)

func Warnf

func Warnf(format string, args ...interface{})

Types

type DeleteTestingNSPolicyType

type DeleteTestingNSPolicyType string
var (
	DeleteTestingNSPolicyAlways    DeleteTestingNSPolicyType = "Always"
	DeleteTestingNSPolicyOnSuccess DeleteTestingNSPolicyType = "OnSuccess"
	DeleteTestingNSPolicyNever     DeleteTestingNSPolicyType = "Never"
)

type Framework

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

func NewFramework

func NewFramework(name string) *Framework

func (*Framework) AdminClientConfig

func (f *Framework) AdminClientConfig() *restclient.Config

func (*Framework) ClientConfig

func (f *Framework) ClientConfig() *restclient.Config

func (*Framework) DiscoveryClient

func (f *Framework) DiscoveryClient() *discovery.DiscoveryClient

func (*Framework) DynamicAdminClient

func (f *Framework) DynamicAdminClient() dynamic.Interface

func (*Framework) DynamicClient

func (f *Framework) DynamicClient() dynamic.Interface

func (*Framework) FieldManager added in v1.8.0

func (f *Framework) FieldManager() string

func (*Framework) KubeAdminClient

func (f *Framework) KubeAdminClient() *kubernetes.Clientset

func (*Framework) KubeClient

func (f *Framework) KubeClient() *kubernetes.Clientset

func (*Framework) Namespace

func (f *Framework) Namespace() string

func (*Framework) ScyllaAdminClient added in v1.6.0

func (f *Framework) ScyllaAdminClient() *scyllaclientset.Clientset

func (*Framework) ScyllaClient

func (f *Framework) ScyllaClient() *scyllaclientset.Clientset

func (*Framework) Username

func (f *Framework) Username() string

type TestContextType

type TestContextType struct {
	RestConfig            *restclient.Config
	ArtifactsDir          string
	DeleteTestingNSPolicy DeleteTestingNSPolicyType
}
var TestContext *TestContextType

Jump to

Keyboard shortcuts

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