Permalink
Browse files

[aws|ses] test email verification

  • Loading branch information...
1 parent 5f1262c commit 2681ba50a69fdb6d4bc5050ff5a2049a0ee17051 @geemus committed Jan 27, 2011
Showing with 39 additions and 0 deletions.
  1. +15 −0 tests/aws/requests/ses/helper.rb
  2. +24 −0 tests/aws/requests/ses/verified_email_address_tests.rb
@@ -0,0 +1,15 @@
+class AWS
+
+ module SES
+
+ module Formats
+
+ BASIC = {
+ 'ResponseMetadata' => {'RequestId' => String}
+ }
+
+ end
+
+ end
+
+end
@@ -0,0 +1,24 @@
+Shindo.tests('AWS::SES | verified email address requests', ['aws', 'ses']) do
+
+ tests('success') do
+
+ tests("#verify_email_address('test@example.com')").formats(AWS::SES::Formats::BASIC) do
+ AWS[:ses].verify_email_address('test@example.com').body
+ end
+
+ tests("#list_verified_email_addresses").formats(AWS::SES::Formats::BASIC.merge('VerifiedEmailAddresses' => [String])) do
+ AWS[:ses].list_verified_email_addresses.body
+ end
+
+ # email won't be there to delete, but succeeds regardless
+ tests("#delete_verified_email_address('test@example.com')").formats(AWS::SES::Formats::BASIC) do
+ AWS[:ses].delete_verified_email_address('notaanemail@example.com').body
+ end
+
+ end
+
+ tests('failure') do
+
+ end
+
+end

0 comments on commit 2681ba5

Please sign in to comment.