-
-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #415 from inokappa/acm_arn_support
Merged.
- Loading branch information
Showing
7 changed files
with
81 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,30 @@ | ||
require 'spec_helper' | ||
Awspec::Stub.load 'acm' | ||
|
||
describe acm('example.com') do | ||
describe acm('example.jp') do | ||
its(:certificate_arn) { should eq 'arn:aws:acm:region:123456789010:certificate/12345678-1234-1234-1234-123456789000' } | ||
end | ||
|
||
describe acm('arn:aws:acm:region:123456789010:certificate/12345678-1234-1234-1234-123456789000') do | ||
it { should exist } | ||
it { should be_issued } | ||
it { should have_domain_name('example.jp') } | ||
its(:type) { should eq 'AMAZON_ISSUED' } | ||
it do | ||
should have_domain_validation_option(domain_name: 'example.jp', | ||
validation_method: 'DNS', | ||
validation_status: 'SUCCESS') | ||
end | ||
end | ||
|
||
describe acm('arn:aws:acm:region:123456789010:certificate/12345678-1234-1234-1234-123456789011') do | ||
it { should exist } | ||
end | ||
|
||
describe acm('example.com') do | ||
it 'should be a Exception when duplicated domain name' do | ||
expect { Awspec::Type::Acm.new('example.com').id }.to raise_error( | ||
Awspec::DuplicatedResourceTypeError | ||
) | ||
end | ||
end |