1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/tests/dns/models/records_tests.rb

21 lines
492 B
Ruby
Raw Normal View History

2010-12-29 20:23:40 -05:00
for provider, config in dns_providers
Shindo.tests("#{provider}::DNS | records", [provider.to_s.downcase]) do
2010-12-29 20:23:40 -05:00
2011-01-03 16:36:31 -05:00
attributes = {
:ip => '1.2.3.4',
:name => 'www.fogrecordstests.com',
:type => 'A'
2011-01-03 16:36:31 -05:00
}.merge!(config[:records_attributes] || {})
2010-12-29 20:23:40 -05:00
2011-01-03 16:36:31 -05:00
if !Fog.mocking? || configa[:mocked]
@zone = provider[:dns].zones.create(:domain => 'fogrecordstests.com')
2011-01-03 16:36:31 -05:00
collection_tests(@zone.records, attributes, config[:mocked])
@zone.destroy
end
2010-12-29 20:23:40 -05:00
end
end