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

fix parser to show scheme, add test for internal ELB creation

This commit is contained in:
Aaron Bell 2012-06-13 09:17:56 -07:00
parent 72328beb43
commit 85e533294c
2 changed files with 6 additions and 1 deletions

View file

@ -74,7 +74,7 @@ module Fog
reset_load_balancer reset_load_balancer
end end
when 'CanonicalHostedZoneName', 'CanonicalHostedZoneNameID', 'LoadBalancerName', 'DNSName' when 'CanonicalHostedZoneName', 'CanonicalHostedZoneNameID', 'LoadBalancerName', 'DNSName', 'Scheme'
@load_balancer[name] = value @load_balancer[name] = value
when 'CreatedTime' when 'CreatedTime'
@load_balancer[name] = Time.parse(value) @load_balancer[name] = Time.parse(value)

View file

@ -59,6 +59,11 @@ Shindo.tests('AWS::ELB | models', ['aws', 'elb']) do
tests("subnet ids are correct").returns(@subnet_id) { elb2.subnet_ids.first } tests("subnet ids are correct").returns(@subnet_id) { elb2.subnet_ids.first }
elb2.destroy elb2.destroy
end end
tests('with vpc internal') do
elb2 = Fog::AWS[:elb].load_balancers.create(:id => "#{elb_id}-2", :subnet_ids => [@subnet_id], :scheme => 'internal')
tests("scheme is internal").returns(@scheme) { elb2.scheme }
elb2.destroy
end
if !Fog.mocking? if !Fog.mocking?
@igw.detach(@vpc_id) @igw.detach(@vpc_id)
@igw.destroy @igw.destroy