testutils

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DestinationConfig added in v0.3.0

func DestinationConfig(queueName string) config.Config

func NewSQSClient

func NewSQSClient(ctx context.Context, is *is.I) (*sqs.Client, func())

func SourceConfig added in v0.3.0

func SourceConfig(queueName string) config.Config

func StartDestination added in v0.3.0

func StartDestination(
	ctx context.Context,
	is *is.I,
	d sdk.Destination,
	queueName string,
) (sdk.Destination, func())

func StartSource added in v0.3.0

func StartSource(ctx context.Context, is *is.I, s sdk.Source, queueName string) (sdk.Source, func())

func TestContext

func TestContext(t *testing.T) context.Context

Types

type TestQueue

type TestQueue struct {
	Name string

	// pointer string makes it easier to work with the aws sdk
	URL *string
}

func CreateTestFifoQueue added in v0.3.0

func CreateTestFifoQueue(ctx context.Context, t *testing.T, is *is.I, client *sqs.Client) TestQueue

func CreateTestQueue

func CreateTestQueue(ctx context.Context, t *testing.T, is *is.I, client *sqs.Client) TestQueue

Jump to

Keyboard shortcuts

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