e2e

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

README

End to end tests

Adding end to end tests

Knative Eventing Sources e2e tests test the end to end functionality of the Knative Eventing Sources to verify they work as expected.

Requirements

The e2e tests are used to test whether events flow from Sources to Sinks as designed.

The e2e tests MUST:

  1. Provide frequent output describing what actions they are undertaking, especially before performing long running operations.
  2. Follow Golang best practices.

Documentation

Index

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 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

func Setup(t *testing.T, logger logging.FormatLogger) (*test.Clients, *test.Cleaner)

Setup creates the client objects needed in the e2e tests.

func TearDown

func TearDown(clients *test.Clients, cleaner *test.Cleaner, logger logging.FormatLogger)

TearDown will delete created names using clients.

func WithRouteReady

func WithRouteReady(clients *test.Clients, logger logging.FormatLogger, cleaner *test.Cleaner, name string, imagePath string) error

WithRouteReady will create Route and Config objects and wait until they're ready.

Types

This section is empty.

Jump to

Keyboard shortcuts

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