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

merge promotion results

* will update the state to "modifying"
This commit is contained in:
Josh Lane 2015-07-28 13:52:31 -07:00
parent f68bf1cecb
commit e0575cb2a3
2 changed files with 4 additions and 3 deletions

View file

@ -88,7 +88,9 @@ module Fog
def promote_read_replica
requires :id
service.promote_read_replica(id)
data = service.promote_read_replica(id).body["PromoteReadReplicaResult"]["DBInstance"]
merge_attributes(data)
end
alias promote promote_read_replica

View file

@ -102,8 +102,7 @@ Shindo.tests("AWS::RDS | server", ['aws', 'rds']) do
end
tests('#promote_read_replica').succeeds do
replica.promote
replica.wait_for { state != "modifying" }
replica.promote.wait_for { state != "modifying" }
replica.read_replica_source == nil
end