dynamotestutils

package
v1.5.18 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertAfter

func AssertAfter(t *testing.T, db *dynamodb.DynamoDB, table string, expected []map[string]*dynamodb.AttributeValue) bool

func NewClientV1 added in v1.5.18

func NewClientV1(t *testing.T) (*sessionv1.Session, *dynamodbv1.DynamoDB, string)

NewClientV1 generate AWS session, DynamoDB client, and a table name that will be deleted at the end of the function.

func NewClientV2 added in v1.5.18

func NewClientV2(t *testing.T) (aws.Config, *dynamodb.Client, string)

func NewLocalstackConfig added in v1.5.18

func NewLocalstackConfig(ctx context.Context) aws.Config

func NewLocalstackSession

func NewLocalstackSession() *sessionv1.Session

func NewTestTableName

func NewTestTableName(t *testing.T) string

func SetContent

func SetContent(t *testing.T, db *dynamodb.DynamoDB, table string, entries []map[string]*dynamodb.AttributeValue)

Types

This section is empty.

Jump to

Keyboard shortcuts

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