Documentation ¶
Index ¶
- Variables
- func AssertArraysEquals(t *testing.T, expected, actual []string)
- func AssertContainSubstring(t *testing.T, expected, actual string)
- func AssertContains(t *testing.T, expected string, array []string)
- func AssertContainsNot(t *testing.T, unexpected string, array []string)
- func AssertEquals(t *testing.T, expected, actual string)
- func AssertErrorContains(t *testing.T, expected string, err error)
- func AssertErrorContainsOneOf(t *testing.T, expected []string, err error)
- func CreateAvroTopic(t *testing.T, topicPrefix, keySchema, valueSchema string, flags ...string) string
- func CreateClient(t *testing.T) sarama.Client
- func CreateConsumerGroup(t *testing.T, groupPrefix string, topics ...string) string
- func CreateTopic(t *testing.T, topicPrefix string, flags ...string) string
- func GetPrefixedName(prefix string) string
- func MarkOffset(t *testing.T, client sarama.Client, groupName string, topic string, ...)
- func ProduceMessage(t *testing.T, topic, key, value string, ...)
- func ProduceMessageOnPartition(t *testing.T, topic, key, value string, partition int32, expectedOffset int64)
- func StartIntegrationTest(t *testing.T)
- func StartIntegrationTestWithContext(t *testing.T, context string)
- func StartUnitTest(t *testing.T)
- func SwitchContext(context string)
- func VerifyConsumerGroupOffset(t *testing.T, group, topic string, expectedConsumerOffset int)
- func VerifyGroupExists(t *testing.T, group string)
- func VerifyTopicExists(t *testing.T, topic string)
- func VerifyTopicNotInConsumerGroup(t *testing.T, group, topic string)
- func WithoutBrokerReferences(output string) string
- type KafkaCtlTestCommand
Constants ¶
This section is empty.
Variables ¶
View Source
var RootDir string
Functions ¶
func AssertArraysEquals ¶
func AssertContainSubstring ¶
func AssertEquals ¶
func CreateAvroTopic ¶
func CreateConsumerGroup ¶
func GetPrefixedName ¶
func MarkOffset ¶
func ProduceMessage ¶
func StartIntegrationTest ¶
func StartUnitTest ¶
func SwitchContext ¶
func SwitchContext(context string)
func VerifyGroupExists ¶
func VerifyTopicExists ¶
func WithoutBrokerReferences ¶
Types ¶
type KafkaCtlTestCommand ¶
func CreateKafkaCtlCommand ¶
func CreateKafkaCtlCommand() (kafkactl KafkaCtlTestCommand)
func (*KafkaCtlTestCommand) Execute ¶
func (kafkactl *KafkaCtlTestCommand) Execute(args ...string) (cmd *cobra.Command, err error)
func (*KafkaCtlTestCommand) GetStdErr ¶
func (kafkactl *KafkaCtlTestCommand) GetStdErr() string
func (*KafkaCtlTestCommand) GetStdOut ¶
func (kafkactl *KafkaCtlTestCommand) GetStdOut() string
func (*KafkaCtlTestCommand) GetStdOutLines ¶
func (kafkactl *KafkaCtlTestCommand) GetStdOutLines() []string
Click to show internal directories.
Click to hide internal directories.