add print statements so user is aware of what is happening

This commit is contained in:
Anuj Biyani
2013-06-03 19:08:56 -07:00
parent 07fc0390f7
commit 8c24fa8dbf
4 changed files with 51 additions and 9 deletions

View File

@@ -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)

View File

@@ -9,6 +9,10 @@ module AWS
def terminate(decrement_desired_capacity)
end
def id
'i-test'
end
end
end
end

View File

@@ -4,7 +4,10 @@ module AWS
end
class LoadBalancer
attr_reader :name
def initialize(name, options = {})
@name = name
end
def instances