mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[aws|dns] Changed #insync? to #ready?
This commit is contained in:
parent
ad81386d98
commit
7945ecb286
2 changed files with 3 additions and 3 deletions
|
@ -58,7 +58,7 @@ module Fog
|
|||
|
||||
# Returns true if record is insync. May only be called for newly created or modified records that
|
||||
# have a change_id and status set.
|
||||
def insync?
|
||||
def ready?
|
||||
requires :change_id, :status
|
||||
status == 'INSYNC'
|
||||
end
|
||||
|
|
|
@ -15,8 +15,8 @@ Shindo.tests("Fog::Dns[:aws] | record", ['aws', 'dns']) do
|
|||
end
|
||||
|
||||
# Waits for changes to sync to all Route 53 DNS servers. Usually takes ~30 seconds to complete.
|
||||
tests("#insync? - may take a minute to complete...").succeeds do
|
||||
@instance.wait_for { insync? }
|
||||
tests("#ready? - may take a minute to complete...").succeeds do
|
||||
@instance.wait_for { ready? }
|
||||
end
|
||||
|
||||
tests("#modify") do
|
||||
|
|
Loading…
Reference in a new issue