add print statements so user is aware of what is happening
This commit is contained in:
@@ -16,6 +16,7 @@ describe 'aws-ha-release' do
|
||||
|
||||
before do
|
||||
AWS::AutoScaling.stub(:new).and_return(as)
|
||||
IO.any_instance.stub(:puts)
|
||||
end
|
||||
|
||||
describe '#initialize' do
|
||||
@@ -41,10 +42,12 @@ describe 'aws-ha-release' do
|
||||
|
||||
it 'suspends certain autoscaling processes' do
|
||||
AWS::FakeAutoScaling::Group.any_instance.should_receive(:suspend_processes)
|
||||
.with('ReplaceUnhealthy', 'AlarmNotification', 'ScheduledActions', 'AZRebalance')
|
||||
.with(%w(ReplaceUnhealthy AlarmNotification ScheduledActions AZRebalance))
|
||||
@aws_ha_release.execute!
|
||||
end
|
||||
|
||||
it 'requires certain autoscaling processes to not be suspended'
|
||||
|
||||
it 'adjusts the max size as well as the desired capacity if the desired capacity is equal to it' do
|
||||
@group.update(max_size: 1, desired_capacity: 1)
|
||||
|
||||
|
||||
@@ -9,6 +9,10 @@ module AWS
|
||||
|
||||
def terminate(decrement_desired_capacity)
|
||||
end
|
||||
|
||||
def id
|
||||
'i-test'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -4,7 +4,10 @@ module AWS
|
||||
end
|
||||
|
||||
class LoadBalancer
|
||||
attr_reader :name
|
||||
|
||||
def initialize(name, options = {})
|
||||
@name = name
|
||||
end
|
||||
|
||||
def instances
|
||||
|
||||
Reference in New Issue
Block a user