Project

General

Profile

Actions

Bug #23954

closed

Tests stub controller to return Foreman::Task instead of a Dynlfow task, causing error

Added by Stephen Benjamin almost 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Tests
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

With yesterday's release of foreman-tasks, tests are now erroring:


Failure:
Katello::Api::V2::RepositoriesControllerTest#test_remove_content [/var/lib/workspace/workspace/katello-pr-test/test/controllers/api/v2/repositories_controller_test.rb:701]:
Expected response to be a <2XX: success>, but was a <500: Internal Server Error>
Response body: {"displayMessage":"undefined method `get_humanized' for #\u003cForemanTasks::Task:0x0000000077384470\u003e\nDid you mean?  humanized","errors":["undefined method `get_humanized' for #\u003cForemanTasks::Task:0x0000000077384470\u003e\nDid you mean?  humanized"]}

bin/rails test /var/lib/workspace/workspace/katello-pr-test/test/controllers/api/v2/repositories_controller_test.rb:694
Actions #1

Updated by The Foreman Bot almost 6 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Stephen Benjamin
  • Pull request https://github.com/Katello/katello/pull/7458 added
Actions #2

Updated by Stephen Benjamin almost 6 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #3

Updated by Jonathon Turel almost 6 years ago

  • translation missing: en.field_release set to 338
Actions

Also available in: Atom PDF