mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
4c24e5fe5c
closes #191
25 lines
No EOL
609 B
Ruby
25 lines
No EOL
609 B
Ruby
for provider, config in dns_providers
|
|
|
|
Shindo.tests("#{provider}::DNS | records", [provider.to_s.downcase]) do
|
|
|
|
record_attributes = {
|
|
:name => 'www.fogrecordstests.com',
|
|
:type => 'A',
|
|
:value => '1.2.3.4'
|
|
}.merge!(config[:record_attributes] || {})
|
|
|
|
if !Fog.mocking? || config[:mocked]
|
|
zone_attributes = {
|
|
:domain => 'fogrecordstests.com'
|
|
}.merge(config[:zone_attributes] || {})
|
|
|
|
@zone = provider[:dns].zones.create(zone_attributes)
|
|
|
|
collection_tests(@zone.records, record_attributes, config[:mocked])
|
|
|
|
@zone.destroy
|
|
end
|
|
|
|
end
|
|
|
|
end |