dynamotestutils

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2023 License: AGPL-3.0 Imports: 13 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 NewDbContext

func NewDbContext(t *testing.T) (*session.Session, *dynamodb.DynamoDB, string)

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

func NewLocalstackSession

func NewLocalstackSession() *session.Session

NewLocalstackSession creates a session to connect to localstack (must be started beforehand)

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