2.1.0 • Published 7 years ago

aws-test-utils v2.1.0

Weekly downloads
3
License
Apache-2.0
Repository
github
Last release
7 years ago

Node Test Utils for AWS

Provides test utils for writing tests that interact with AWS resources.

Dynamo

require('aws-test-utils').dynamo(dynamo_doc_client)

Pass a Dynamo Doc Client to create dynamo test util object. Provides utility methods to create/delete tables, load fixtures, get/delete items from dynamo table. You will need to configure AWS credentials as per AWS NodeJS SDK documentation.

Promise support

Create promise version as follows:

require('aws-test-utils').dynamo(dynamo_doc_client).promise()

Lambda

require('aws-test-utils').lambda

Provides utility methods to generate kinesis and dynamo stream payloads.

Kinesis

require('aws-test-utils').kinesis(kinesis_client)

Pass a Kinesis Client to create kinesis test util object. Provides utility methods to create/delete streams, get records from stream. You will need to configure AWS credentials as per AWS NodeJS SDK documentation.

Promise support

Create promise version as follows:

require('aws-test-utils').kinesis(kinesis_client).promise()

2.1.0

7 years ago

2.0.0

7 years ago

1.2.0

7 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.0

8 years ago