aws-ephemeral-service-go

module
v0.0.0-...-758b2ab Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2019 License: MIT

README

aws-ephemeral-service-go (awseph)

awseph is create aws services for testing easily.

Example


func TestMain() {
    ls := localstack.NewLocalStack()
    awsclient.UseLocalStack(ls)
	sess := session.Must(session.NewSession())

    name := "ephemeral"

    ephSession, teardown := awseph.NewScopedSession(sess)
    defer teardown()

    awsephservice.S3BucketForceDelete = true
    ephSession.S3BucketMustCreate(name)
    // write the test code for s3

    ephSession.SQSQueueMustCreate(name)
    // write the test code for sqs
}

Services

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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