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/zones_tests.rb
Joshua Gross c7ec9711be Wrote shindo tests for all supported requests. Resulted in a lot of debuggin of
request methods.  As well update zone/record models to work in simple cases.
2014-01-23 16:27:04 -05:00

18 lines
429 B
Ruby

for provider, config in dns_providers
# FIXME: delay/timing breaks things :(
next if [:dnsmadeeasy, :rage4].include?(provider)
domain_name = uniq_id + '.com'
Shindo.tests("Fog::DNS[:#{provider}] | zones", [provider.to_s]) do
zone_attributes = {
:domain => domain_name
}.merge!(config[:zone_attributes] || {})
collection_tests(Fog::DNS[provider].zones, zone_attributes, config[:mocked])
end
end