awstesting

package
v1.1.35-0...-ce9b3bb Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2016 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertJSON

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

AssertJSON verifies that the expect json string matches the actual.

func AssertQuery

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

AssertQuery verifies the expect HTTP query string matches the actual.

func AssertURL

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

AssertURL verifies the expected URL is matches the actual.

func AssertXML

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

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

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

NewClient creates and initializes a generic service client for testing.

func NewMockClient

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

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

func SortedKeys

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

SortedKeys returns a sorted slice of keys of a map.

Types

type ReadCloser

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

func (r *ReadCloser) Close() error

Close sets Closed to true and returns no error

func (*ReadCloser) Read

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

type ZeroReader struct{}

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

func (*ZeroReader) Read

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

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

Directories

Path Synopsis
Package integration performs initialization and validation for integration tests.
Package integration performs initialization and validation for integration tests.
smoke
Package smoke contains shared step definitions that are used across integration tests
Package smoke contains shared step definitions that are used across integration tests
smoke/acm
Package acm provides gucumber integration tests support.
Package acm provides gucumber integration tests support.
smoke/apigateway
Package apigateway provides gucumber integration tests support.
Package apigateway provides gucumber integration tests support.
smoke/applicationdiscoveryservice
Package applicationdiscoveryservice provides gucumber integration tests support.
Package applicationdiscoveryservice provides gucumber integration tests support.
smoke/autoscaling
Package autoscaling provides gucumber integration tests support.
Package autoscaling provides gucumber integration tests support.
smoke/cloudformation
Package cloudformation provides gucumber integration tests support.
Package cloudformation provides gucumber integration tests support.
smoke/cloudfront
Package cloudfront provides gucumber integration tests support.
Package cloudfront provides gucumber integration tests support.
smoke/cloudhsm
Package cloudhsm provides gucumber integration tests support.
Package cloudhsm provides gucumber integration tests support.
smoke/cloudsearch
Package cloudsearch provides gucumber integration tests support.
Package cloudsearch provides gucumber integration tests support.
smoke/cloudtrail
Package cloudtrail provides gucumber integration tests support.
Package cloudtrail provides gucumber integration tests support.
smoke/cloudwatch
Package cloudwatch provides gucumber integration tests support.
Package cloudwatch provides gucumber integration tests support.
smoke/cloudwatchlogs
Package cloudwatchlogs provides gucumber integration tests support.
Package cloudwatchlogs provides gucumber integration tests support.
smoke/codecommit
Package codecommit provides gucumber integration tests support.
Package codecommit provides gucumber integration tests support.
smoke/codedeploy
Package codedeploy provides gucumber integration tests support.
Package codedeploy provides gucumber integration tests support.
smoke/codepipeline
Package codepipeline provides gucumber integration tests support.
Package codepipeline provides gucumber integration tests support.
smoke/cognitoidentity
Package cognitoidentity provides gucumber integration tests support.
Package cognitoidentity provides gucumber integration tests support.
smoke/cognitosync
Package cognitosync provides gucumber integration tests support.
Package cognitosync provides gucumber integration tests support.
smoke/configservice
Package configservice provides gucumber integration tests support.
Package configservice provides gucumber integration tests support.
smoke/datapipeline
Package datapipeline provides gucumber integration tests support.
Package datapipeline provides gucumber integration tests support.
smoke/devicefarm
Package devicefarm provides gucumber integration tests support.
Package devicefarm provides gucumber integration tests support.
smoke/directconnect
Package directconnect provides gucumber integration tests support.
Package directconnect provides gucumber integration tests support.
smoke/directoryservice
Package directoryservice provides gucumber integration tests support.
Package directoryservice provides gucumber integration tests support.
smoke/dynamodb
Package dynamodb provides gucumber integration tests support.
Package dynamodb provides gucumber integration tests support.
smoke/dynamodbstreams
Package dynamodbstreams provides gucumber integration tests support.
Package dynamodbstreams provides gucumber integration tests support.
smoke/ec2
Package ec2 provides gucumber integration tests support.
Package ec2 provides gucumber integration tests support.
smoke/ecs
Package ecs provides gucumber integration tests support.
Package ecs provides gucumber integration tests support.
smoke/efs
Package efs provides gucumber integration tests support.
Package efs provides gucumber integration tests support.
smoke/elasticache
Package elasticache provides gucumber integration tests support.
Package elasticache provides gucumber integration tests support.
smoke/elasticbeanstalk
Package elasticbeanstalk provides gucumber integration tests support.
Package elasticbeanstalk provides gucumber integration tests support.
smoke/elasticloadbalancing
Package elasticloadbalancing provides gucumber integration tests support.
Package elasticloadbalancing provides gucumber integration tests support.
smoke/elastictranscoder
Package elastictranscoder provides gucumber integration tests support.
Package elastictranscoder provides gucumber integration tests support.
smoke/emr
Package emr provides gucumber integration tests support.
Package emr provides gucumber integration tests support.
smoke/es
Package es provides gucumber integration tests support.
Package es provides gucumber integration tests support.
smoke/glacier
Package glacier provides gucumber integration tests support.
Package glacier provides gucumber integration tests support.
smoke/iam
Package iam provides gucumber integration tests support.
Package iam provides gucumber integration tests support.
smoke/iotdataplane
Package iotdataplane provides gucumber integration tests support.
Package iotdataplane provides gucumber integration tests support.
smoke/kinesis
Package kinesis provides gucumber integration tests support.
Package kinesis provides gucumber integration tests support.
smoke/kms
Package kms provides gucumber integration tests support.
Package kms provides gucumber integration tests support.
smoke/lambda
Package lambda provides gucumber integration tests support.
Package lambda provides gucumber integration tests support.
smoke/machinelearning
Package machinelearning provides gucumber integration tests support.
Package machinelearning provides gucumber integration tests support.
smoke/opsworks
Package opsworks provides gucumber integration tests support.
Package opsworks provides gucumber integration tests support.
smoke/rds
Package rds provides gucumber integration tests support.
Package rds provides gucumber integration tests support.
smoke/redshift
Package redshift provides gucumber integration tests support.
Package redshift provides gucumber integration tests support.
smoke/route53
Package route53 provides gucumber integration tests support.
Package route53 provides gucumber integration tests support.
smoke/route53domains
Package route53domains provides gucumber integration tests support.
Package route53domains provides gucumber integration tests support.
smoke/ses
Package ses provides gucumber integration tests support.
Package ses provides gucumber integration tests support.
smoke/simpledb
Package simpledb provides gucumber integration tests support.
Package simpledb provides gucumber integration tests support.
smoke/sns
Package sns provides gucumber integration tests support.
Package sns provides gucumber integration tests support.
smoke/sqs
Package sqs provides gucumber integration tests support.
Package sqs provides gucumber integration tests support.
smoke/ssm
Package ssm provides gucumber integration tests support.
Package ssm provides gucumber integration tests support.
smoke/storagegateway
Package storagegateway provides gucumber integration tests support.
Package storagegateway provides gucumber integration tests support.
smoke/sts
Package sts provides gucumber integration tests support.
Package sts provides gucumber integration tests support.
smoke/support
Package support provides gucumber integration tests support.
Package support provides gucumber integration tests support.
smoke/swf
Package swf provides gucumber integration tests support.
Package swf provides gucumber integration tests support.
smoke/waf
Package waf provides gucumber integration tests support.
Package waf provides gucumber integration tests support.
smoke/workspaces
Package workspaces provides gucumber integration tests support.
Package workspaces provides gucumber integration tests support.
Package performance provides gucumber integration tests support.
Package performance provides gucumber integration tests support.
Package unit performs initialization and validation for unit tests
Package unit performs initialization and validation for unit tests

Jump to

Keyboard shortcuts

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