mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[AWS|ELB] fix set_load_balancer_polices_for_backend mock to track set BackgroundServerDescriptions
This commit is contained in:
parent
5e88bb0606
commit
cea66c2cad
1 changed files with 2 additions and 0 deletions
|
@ -46,6 +46,8 @@ module Fog
|
||||||
description = load_balancer['BackendServerDescriptions'].find{|d| d["InstancePort"] == instance_port } || {}
|
description = load_balancer['BackendServerDescriptions'].find{|d| d["InstancePort"] == instance_port } || {}
|
||||||
description["InstancePort"] = instance_port
|
description["InstancePort"] = instance_port
|
||||||
description["PolicyNames"] = policy_names
|
description["PolicyNames"] = policy_names
|
||||||
|
load_balancer['BackendServerDescriptions'].delete_if{|d| d["InstancePort"] == instance_port }
|
||||||
|
load_balancer['BackendServerDescriptions'] << description
|
||||||
|
|
||||||
Excon::Response.new.tap do |response|
|
Excon::Response.new.tap do |response|
|
||||||
response.status = 200
|
response.status = 200
|
||||||
|
|
Loading…
Add table
Reference in a new issue