Documentation ¶
Index ¶
- func CreateChannel(clients *test.Clients, channel *v1alpha1.Channel, logger logging.FormatLogger, ...) error
- func CreateClusterRoleBinding(clients *test.Clients, crb *rbacV1beta1.ClusterRoleBinding, ...) error
- func CreateKubernetesEventSource(clients *test.Clients, source *sourcesv1alpha1.KubernetesEventSource, ...) error
- func CreatePod(clients *test.Clients, pod *corev1.Pod, logger logging.FormatLogger, ...) error
- func CreateRouteAndConfig(clients *test.Clients, logger logging.FormatLogger, cleaner *test.Cleaner, ...) error
- func CreateServiceAccount(clients *test.Clients, sa *corev1.ServiceAccount, logger logging.FormatLogger, ...) error
- func CreateServiceAccountAndBinding(clients *test.Clients, name string, logger logging.FormatLogger, ...) error
- func CreateSubscription(clients *test.Clients, subs *v1alpha1.Subscription, ...) error
- func Setup(t *testing.T, logger logging.FormatLogger) (*test.Clients, *test.Cleaner)
- func TearDown(clients *test.Clients, cleaner *test.Cleaner, logger logging.FormatLogger)
- func WithRouteReady(clients *test.Clients, logger logging.FormatLogger, cleaner *test.Cleaner, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateChannel ¶
func CreateChannel(clients *test.Clients, channel *v1alpha1.Channel, logger logging.FormatLogger, cleaner *test.Cleaner) error
CreateChannel will create a Channel
func CreateClusterRoleBinding ¶
func CreateClusterRoleBinding(clients *test.Clients, crb *rbacV1beta1.ClusterRoleBinding, logger logging.FormatLogger, cleaner *test.Cleaner) error
CreateClusterRoleBinding will create a service account binding
func CreateKubernetesEventSource ¶
func CreateKubernetesEventSource(clients *test.Clients, source *sourcesv1alpha1.KubernetesEventSource, logger logging.FormatLogger, cleaner *test.Cleaner) error
CreateKubernetesEventSource creates a KubernetesEventSource
func CreatePod ¶
func CreatePod(clients *test.Clients, pod *corev1.Pod, logger logging.FormatLogger, cleaner *test.Cleaner) error
CreatePod will create a Pod
func CreateRouteAndConfig ¶
func CreateRouteAndConfig(clients *test.Clients, logger logging.FormatLogger, cleaner *test.Cleaner, name string, imagePath string) error
CreateRouteAndConfig will create Route and Config objects using clients. The Config object will serve requests to a container started from the image at imagePath.
func CreateServiceAccount ¶
func CreateServiceAccount(clients *test.Clients, sa *corev1.ServiceAccount, logger logging.FormatLogger, cleaner *test.Cleaner) error
CreateServiceAccount will create a service account
func CreateServiceAccountAndBinding ¶
func CreateServiceAccountAndBinding(clients *test.Clients, name string, logger logging.FormatLogger, cleaner *test.Cleaner) error
CreateServiceAccountAndBinding creates both ServiceAccount and ClusterRoleBinding with default cluster-admin role
func CreateSubscription ¶
func CreateSubscription(clients *test.Clients, subs *v1alpha1.Subscription, logger logging.FormatLogger, cleaner *test.Cleaner) error
CreateSubscription will create a Subscription
func Setup ¶
Setup creates the client objects needed in the e2e tests.
func TearDown ¶
TearDown will delete created names using clients.
Types ¶
This section is empty.