mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[aws|ses] test email verification
This commit is contained in:
parent
5f1262cef7
commit
2681ba50a6
2 changed files with 39 additions and 0 deletions
15
tests/aws/requests/ses/helper.rb
Normal file
15
tests/aws/requests/ses/helper.rb
Normal file
|
@ -0,0 +1,15 @@
|
|||
class AWS
|
||||
|
||||
module SES
|
||||
|
||||
module Formats
|
||||
|
||||
BASIC = {
|
||||
'ResponseMetadata' => {'RequestId' => String}
|
||||
}
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end
|
24
tests/aws/requests/ses/verified_email_address_tests.rb
Normal file
24
tests/aws/requests/ses/verified_email_address_tests.rb
Normal file
|
@ -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
|
Loading…
Add table
Reference in a new issue