e2e

package
v0.0.0-...-4b9abfb Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(f *framework.Framework, obj runtime.Object, ctx *framework.Context) error

func CreateExternalLabel

func CreateExternalLabel(namespace string) map[string]string

func CreateLabel

func CreateLabel(namespace string) map[string]string

func Delete

func Delete(f *framework.Framework, obj runtime.Object) error

func GetNamespacedObject

func GetNamespacedObject(f *framework.Framework, namespace string, objectName string, outputObject runtime.Object) error

func GetSuccessfulResponseBody

func GetSuccessfulResponseBody(url string) ([]byte, error)

func MakeAuthenticatedClient

func MakeAuthenticatedClient(keycloakCR keycloakv1alpha1.Keycloak) (common.KeycloakInterface, error)

func Update

func Update(f *framework.Framework, obj runtime.Object) error

func WaitForClientToBeFailing

func WaitForClientToBeFailing(t *testing.T, framework *framework.Framework, namespace string, name string) error

func WaitForClientToBeReady

func WaitForClientToBeReady(t *testing.T, framework *framework.Framework, namespace string, name string) error

func WaitForCondition

func WaitForCondition(t *testing.T, c kubernetes.Interface, cond Condition) error

func WaitForConditionWithClient

func WaitForConditionWithClient(t *testing.T, framework *framework.Framework, keycloakCR keycloakv1alpha1.Keycloak, cond ClientCondition) error

func WaitForKeycloakToBeReady

func WaitForKeycloakToBeReady(t *testing.T, framework *framework.Framework, namespace string, name string) error

func WaitForPersistentVolumeClaimCreated

func WaitForPersistentVolumeClaimCreated(t *testing.T, c kubernetes.Interface, persistentVolumeClaimName, ns string) error

func WaitForPodHavingLabels

func WaitForPodHavingLabels(t *testing.T, c kubernetes.Interface, podName, ns string, labels map[string]string) error

func WaitForRealmToBeReady

func WaitForRealmToBeReady(t *testing.T, framework *framework.Framework, namespace string) error

func WaitForResponse

func WaitForResponse(t *testing.T, framework *framework.Framework, url string, condition ResponseCondition) error

func WaitForStatefulSetReplicasReady

func WaitForStatefulSetReplicasReady(t *testing.T, c kubernetes.Interface, statefulSetName, ns string) error

Stolen from https://github.com/kubernetes/kubernetes/blob/master/test/e2e/framework/util.go Then rewritten to use internal condition statements.

func WaitForSuccessResponse

func WaitForSuccessResponse(t *testing.T, framework *framework.Framework, url string) error

func WaitForSuccessResponseToContain

func WaitForSuccessResponseToContain(t *testing.T, framework *framework.Framework, url string, expectedString string) error

func WaitForUserToBeReady

func WaitForUserToBeReady(t *testing.T, framework *framework.Framework, namespace string) error

Types

type ClientCondition

type ClientCondition func(authenticatedClient common.KeycloakInterface) error

type Condition

type Condition func(t *testing.T, c kubernetes.Interface) error

type ResponseCondition

type ResponseCondition func(response *http.Response) error

Jump to

Keyboard shortcuts

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