Skip to content

Commit

Permalink
Update catalog item specs with the vault credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
lgalis committed Feb 27, 2018
1 parent 94976e1 commit f03cb0d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions spec/helpers/service_helper/textual_summary_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,10 @@
subject { textual_vault_credential }
it 'displays only vault credentials if available' do
@job = FactoryGirl.create(:embedded_ansible_job)
machine_credential = FactoryGirl.create(:embedded_ansible_machine_credential)
vault_credential = FactoryGirl.create(:embedded_ansible_vault_credential)
allow(@job).to receive(:authentications).and_return([vault_credential, machine_credential])
allow(@job).to receive(:authentications).and_return(ManageIQ::Providers::EmbeddedAnsible::AutomationManager::VaultCredential.where(:id => vault_credential.id))
allow(self).to receive(:url_for_only_path).and_return('link')
expect(textual_cloud_credential).to eq(:label => "Vault", :value => nil, :title => "Credential (Vault)", :link => "link")
expect(textual_vault_credential).to eq(:label => "Vault", :value => nil, :title => "Credential (Vault)", :link => "link")
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ describe('catalogItemFormController', function() {
repository_id: undefined,
playbook_id: 10000000000493,
credential_id: 10000000000090,
vault_credential_id: 10000000000100,
execution_ttl: 100,
hosts: 'localhost',
verbosity: '0',
Expand Down

0 comments on commit f03cb0d

Please sign in to comment.