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