-
Notifications
You must be signed in to change notification settings - Fork 356
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 #1029 from lgalis/fix_textual_provider_svg_and_con…
…troller_for_ansible_job Fix the controller and svg in textual provider for Ansible Tower Jobs
- Loading branch information
Showing
2 changed files
with
16 additions
and
2 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
14 changes: 14 additions & 0 deletions
14
spec/helpers/configuration_job_helper/textual_summary_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,14 @@ | ||
describe ConfigurationJobHelper::TextualSummary do | ||
include CompressedIds | ||
include ApplicationHelper | ||
|
||
let(:zone) { EvmSpecHelper.local_miq_server.zone } | ||
let(:automation_provider) { FactoryGirl.create(:provider_ansible_tower, :name => "ansibletest", :url => "test", :zone => zone) } | ||
|
||
it "#textual_provider" do | ||
manager = ManageIQ::Providers::AnsibleTower::AutomationManager.find_by(:provider_id => automation_provider.id) | ||
@record = FactoryGirl.create(:ansible_tower_job, :ext_management_system => manager) | ||
expect(textual_provider[:image]).to eq("svg/vendor-ansible.svg") | ||
expect(textual_provider[:link]).to eq("/automation_manager/explorer/at-#{to_cid(manager.id)}") | ||
end | ||
end |