Bug #27850
closedCould not find resource class for resource task errors in tests
Description
Error:
ForemanTasks::Api::TasksControllerTest::tasks api controller::GET /api/tasks/show#test_0002_search for non-existent task:
NameError: Could not find resource class for resource task
app/controllers/concerns/find_common.rb:31:in `resource_class'
app/controllers/api/base_controller.rb:39:in `block in <class:BaseController>'
/home/aruzicka/projects/foreman/foreman-tasks/test/controllers/api/tasks_controller_test.rb:24:in `block (3 levels) in <class:TasksControllerTest>'
bin/rails test -tasks/test/controllers/api/tasks_controller_test.rb:23
Error:
ForemanTasks::Api::TasksControllerTest::tasks api controller::GET /api/tasks/show#test_0003_does not show task the user is not allowed to see:
NameError: Could not find resource class for resource task
app/controllers/concerns/find_common.rb:31:in `resource_class'
app/controllers/api/base_controller.rb:39:in `block in <class:BaseController>'
/home/aruzicka/projects/foreman/foreman-tasks/test/controllers/api/tasks_controller_test.rb:31:in `block (3 levels) in <class:TasksControllerTest>'
bin/rails test -tasks/test/controllers/api/tasks_controller_test.rb:29
This seems to be caused by a recent change in core
Updated by The Foreman Bot over 4 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman-tasks/pull/460 added
Updated by The Foreman Bot over 4 years ago
- Fixed in Releases foreman-tasks-0.17.1 added
Updated by Anonymous over 4 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset 47b8dd324088a5e1dad6c9b860612da91e29b017.