Documentation
¶
Index ¶
- func InvokeEventRecorder(suite *processorsuite.TestSuite, host string, ...)
- type AbstractBrokerSuite
- func (suite *AbstractBrokerSuite) EnsureDockerNetworkExisting()
- func (suite *AbstractBrokerSuite) GetContainerRunInfo() (string, *dockerclient.RunOptions)
- func (suite *AbstractBrokerSuite) RunContainer(imageName string, runOptions *dockerclient.RunOptions) string
- func (suite *AbstractBrokerSuite) SendHTTPRequest(request *Request) (*http.Response, error)
- func (suite *AbstractBrokerSuite) SetupSuite()
- func (suite *AbstractBrokerSuite) StartBrokerContainer(imageName string, runOptions *dockerclient.RunOptions)
- func (suite *AbstractBrokerSuite) TearDownSuite()
- func (suite *AbstractBrokerSuite) WaitForBroker() error
- type BrokerSuite
- type Event
- type MessagePublisher
- type PostPublishChecks
- type Request
- type TopicMessages
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InvokeEventRecorder ¶
func InvokeEventRecorder( suite *processorsuite.TestSuite, host string, createFunctionOptions *platform.CreateFunctionOptions, expectedMessagesPerTopic map[string]TopicMessages, numNonExpectedMessagesPerTopic map[string]TopicMessages, messagePublisher MessagePublisher, postPublishChecks *PostPublishChecks)
Types ¶
type AbstractBrokerSuite ¶
type AbstractBrokerSuite struct {
processorsuite.TestSuite
BrokerHost string
FunctionPaths map[string]string
BrokerContainerID string
BrokerContainerNetworkName string
SkipStartBrokerContainer bool
HttpClient *http.Client
// contains filtered or unexported fields
}
func NewAbstractBrokerSuite ¶
func NewAbstractBrokerSuite(brokerSuite BrokerSuite) *AbstractBrokerSuite
func (*AbstractBrokerSuite) EnsureDockerNetworkExisting ¶
func (suite *AbstractBrokerSuite) EnsureDockerNetworkExisting()
func (*AbstractBrokerSuite) GetContainerRunInfo ¶
func (suite *AbstractBrokerSuite) GetContainerRunInfo() (string, *dockerclient.RunOptions)
func (*AbstractBrokerSuite) RunContainer ¶
func (suite *AbstractBrokerSuite) RunContainer(imageName string, runOptions *dockerclient.RunOptions) string
func (*AbstractBrokerSuite) SendHTTPRequest ¶
func (suite *AbstractBrokerSuite) SendHTTPRequest(request *Request) (*http.Response, error)
func (*AbstractBrokerSuite) SetupSuite ¶
func (suite *AbstractBrokerSuite) SetupSuite()
func (*AbstractBrokerSuite) StartBrokerContainer ¶
func (suite *AbstractBrokerSuite) StartBrokerContainer(imageName string, runOptions *dockerclient.RunOptions)
func (*AbstractBrokerSuite) TearDownSuite ¶
func (suite *AbstractBrokerSuite) TearDownSuite()
func (*AbstractBrokerSuite) WaitForBroker ¶
func (suite *AbstractBrokerSuite) WaitForBroker() error
WaitForBroker waits until the broker is ready
type BrokerSuite ¶
type BrokerSuite interface {
// GetContainerRunInfo returns information about the broker container
GetContainerRunInfo() (string, *dockerclient.RunOptions)
// WaitForBroker waits until the broker is ready
WaitForBroker() error
}
BrokerSuite tests a broker by producing messages
type Event ¶
type MessagePublisher ¶
type PostPublishChecks ¶
type TopicMessages ¶
Click to show internal directories.
Click to hide internal directories.