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:
parent
72328beb43
commit
85e533294c
2 changed files with 6 additions and 1 deletions
|
@ -74,7 +74,7 @@ module Fog
|
|||
reset_load_balancer
|
||||
end
|
||||
|
||||
when 'CanonicalHostedZoneName', 'CanonicalHostedZoneNameID', 'LoadBalancerName', 'DNSName'
|
||||
when 'CanonicalHostedZoneName', 'CanonicalHostedZoneNameID', 'LoadBalancerName', 'DNSName', 'Scheme'
|
||||
@load_balancer[name] = value
|
||||
when 'CreatedTime'
|
||||
@load_balancer[name] = Time.parse(value)
|
||||
|
|
|
@ -59,6 +59,11 @@ Shindo.tests('AWS::ELB | models', ['aws', 'elb']) do
|
|||
tests("subnet ids are correct").returns(@subnet_id) { elb2.subnet_ids.first }
|
||||
elb2.destroy
|
||||
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?
|
||||
@igw.detach(@vpc_id)
|
||||
@igw.destroy
|
||||
|
|
Loading…
Add table
Reference in a new issue