mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[aws|elb] Failing test for load_balancers marker support.
This commit is contained in:
parent
56403ea5f4
commit
7f37b9dd79
2 changed files with 8 additions and 1 deletions
|
@ -63,7 +63,7 @@ module Fog
|
|||
end.compact
|
||||
else
|
||||
self.data[:load_balancers].map { |lb, values| values.dup }
|
||||
end
|
||||
end[0...400]
|
||||
|
||||
response = Excon::Response.new
|
||||
response.status = 200
|
||||
|
|
|
@ -94,6 +94,13 @@ Shindo.tests('AWS::ELB | models', ['aws', 'elb']) do
|
|||
tests("contains elb").returns(true) { elb_ids.include? elb_id }
|
||||
end
|
||||
|
||||
if Fog.mocking?
|
||||
tests('all marker support') do
|
||||
extra_elb_ids = (1..1000).map {|n| Fog::AWS[:elb].load_balancers.create(:id => "#{elb_id}-extra-#{n}").id }
|
||||
tests('returns all elbs').returns(true) { (extra_elb_ids - Fog::AWS[:elb].load_balancers.all.map {|e| e.id }).empty? }
|
||||
end
|
||||
end
|
||||
|
||||
tests('get') do
|
||||
elb_get = Fog::AWS[:elb].load_balancers.get(elb_id)
|
||||
tests('ids match').returns(elb_id) { elb_get.id }
|
||||
|
|
Loading…
Add table
Reference in a new issue