helpers

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2019 License: Apache-2.0 Imports: 18 Imported by: 0

README

helpers

This package contains helper functions that are used in the actual tests. These functions can be referenced in other repositories (like eventing-contrib) for adding similar tests.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BrokerChannelFlowTestHelper

func BrokerChannelFlowTestHelper(t *testing.T, channelTestRunner common.ChannelTestRunner)

BrokerChannelFlowTestHelper is the helper function for broker_channel_flow_test

func ChannelChainTestHelper

func ChannelChainTestHelper(t *testing.T, channelTestRunner common.ChannelTestRunner)

ChannelChainTestHelper is the helper function for channel_chain_test

func ChannelClusterDefaulterTestHelper

func ChannelClusterDefaulterTestHelper(t *testing.T, channelTestRunner common.ChannelTestRunner)

ChannelClusterDefaulterTestHelper is the helper function for channel_defaulter_test

func ChannelDeadLetterSinkTestHelper added in v0.11.0

func ChannelDeadLetterSinkTestHelper(t *testing.T, channelTestRunner common.ChannelTestRunner)

ChannelDeadLetterSinkTestHelper is the helper function for channel_deadlettersink_test

func ChannelNamespaceDefaulterTestHelper

func ChannelNamespaceDefaulterTestHelper(t *testing.T, channelTestRunner common.ChannelTestRunner)

ChannelNamespaceDefaulterTestHelper is the helper function for channel_defaulter_test

func EventTransformationForSubscriptionTestHelper

func EventTransformationForSubscriptionTestHelper(t *testing.T, channelTestRunner common.ChannelTestRunner)

EventTransformationForSubscriptionTestHelper is the helper function for channel_event_tranformation_test

func EventTransformationForTriggerTestHelper

func EventTransformationForTriggerTestHelper(t *testing.T, channelTestRunner common.ChannelTestRunner)

EventTransformationForTriggerTestHelper is the helper function for broker_event_tranformation_test

func SetupPerformanceImageRBAC added in v0.11.0

func SetupPerformanceImageRBAC(client *common.Client)

func SingleEventForChannelTestHelper

func SingleEventForChannelTestHelper(t *testing.T, encoding string, channelTestRunner common.ChannelTestRunner)

SingleEventForChannelTestHelper is the helper function for channel_single_event_test

func TestWithPerformanceImage added in v0.11.0

func TestWithPerformanceImage(st *testing.T, expectedAggregatorRecords int, setupEnv func(t *testing.T, consumerHostname string, aggregatorHostname string, client *common.Client), assertResults func(*testing.T, *PerformanceImageResults))

This function setups RBAC, services and aggregator pod. It DOESN'T setup channel, broker nor sender and receiver pod(s). The setup of these resources MUST be done inside `setupEnv` function

Types

type PerformanceImageResults added in v0.11.0

type PerformanceImageResults struct {
	SentEvents             uint64
	AcceptedEvents         uint64
	ReceivedEvents         uint64
	PublishFailuresEvents  uint64
	DeliveryFailuresEvents uint64
}

Jump to

Keyboard shortcuts

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