Documentation ¶
Index ¶
- Constants
- func By(format string, args ...interface{})
- func DumpEventsInNamespace(ctx context.Context, c kubernetes.Interface, namespace string)
- func Errorf(format string, args ...interface{})
- func Failf(format string, args ...interface{})
- func Infof(format string, args ...interface{})
- func SetupScyllaClusterSA(ctx context.Context, coreClient corev1client.CoreV1Interface, ...) error
- func Skipf(format string, args ...interface{})
- func WaitForObjectDeletion(ctx context.Context, dynamicClient dynamic.Interface, ...) error
- func WaitForServiceAccount(ctx context.Context, c corev1client.CoreV1Interface, namespace, name string) (*corev1.ServiceAccount, error)
- func Warnf(format string, args ...interface{})
- type DeleteTestingNSPolicyType
- type Framework
- func (f *Framework) AdminClientConfig() *restclient.Config
- func (f *Framework) ClientConfig() *restclient.Config
- func (f *Framework) DiscoveryClient() *discovery.DiscoveryClient
- func (f *Framework) DynamicAdminClient() dynamic.Interface
- func (f *Framework) DynamicClient() dynamic.Interface
- func (f *Framework) KubeAdminClient() *kubernetes.Clientset
- func (f *Framework) KubeClient() *kubernetes.Clientset
- func (f *Framework) Namespace() string
- func (f *Framework) ScyllaClient() *scyllaclientset.Clientset
- func (f *Framework) Username() string
- type TestContextType
Constants ¶
View Source
const (
ServiceAccountName = "e2e-user"
)
Variables ¶
This section is empty.
Functions ¶
func DumpEventsInNamespace ¶
func DumpEventsInNamespace(ctx context.Context, c kubernetes.Interface, namespace string)
func SetupScyllaClusterSA ¶
func SetupScyllaClusterSA(ctx context.Context, coreClient corev1client.CoreV1Interface, rbacClient rbacv1client.RbacV1Interface, namespace, scyllaClusterName string) error
TODO: Replace when Scylla cluster can configure a SA or use the default one.
func WaitForObjectDeletion ¶
func WaitForServiceAccount ¶
func WaitForServiceAccount(ctx context.Context, c corev1client.CoreV1Interface, namespace, name string) (*corev1.ServiceAccount, error)
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 (*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 (*Framework) DynamicClient ¶
func (*Framework) KubeAdminClient ¶
func (f *Framework) KubeAdminClient() *kubernetes.Clientset
func (*Framework) KubeClient ¶
func (f *Framework) KubeClient() *kubernetes.Clientset
func (*Framework) ScyllaClient ¶
func (f *Framework) ScyllaClient() *scyllaclientset.Clientset
type TestContextType ¶
type TestContextType struct { RestConfig *restclient.Config ArtifactsDir string DeleteTestingNSPolicy DeleteTestingNSPolicyType }
var TestContext *TestContextType
Click to show internal directories.
Click to hide internal directories.