# README
AWS SDK for Go awstesting packages
awstesting
is a collection of packages used internally by the SDK, and is subject to have breaking changes. This package is not internal
so that if you really need to use its functionality, and understand breaking changes will be made, you are able to.
These packages will be refactored in the future so that the API generator and model parsers are exposed cleanly on their own.
# Functions
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.
AssertXML verifies that the expect XML string matches the actual.
CleanupTLSBundleFiles takes variadic list of files to be deleted.
CreateClientTLSCertFiles returns a set of temporary files for the client certificate and key files.
CreateTLSBundleFiles returns the temporary filenames for the certificate key, and CA PEM content.
CreateTLSServer will create the TLS server on an open port using the certificate and key.
DidPanic returns if the function paniced and returns true if the function paniced.
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.
NewTLSClientCertServer creates a new HTTP test server initialize to require HTTP clients authenticate with TLS client certificates.
PopEnv takes the list of the environment values and injects them into the process's environment variable data.
SortedKeys returns a sorted slice of keys of a map.
SprintExpectActual returns a string for test failure cases when the actual value is not the same as the expected.
StashEnv stashes the current environment variables and returns an array of all environment values as key=val strings.
# Variables
ClientTLSCert is the Client PEM.
ClientTLSKey is the Client private key PEM.
TLSBundleCA is the CA PEM.
TLSBundleCert is the Server PEM.
TLSBundleKey is the Server private key PEM.
# Structs
DiscardAt is an io.WriteAt that discards the requested bytes to be written.
EndlessReader is an io.Reader that will always return that bytes have been read.
A FakeContext provides a simple stub implementation of a Context.
ReadCloser is a io.ReadCloser for unit testing.
ZeroReader is a io.Reader which will always write zeros to the byte slice provided.