-
Notifications
You must be signed in to change notification settings - Fork 898
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17298 from lfu/service_container_retirement_1564154
Add method retire_now to container OrchestrationStack. (cherry picked from commit 05e85b1) https://bugzilla.redhat.com/show_bug.cgi?id=1578398
- Loading branch information
1 parent
d4c8c11
commit d460eb8
Showing
3 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
spec/models/manageiq/providers/container_manager/orchestration_stack_spec.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
describe ManageIQ::Providers::ContainerManager::OrchestrationStack do | ||
let(:stack) { FactoryGirl.create(:orchestration_stack_container) } | ||
|
||
describe '#retire_now' do | ||
it 'retires the orchestration stack' do | ||
expect(stack).to receive(:finish_retirement).once | ||
stack.retire_now | ||
end | ||
end | ||
end |