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

Add a failure for #1014. ✌️

This commit is contained in:
Dylan Egan 2012-07-04 17:33:51 +02:00
parent caab191122
commit 868ae0375e

View file

@ -1,6 +1,6 @@
Shindo.tests("Fog::DNS[:aws] | records", ['aws', 'dns']) do Shindo.tests("Fog::DNS[:aws] | records", ['aws', 'dns']) do
pending if Fog.mocking? pending if Fog.mocking?
tests("zones#create").succeeds do tests("zones#create").succeeds do
@zone = Fog::DNS[:aws].zones.create(:domain => generate_unique_domain) @zone = Fog::DNS[:aws].zones.create(:domain => generate_unique_domain)
end end
@ -16,6 +16,24 @@ Shindo.tests("Fog::DNS[:aws] | records", ['aws', 'dns']) do
collection_tests(@zone.records, params, false) collection_tests(@zone.records, params, false)
end end
records = []
100.times do |i|
records << @zone.records.create(:name => "#{i}.#{@zone.domain}", :type => "A", :ttl => 3600, :value => ['1.2.3.4'])
end
tests("#all!").returns(102) do
@zone.records.all!.size
end
tests("#all!").returns(102) do
@zone.records.all!.size
end
records.each do |record|
record.destroy
end
tests("zones#destroy").succeeds do tests("zones#destroy").succeeds do
@zone.destroy @zone.destroy
end end