mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[dreamhost|dns] record tests fixes
Wait 10 secs for the new record to appear.
This commit is contained in:
parent
90b5d84c6d
commit
4c95f8e209
1 changed files with 4 additions and 0 deletions
|
@ -32,6 +32,7 @@ Shindo.tests("Fog::DNS[:dreamhost] | record", ['dreamhost', 'dns']) do
|
|||
r = service.records.create :name => name,
|
||||
:type => 'A',
|
||||
:value => "8.8.8.8"
|
||||
sleep 10
|
||||
tests('#save') do
|
||||
test('returns Fog::DNS::Dreamhost::Record') do
|
||||
r.is_a? Fog::DNS::Dreamhost::Record
|
||||
|
@ -42,6 +43,9 @@ Shindo.tests("Fog::DNS[:dreamhost] | record", ['dreamhost', 'dns']) do
|
|||
test("name is #{name}") do
|
||||
r.name == name
|
||||
end
|
||||
test("listed") do
|
||||
!(service.records.find { |r| r.name == name }).nil?
|
||||
end
|
||||
end
|
||||
tests('#destroy') do
|
||||
test('returns true') { r.destroy == true }
|
||||
|
|
Loading…
Reference in a new issue