The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Test::WebService::Amazon::DynamoDB - functions for testing the DynamoDB code

VERSION

version 0.001

DESCRIPTION

Mostly intended as convenience functions for the WebService::Amazon::DynamoDB::Server test suite.

ddb_server

Runs a block of code with a custom WebService::Amazon::DynamoDB::Server instance.

Primarily intended as a visual aid to allow setting up the test spec:

 my $srv = ddb_server {
  add_table name => 'xyz', ...;
  expect_events {
   put_item => 3,
   get_item => 4,
   describe_table => 1
  }
 };
 ...

Returns that instance when done.

add_table

Adds the given table spec.

expect_events

Indicates that we're expecting certain events to fire.

 expect_events {
  create_table => 7,
  delete_table => 2,
  put_item => 5
 }

AUTHOR

Tom Molesworth <cpan@perlsite.co.uk>

LICENSE

Copyright Tom Molesworth 2013-2015. Licensed under the same terms as Perl itself.