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

[AWS|ELB] fix backend server descriptions model test.

Reload the elb to pickup the latest descriptions.
This commit is contained in:
Michael Hale 2013-08-01 15:47:55 -04:00
parent 80aaf1e254
commit 6ca9fd7a70

View file

@ -292,7 +292,7 @@ Shindo.tests('AWS::ELB | models', ['aws', 'elb']) do
port = 80
Fog::AWS[:elb].create_load_balancer_policy(elb.id, policy, 'ProxyProtocolPolicyType', { "ProxyProtocol" => true })
Fog::AWS[:elb].set_load_balancer_policies_for_backend_server(elb.id, port, [policy]).body
elb.reload
returns([policy]) { elb.backend_server_descriptions.get(port).policy_names }
end
end