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

- func AssertJSON(t *testing.T, expect, actual string, msgAndArgs ...interface{}) bool
- func AssertQuery(t *testing.T, expect, actual string, msgAndArgs ...interface{}) bool
- func AssertURL(t *testing.T, expect, actual string, msgAndArgs ...interface{}) bool
- func AssertXML(t *testing.T, expect, actual string, container interface{}, msgAndArgs ...interface{}) bool
- func Match(t *testing.T, regex, expected string)
- func NewClient(cfgs ...*aws.Config) *client.Client
- func NewMockClient(cfgs ...*aws.Config) *client.Client
- func SortedKeys(m map[string]interface{}) []string
- type ReadCloser
- type ZeroReader

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

AssertJSON verifies that the expect json string matches the actual.

AssertQuery verifies the expect HTTP query string matches the actual.

AssertURL verifies the expected URL is matches the actual.

❖

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

AssertXML verifies that the expect xml string matches the actual.

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

NewClient creates and initializes a generic service client for testing.

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

SortedKeys returns a sorted slice of keys of a map.

❖

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 (r *ReadCloser) Close() error

Close sets Closed to true and returns no error

❖

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 struct{}

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

❖

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

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

Path | Synopsis |
---|---|

integration | Package integration performs initialization and validation for integration tests. |

integration/smoke | Package smoke contains shared step definitions that are used across integration tests |

integration/smoke/acm | Package acm provides gucumber integration tests support. |

integration/smoke/apigateway | Package apigateway provides gucumber integration tests support. |

integration/smoke/autoscaling | Package autoscaling provides gucumber integration tests support. |

integration/smoke/cloudformation | Package cloudformation provides gucumber integration tests support. |

integration/smoke/cloudfront | Package cloudfront provides gucumber integration tests support. |

integration/smoke/cloudhsm | Package cloudhsm provides gucumber integration tests support. |

integration/smoke/cloudsearch | Package cloudsearch provides gucumber integration tests support. |

integration/smoke/cloudtrail | Package cloudtrail provides gucumber integration tests support. |

integration/smoke/cloudwatch | Package cloudwatch provides gucumber integration tests support. |

integration/smoke/cloudwatchlogs | Package cloudwatchlogs provides gucumber integration tests support. |

integration/smoke/codecommit | Package codecommit provides gucumber integration tests support. |

integration/smoke/codedeploy | Package codedeploy provides gucumber integration tests support. |

integration/smoke/codepipeline | Package codepipeline provides gucumber integration tests support. |

integration/smoke/cognitoidentity | Package cognitoidentity provides gucumber integration tests support. |

integration/smoke/cognitosync | Package cognitosync provides gucumber integration tests support. |

integration/smoke/configservice | Package configservice provides gucumber integration tests support. |

integration/smoke/datapipeline | Package datapipeline provides gucumber integration tests support. |

integration/smoke/devicefarm | Package devicefarm provides gucumber integration tests support. |

integration/smoke/directconnect | Package directconnect provides gucumber integration tests support. |

integration/smoke/directoryservice | Package directoryservice provides gucumber integration tests support. |

integration/smoke/dynamodb | Package dynamodb provides gucumber integration tests support. |

integration/smoke/dynamodbstreams | Package dynamodbstreams provides gucumber integration tests support. |

integration/smoke/ec2 | Package ec2 provides gucumber integration tests support. |

integration/smoke/ecs | Package ecs provides gucumber integration tests support. |

integration/smoke/efs | Package efs provides gucumber integration tests support. |

integration/smoke/elasticache | Package elasticache provides gucumber integration tests support. |

integration/smoke/elasticbeanstalk | Package elasticbeanstalk provides gucumber integration tests support. |

integration/smoke/elasticloadbalancing | Package elasticloadbalancing provides gucumber integration tests support. |

integration/smoke/elastictranscoder | Package elastictranscoder provides gucumber integration tests support. |

integration/smoke/emr | Package emr provides gucumber integration tests support. |

integration/smoke/es | Package es provides gucumber integration tests support. |

integration/smoke/glacier | Package glacier provides gucumber integration tests support. |

integration/smoke/iam | Package iam provides gucumber integration tests support. |

integration/smoke/iotdataplane | Package iotdataplane provides gucumber integration tests support. |

integration/smoke/kinesis | Package kinesis provides gucumber integration tests support. |

integration/smoke/kms | Package kms provides gucumber integration tests support. |

integration/smoke/lambda | Package lambda provides gucumber integration tests support. |

integration/smoke/machinelearning | Package machinelearning provides gucumber integration tests support. |

integration/smoke/opsworks | Package opsworks provides gucumber integration tests support. |

integration/smoke/rds | Package rds provides gucumber integration tests support. |

integration/smoke/redshift | Package redshift provides gucumber integration tests support. |

integration/smoke/route53 | Package route53 provides gucumber integration tests support. |

integration/smoke/route53domains | Package route53domains provides gucumber integration tests support. |

integration/smoke/ses | Package ses provides gucumber integration tests support. |

integration/smoke/simpledb | Package simpledb provides gucumber integration tests support. |

integration/smoke/sns | Package sns provides gucumber integration tests support. |

integration/smoke/sqs | Package sqs provides gucumber integration tests support. |

integration/smoke/ssm | Package ssm provides gucumber integration tests support. |

integration/smoke/storagegateway | Package storagegateway provides gucumber integration tests support. |

integration/smoke/sts | Package sts provides gucumber integration tests support. |

integration/smoke/support | Package support provides gucumber integration tests support. |

integration/smoke/swf | Package swf provides gucumber integration tests support. |

integration/smoke/waf | Package waf provides gucumber integration tests support. |

integration/smoke/workspaces | Package workspaces provides gucumber integration tests support. |

mock | |

performance | Package performance provides gucumber integration tests support. |

unit | Package 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).