2010-12-29 20:23:40 -05:00
|
|
|
for provider, config in dns_providers
|
|
|
|
|
2011-01-03 14:23:51 -05:00
|
|
|
Shindo.tests("#{provider}::DNS | record", [provider.to_s.downcase]) do
|
2010-12-29 20:23:40 -05:00
|
|
|
|
2011-01-03 14:23:51 -05:00
|
|
|
params = {
|
|
|
|
:ip => '1.2.3.4',
|
|
|
|
:name => 'www.fogrecordtests.com',
|
|
|
|
:type => 'A'
|
|
|
|
}.merge!(config[:record_params] || {})
|
2010-12-29 20:23:40 -05:00
|
|
|
|
2011-01-03 14:48:55 -05:00
|
|
|
if !Fog.mocking? || config[:mocked]
|
2011-01-03 14:23:51 -05:00
|
|
|
@zone = provider[:dns].zones.create(:domain => 'fogrecordtests.com')
|
|
|
|
|
|
|
|
model_tests(@zone.records, params, config[:mocked])
|
|
|
|
|
|
|
|
@zone.destroy
|
|
|
|
end
|
2010-12-29 20:23:40 -05:00
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|