mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
17 lines
371 B
Ruby
17 lines
371 B
Ruby
|
for provider, config in dns_providers
|
||
|
|
||
|
params = {
|
||
|
:ip => '1.2.3.4',
|
||
|
:name => 'www.fogrecordtests.com',
|
||
|
:type => 'A'
|
||
|
}.merge!(config[:record_params] || {})
|
||
|
|
||
|
if !Fog.mocking? || provider[:mocked]
|
||
|
@zone = provider[:dns].zones.create(:domain => 'fogrecordtests.com')
|
||
|
|
||
|
model_tests(@zone.records, params, config[:mocked])
|
||
|
|
||
|
@zone.destroy
|
||
|
end
|
||
|
|
||
|
end
|