aws-sdk-go: github.com/spaceweasel/aws-sdk-go/awstesting Index | Files | Directories

package awstesting

import "github.com/spaceweasel/aws-sdk-go/awstesting"

Index

Package Files

assert.go client.go sort_keys.go util.go

func AssertJSON Uses

func AssertJSON(t *testing.T, expect, actual string, msgAndArgs ...interface{}) bool

AssertJSON verifies that the expect json string matches the actual.

func AssertQuery Uses

func AssertQuery(t *testing.T, expect, actual string, msgAndArgs ...interface{}) bool

AssertQuery verifies the expect HTTP query string matches the actual.

func AssertURL Uses

func AssertURL(t *testing.T, expect, actual string, msgAndArgs ...interface{}) bool

AssertURL verifies the expected URL is matches the actual.

func AssertXML Uses

func AssertXML(t *testing.T, expect, actual string, container interface{}, msgAndArgs ...interface{}) bool

AssertXML verifies that the expect xml string matches the actual.

func Match Uses

func Match(t *testing.T, regex, expected string)

Match is a testing helper to test for testing error by comparing expected with a regular expression.

func NewClient Uses

func NewClient(cfgs ...*aws.Config) *client.Client

NewClient creates and initializes a generic service client for testing.

func NewMockClient Uses

func NewMockClient(cfgs ...*aws.Config) *client.Client

NewMockClient creates and initializes a client that will connect to the mock server

func SortedKeys Uses

func SortedKeys(m map[string]interface{}) []string

SortedKeys returns a sorted slice of keys of a map.

type ReadCloser Uses

type ReadCloser struct {
    Size   int
    Closed bool

    FillData func(bool, []byte, int, int)
    // contains filtered or unexported fields
}

ReadCloser is a io.ReadCloser for unit testing. Designed to test for leaks and whether a handle has been closed

func (*ReadCloser) Close Uses

func (r *ReadCloser) Close() error

Close sets Closed to true and returns no error

func (*ReadCloser) Read Uses

func (r *ReadCloser) Read(b []byte) (int, error)

Read will call FillData and fill it with whatever data needed. Decrements the size until zero, then return io.EOF.

type ZeroReader Uses

type ZeroReader struct{}

ZeroReader is a io.Reader which will always write zeros to the byte slice provided.

func (*ZeroReader) Read Uses

func (r *ZeroReader) Read(b []byte) (int, error)

Read fills the provided byte slice with zeros returning the number of bytes written.

Directories

PathSynopsis
integrationPackage integration performs initialization and validation for integration tests.
integration/smokePackage smoke contains shared step definitions that are used across integration tests
integration/smoke/acmPackage acm provides gucumber integration tests support.
integration/smoke/apigatewayPackage apigateway provides gucumber integration tests support.
integration/smoke/autoscalingPackage autoscaling provides gucumber integration tests support.
integration/smoke/cloudformationPackage cloudformation provides gucumber integration tests support.
integration/smoke/cloudfrontPackage cloudfront provides gucumber integration tests support.
integration/smoke/cloudhsmPackage cloudhsm provides gucumber integration tests support.
integration/smoke/cloudsearchPackage cloudsearch provides gucumber integration tests support.
integration/smoke/cloudtrailPackage cloudtrail provides gucumber integration tests support.
integration/smoke/cloudwatchPackage cloudwatch provides gucumber integration tests support.
integration/smoke/cloudwatchlogsPackage cloudwatchlogs provides gucumber integration tests support.
integration/smoke/codecommitPackage codecommit provides gucumber integration tests support.
integration/smoke/codedeployPackage codedeploy provides gucumber integration tests support.
integration/smoke/codepipelinePackage codepipeline provides gucumber integration tests support.
integration/smoke/cognitoidentityPackage cognitoidentity provides gucumber integration tests support.
integration/smoke/cognitosyncPackage cognitosync provides gucumber integration tests support.
integration/smoke/configservicePackage configservice provides gucumber integration tests support.
integration/smoke/datapipelinePackage datapipeline provides gucumber integration tests support.
integration/smoke/devicefarmPackage devicefarm provides gucumber integration tests support.
integration/smoke/directconnectPackage directconnect provides gucumber integration tests support.
integration/smoke/directoryservicePackage directoryservice provides gucumber integration tests support.
integration/smoke/dynamodbPackage dynamodb provides gucumber integration tests support.
integration/smoke/dynamodbstreamsPackage dynamodbstreams provides gucumber integration tests support.
integration/smoke/ec2Package ec2 provides gucumber integration tests support.
integration/smoke/ecsPackage ecs provides gucumber integration tests support.
integration/smoke/efsPackage efs provides gucumber integration tests support.
integration/smoke/elasticachePackage elasticache provides gucumber integration tests support.
integration/smoke/elasticbeanstalkPackage elasticbeanstalk provides gucumber integration tests support.
integration/smoke/elasticloadbalancingPackage elasticloadbalancing provides gucumber integration tests support.
integration/smoke/elastictranscoderPackage elastictranscoder provides gucumber integration tests support.
integration/smoke/emrPackage emr provides gucumber integration tests support.
integration/smoke/esPackage es provides gucumber integration tests support.
integration/smoke/glacierPackage glacier provides gucumber integration tests support.
integration/smoke/iamPackage iam provides gucumber integration tests support.
integration/smoke/iotdataplanePackage iotdataplane provides gucumber integration tests support.
integration/smoke/kinesisPackage kinesis provides gucumber integration tests support.
integration/smoke/kmsPackage kms provides gucumber integration tests support.
integration/smoke/lambdaPackage lambda provides gucumber integration tests support.
integration/smoke/machinelearningPackage machinelearning provides gucumber integration tests support.
integration/smoke/opsworksPackage opsworks provides gucumber integration tests support.
integration/smoke/rdsPackage rds provides gucumber integration tests support.
integration/smoke/redshiftPackage redshift provides gucumber integration tests support.
integration/smoke/route53Package route53 provides gucumber integration tests support.
integration/smoke/route53domainsPackage route53domains provides gucumber integration tests support.
integration/smoke/sesPackage ses provides gucumber integration tests support.
integration/smoke/simpledbPackage simpledb provides gucumber integration tests support.
integration/smoke/snsPackage sns provides gucumber integration tests support.
integration/smoke/sqsPackage sqs provides gucumber integration tests support.
integration/smoke/ssmPackage ssm provides gucumber integration tests support.
integration/smoke/storagegatewayPackage storagegateway provides gucumber integration tests support.
integration/smoke/stsPackage sts provides gucumber integration tests support.
integration/smoke/supportPackage support provides gucumber integration tests support.
integration/smoke/swfPackage swf provides gucumber integration tests support.
integration/smoke/wafPackage waf provides gucumber integration tests support.
integration/smoke/workspacesPackage workspaces provides gucumber integration tests support.
mock
performancePackage performance provides gucumber integration tests support.
unitPackage unit performs initialization and validation for unit tests

Package awstesting imports 14 packages (graph). Updated 2018-04-10. Refresh now. Tools for package owners. This is a quick bug-fix fork (has fewer than three commits, and only during the week it was created).