Skip to content

Commit

Permalink
[aws|ses] test email verification
Browse files Browse the repository at this point in the history
  • Loading branch information
geemus committed Jan 27, 2011
1 parent 5f1262c commit 2681ba5
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/aws/requests/ses/helper.rb
@@ -0,0 +1,15 @@
class AWS

module SES

module Formats

BASIC = {
'ResponseMetadata' => {'RequestId' => String}
}

end

end

end
24 changes: 24 additions & 0 deletions tests/aws/requests/ses/verified_email_address_tests.rb
@@ -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.