Actions
Bug #12835
closedTests failing after upgrade to foreman-tasks-0.7.8
Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Difficulty:
Triaged:
Description
Due to rails 4 compatibily, find_by_exeternal_id was repaced with other construct in foreman-tasks, causing the tests
to miss the stubbing:
ActiveRecord::RecordNotFound (ActiveRecord::RecordNotFound) /usr/local/rvm/gems/ruby-1.9.3-p392@test_plugin_matrix-2/gems/activerecord-3.2.21/lib/active_record/relation/finder_methods.rb:129:in `first!' /usr/local/rvm/gems/ruby-1.9.3-p392@test_plugin_matrix-2/gems/foreman-tasks-0.7.8/app/lib/actions/base.rb:5:in `task' /usr/local/rvm/gems/ruby-1.9.3-p392@test_plugin_matrix-2/gems/foreman-tasks-0.7.8/app/lib/actions/middleware/recurring_logic.rb:38:in `task' /usr/local/rvm/gems/ruby-1.9.3-p392@test_plugin_matrix-2/gems/foreman-tasks-0.7.8/app/lib/actions/middleware/recurring_logic.rb:26:in `block in plan' /usr/local/rvm/gems/ruby-1.9.3-p392@test_plugin_matrix-2/gems/foreman-tasks-0.7.8/app/lib/actions/middleware/recurring_logic.rb:25:in `tap' /usr/local/rvm/gems/ruby-1.9.3-p392@test_plugin_matrix-2/gems/foreman-tasks-0.7.8/app/lib/actions/middleware/recurring_logic.rb:25:in `plan' /usr/local/rvm/gems/ruby-1.9.3-p392@test_plugin_matrix-2/gems/dynflow-0.8.9/lib/dynflow/middleware/stack.rb:22:in `call' /usr/local/rvm/gems/ruby-1.9.3-p392@test_plugin_matrix-2/gems/dynflow-0.8.9/lib/dynflow/middleware/stack.rb:26:in `pass' /usr/local/rvm/gems/ruby-1.9.3-p392@test_plugin_matrix-2/gems/dynflow-0.8.9/lib/dynflow/middleware.rb:17:in `pass' /var/lib/workspace/workspace/test_plugin_matrix@2/database/postgresql/ruby/1.9.3/slave/fast/plugin/app/lib/actions/middleware/bind_job_invocation.rb:17:in `plan' /usr/local/rvm/gems/ruby-1.9.3-p392@test_plugin_matrix-2/gems/dynflow-0.8.9/lib/dynflow/middleware/stack.rb:22:in `call' /usr/local/rvm/gems/ruby-1.9.3-p392@test_plugin_matrix-2/gems/dynflow-0.8.9/lib/dynflow/middleware/stack.rb:26:in `pass' /usr/local/rvm/gems/ruby-1.9.3-p392@test_plugin_matrix-2/gems/dynflow-0.8.9/lib/dynflow/middleware.rb:17:in `pass' /usr/local/rvm/gems/ruby-1.9.3-p392@test_plugin_matrix-2/gems/foreman-tasks-0.7.8/app/lib/actions/middleware/keep_current_user.rb:25:in `block in plan' /usr/local/rvm/gems/ruby-1.9.3-p392@test_plugin_matrix-2/gems/foreman-tasks-0.7.8/app/lib/actions/middleware/keep_current_user.rb:41:in `with_current_user' /usr/local/rvm/gems/ruby-1.9.3-p392@test_plugin_matrix-2/gems/foreman-tasks-0.7.8/app/lib/actions/middleware/keep_current_user.rb:24:in `plan'
Actions