timeout if cycling a server takes longer than inservice_time_allowed
This commit is contained in:
@@ -6,7 +6,9 @@ describe 'aws-ha-release' do
|
||||
as_group_name: 'test_group',
|
||||
aws_access_key: 'testaccesskey',
|
||||
aws_secret_key: 'testsecretkey',
|
||||
region: 'test-region'
|
||||
region: 'test-region',
|
||||
inservice_time_allowed: 300,
|
||||
elb_timeout: 0
|
||||
}
|
||||
end
|
||||
|
||||
|
||||
@@ -48,7 +48,11 @@ module AWS
|
||||
end
|
||||
|
||||
def ec2_instances
|
||||
[]
|
||||
@ec2_instances ||= [AWS::FakeEC2::Instance.new, AWS::FakeEC2::Instance.new]
|
||||
end
|
||||
|
||||
def load_balancers
|
||||
@load_balancers ||= AWS::FakeELB::LoadBalancerCollection.new
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -6,6 +6,9 @@ module AWS
|
||||
class Instance
|
||||
def initialize
|
||||
end
|
||||
|
||||
def terminate(decrement_desired_capacity)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -12,6 +12,11 @@ module AWS
|
||||
end
|
||||
end
|
||||
|
||||
class LoadBalancerCollection < Array
|
||||
def initialize
|
||||
end
|
||||
end
|
||||
|
||||
class InstanceCollection < Array
|
||||
def initialize
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user