Skip to content

Commit

Permalink
add test for creating job for Retirement action
Browse files Browse the repository at this point in the history
  • Loading branch information
putmanoj committed Nov 7, 2024
1 parent f35be9a commit 88e8217
Showing 1 changed file with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,25 @@
}
)
end

it "create a job for Retirement action" do
expect(
described_class.create_job(
template, env_vars, input_vars, credentials, :action => ResourceAction::RETIREMENT, :terraform_stack_id => '999-999-999'
)
).to have_attributes(
:type => "ManageIQ::Providers::EmbeddedTerraform::AutomationManager::Job",
:options => {
:template_id => template.id,
:env_vars => env_vars,
:input_vars => input_vars,
:credentials => credentials,
:poll_interval => 60,
:action => 'Retirement',
:terraform_stack_id => '999-999-999'
}
)
end
end

describe "#signal" do
Expand Down

0 comments on commit 88e8217

Please sign in to comment.