testing

package
v0.27.6 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// Kafka bootstrap server.
	BootstrapServersPlaintext     = "my-cluster-kafka-bootstrap.kafka:9092"
	BootstrapServersSsl           = "my-cluster-kafka-bootstrap.kafka:9093"
	BootstrapServersSaslPlaintext = "my-cluster-kafka-bootstrap.kafka:9095"
	BootstrapServersSslSaslScram  = "my-cluster-kafka-bootstrap.kafka:9094"

	NumPartitions     = 10
	ReplicationFactor = 3

	KafkaClusterNamespace = "kafka"
	TlsUserSecretName     = "my-tls-user"
	SaslUserSecretName    = "my-sasl-user"
	CaSecretName          = "my-cluster-cluster-ca-cert"
)

Variables

View Source
var (
	// Kafka bootstrap server as array.
	BootstrapServersPlaintextArr     = []string{BootstrapServersPlaintext}
	BootstrapServersSslArr           = []string{BootstrapServersSsl}
	BootstrapServersSaslPlaintextArr = []string{BootstrapServersSaslPlaintext}
	BootstrapServersSslSaslScramArr  = []string{BootstrapServersSslSaslScram}
)

Functions

func LogJobOutput added in v0.23.0

func LogJobOutput(t *testing.T, ctx context.Context, c kubernetes.Interface, namespace string, app string)

func Plaintext added in v0.21.0

func Plaintext(t *testing.T, _ *testlib.Client) map[string][]byte

func RunMultiple

func RunMultiple(t *testing.T, f func(t *testing.T))

RunMultiple run test function f `rerunTimes` times.

func RunMultipleN

func RunMultipleN(t *testing.T, n int, f func(t *testing.T))

RunMultiple run test function f n times.

func SaslPlaintextScram512 added in v0.21.0

func SaslPlaintextScram512(t *testing.T, client *testlib.Client) map[string][]byte

func Ssl added in v0.21.0

func Ssl(t *testing.T, client *testlib.Client) map[string][]byte

func SslSaslScram512 added in v0.21.0

func SslSaslScram512(t *testing.T, client *testlib.Client) map[string][]byte

Types

type ConfigProvider added in v0.21.0

type ConfigProvider func(secretName string, client *testlib.Client) map[string]string

type SecretProvider added in v0.21.0

type SecretProvider func(t *testing.T, client *testlib.Client) map[string][]byte

Jump to

Keyboard shortcuts

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