awstesting

package
v1.1.1-0...-a170e9c Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2016 License: Apache-2.0 Imports: 16 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 GenerateAssertions

func GenerateAssertions(out interface{}, shape *api.Shape, prefix string) string

GenerateAssertions builds assertions for a shape based on its type.

The shape's recursive values also will have assertions generated for them.

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 ParamsStructFromJSON

func ParamsStructFromJSON(value interface{}, shape *api.Shape, prefixPackageName bool) string

ParamsStructFromJSON returns a JSON string representation of a structure.

func SortedKeys

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

SortedKeys returns a sorted slice of keys of a map.

Types

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/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 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