mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
16 lines
404 B
Ruby
16 lines
404 B
Ruby
Shindo.tests("Fog::Dns[:aws] | record", ['aws', 'dns']) do
|
|
|
|
pending if Fog.mocking?
|
|
tests("zones#create").succeeds do
|
|
@zone = Fog::DNS[:aws].zones.create(:domain => generate_unique_domain)
|
|
end
|
|
|
|
params = { :name => @zone.domain, :type => 'A', :ttl => 3600, :value => ['1.2.3.4'] }
|
|
model_tests(@zone.records, params, false)
|
|
|
|
tests("zones#destroy").succeeds do
|
|
@zone.destroy
|
|
end
|
|
|
|
end
|
|
|