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:
parent
f68bf1cecb
commit
e0575cb2a3
2 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue