Skip to content

Commit

Permalink
Delete #retire_now since it has been moved to shared code
Browse files Browse the repository at this point in the history
  • Loading branch information
bzwei committed Mar 6, 2018
1 parent edb0891 commit 6f62e35
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@ class ManageIQ::Providers::EmbeddedAnsible::AutomationManager::Job < ManageIQ::P

require_nested :Status

def retire_now(requester = nil)
update_attributes(:retirement_requester => requester)
finish_retirement
end

# Intend to be called by UI to display stdout. The stdout is stored in MiqTask#task_results or #message if error
# Since the task_results may contain a large block of data, it is desired to remove the task upon receiving the data
def raw_stdout_via_worker(userid, format = 'txt')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@

it_behaves_like 'ansible job'

it 'processes retire_now properly' do
expect(job).to receive(:finish_retirement).once
job.retire_now
end

describe '#raw_stdout_via_worker' do
before do
EvmSpecHelper.create_guid_miq_server_zone
Expand Down

0 comments on commit 6f62e35

Please sign in to comment.