Project

General

Profile

Actions

Bug #27850

closed

Could not find resource class for resource task errors in tests

Added by Adam Ruzicka over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Foreman plugin
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

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

Actions #1

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
Actions #2

Updated by The Foreman Bot over 4 years ago

  • Fixed in Releases foreman-tasks-0.17.1 added
Actions #3

Updated by Anonymous over 4 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF