testing

package
v0.36.0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultKafkaBroker     = "TestBroker"
	DefaultSecretUsername  = "TestUsername"
	DefaultSecretPassword  = "TestPassword"
	DefaultSecretSaslType  = sarama.SASLTypePlaintext
	DefaultSecretNamespace = "TestNamespace"

	ModifiedSecretUsername  = "TestModifiedUsername"
	ModifiedSecretPassword  = "TestModifiedPassword"
	ModifiedSecretSaslType  = sarama.SASLTypeSCRAMSHA256
	ModifiedSecretNamespace = "TestModifiedNamespace"
)

Constants

Variables

This section is empty.

Functions

func NewKafkaSecret

func NewKafkaSecret(options ...KafkaSecretOption) *corev1.Secret

NewKafkaSecret Creates A New Eventing-Kafka Secret For Testing

func WithEmptyUsername

func WithEmptyUsername(secret *corev1.Secret)

WithEmptyUsername Empties The Default Username Section Of The Secret Data

func WithMissingConfig

func WithMissingConfig(secret *corev1.Secret)

WithMissingConfig Removes the Data From The Secret

func WithModifiedNamespace

func WithModifiedNamespace(secret *corev1.Secret)

WithModifiedNamespace Modifies The Default Namespace Section Of The Secret Data

func WithModifiedPassword

func WithModifiedPassword(secret *corev1.Secret)

WithModifiedPassword Modifies The Default Password Section Of The Secret Data

func WithModifiedSaslType

func WithModifiedSaslType(secret *corev1.Secret)

WithModifiedSaslType Modifies The Default SaslType Section Of The Secret Data

func WithModifiedUsername

func WithModifiedUsername(secret *corev1.Secret)

WithModifiedUsername Modifies The Default Username Section Of The Secret Data

Types

type KafkaSecretOption

type KafkaSecretOption func(secret *corev1.Secret)

KafkaSecretOption Enables Customization Of An Eventing-Kafka Secret

Jump to

Keyboard shortcuts

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