Skip to content

Commit

Permalink
Pass verbosity through for ansible playbook automate methods
Browse files Browse the repository at this point in the history
  • Loading branch information
carbonin committed Jul 18, 2019
1 parent 1458e74 commit 40f33b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ def translate_credentials!(launch_options)
limit
network_credential_id
vault_credential_id
verbosity
].freeze

def launch_ansible_tower_job
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@
end

context 'with launch options' do
let(:options) { {:job_template_ref => 'jt1', :extra_vars => {:thing => "stuff"}} }
let(:options) { {:job_template_ref => 'jt1', :extra_vars => {:thing => "stuff"}, :verbosity => "4"} }
it 'passes them to the job' do
expect(ManageIQ::Providers::EmbeddedAnsible::AutomationManager::Job).to receive(:create_job)
.with(an_instance_of(ManageIQ::Providers::EmbeddedAnsible::AutomationManager::ConfigurationScript), :hosts => ["localhost"], :extra_vars => {:thing => "stuff"})
.with(an_instance_of(ManageIQ::Providers::EmbeddedAnsible::AutomationManager::ConfigurationScript), :hosts => ["localhost"], :extra_vars => {:thing => "stuff"}, :verbosity => "4")
.and_return(double(:id => 'jb1'))
expect(subject).to receive(:queue_signal)
subject.launch_ansible_tower_job
Expand Down

0 comments on commit 40f33b0

Please sign in to comment.