Skip to content

Commit

Permalink
Ansible Playbook Control UI
Browse files Browse the repository at this point in the history
  • Loading branch information
lgalis committed Feb 16, 2017
1 parent 1752f6b commit 0c725ec
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions spec/controllers/miq_policy_controller/miq_actions_spec.rb
Expand Up @@ -61,6 +61,22 @@
expect(controller.send(:flash_errors?)).not_to be_truthy
end
end

describe "it creates a run playbook" do
it "Test selected controller saving after selecting a Tag" do
controller.instance_variable_set(:@_params, :id => @action.id)
controller.action_edit
edit[:new][:action_type] = "run_an_ansible_playbook"
edit[:new][:options] = {}
session[:edit] = assigns(:edit)
controller.instance_variable_set(:@_params, :id => @action.id, :button => "save")
controller.action_edit
expect(assigns(:flash_array).first[:message]).not_to include("At least one Playbook")
expect(assigns(:flash_array).first[:message]).to include("saved")
expect(controller.send(:flash_errors?)).not_to be_truthy
end
end

describe "#action_get_info" do
let(:cat1) { FactoryGirl.create(:classification, :description => res.first) }
let(:cat2) { FactoryGirl.create(:classification, :description => res.second) }
Expand Down

0 comments on commit 0c725ec

Please sign in to comment.