Documentation ¶
Index ¶
Constants ¶
View Source
const ( // SQSFifoServiceName is the service name for SQS FIFO queues SQSFifoServiceName = sqs.ServiceName + fifoSuffix )
Variables ¶
This section is empty.
Functions ¶
func AssertResourceExists ¶
AssertResourceExists asserts if the resource with the given name exists
func CreateResource ¶
CreateResource creates an AWS resource for testing purposes
func NewSession ¶
NewSession creates a new AWS session, suited for testing
func NewSessionWithRegion ¶
NewSessionWithRegion creates a new AWS session configured for specific region, suited for testing
Types ¶
type ResourceService ¶
type ResourceService interface { // CreateResourceForSession creates a resource for testing purposes CreateResourceForSession(sess *session.Session, name *string) (*string, error) // AssertResourceExistsForSession check if a resource exists for a given session AssertResourceExistsForSession(sess *session.Session, name *string) (bool, error) }
ResourceService isolates creation and checking existence by session for each supported resource
func GetResourceServiceByName ¶
func GetResourceServiceByName(r string) ResourceService
GetResourceServiceByName returns a ResourceService if it's supported
Click to show internal directories.
Click to hide internal directories.