Skip to content

Commit

Permalink
Add notifications for finish_retirement.
Browse files Browse the repository at this point in the history
  • Loading branch information
tinaafitz committed May 2, 2017
1 parent 7c74ddb commit de8a759
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ def initialize(handle = $evm)
def main
stack = @handle.root['orchestration_stack']
stack.finish_retirement if stack
@handle.create_notification(:type => :orchestration_stack_retired, :subject => stack) if stack
end
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@

vm = $evm.root['vm']
vm.finish_retirement if vm
$evm.create_notification(:type => :vm_retired, :subject => vm) if vm
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@

vm = $evm.root['vm']
vm.finish_retirement if vm
$evm.create_notification(:type => :vm_retired, :subject => vm) if vm
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@

service = $evm.root['service']
service.finish_retirement if service
$evm.create_notification(:type => :service_retired, :subject => service) if service
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
end

it "retires orchestration stack" do
expect(ae_service).to receive(:create_notification)
described_class.new(ae_service).main

expect(svc_model_stack.retired).to eq(true)
Expand Down

0 comments on commit de8a759

Please sign in to comment.