Project

General

Profile

Actions

Bug #13335

closed

Tests fail on Rails 4.1.14

Added by Eric Helms over 8 years ago. Updated over 8 years ago.

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

Description

Errors:

 1) Error:
TasksTest::filtering by current user#test_0001_can search the tasks by current_user:
ActiveRecord::StatementInvalid: PG::Error: ERROR:  operator does not exist: integer = character varying
LINE 1: ...oreman_tasks_tasks" ON "foreman_tasks_tasks"."id" = "foreman...
                                                             ^
HINT:  No operator matches the given name and argument type(s). You might need to add explicit type casts.
: SELECT COUNT(*) FROM "foreman_tasks_locks" INNER JOIN "foreman_tasks_tasks" ON "foreman_tasks_tasks"."id" = "foreman_tasks_locks"."task_id" WHERE (foreman_tasks_tasks.state != 'stopped') AND ("foreman_tasks_lo
cks"."task_id" NOT IN (0)) AND "foreman_tasks_locks"."name" = 'task_owner' AND "foreman_tasks_locks"."resource_id" = 980190963 AND "foreman_tasks_locks"."resource_type" = 'User' AND "foreman_tasks_locks"."exclus
ive" = 't'
    /home/vagrant/foreman-tasks/app/models/foreman_tasks/lock.rb:55:in `available?'
    /home/vagrant/foreman-tasks/app/models/foreman_tasks/lock.rb:48:in `block in <class:Lock>'
    test_after_commit (0.4.2) lib/test_after_commit.rb:27:in `block in transaction_with_transactional_fixtures'
    test_after_commit (0.4.2) lib/test_after_commit.rb:21:in `transaction_with_transactional_fixtures'
    /home/vagrant/foreman-tasks/app/models/foreman_tasks/lock.rb:131:in `owner!'
    /home/vagrant/foreman-tasks/test/factories/task_factory.rb:13:in `block (3 levels) in <top (required)>'
    /home/vagrant/foreman-tasks/test/unit/task_test.rb:12:in `block (2 levels) in <class:TasksTest>'

Related issues 1 (0 open1 closed)

Blocks Foreman - Feature #12873: Update Rails to 4.1.latestClosedDominic Cleal12/18/2015Actions
Actions #1

Updated by Eric Helms over 8 years ago

Actions #2

Updated by The Foreman Bot over 8 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman-tasks/pull/168 added
Actions #3

Updated by Eric Helms over 8 years ago

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

Updated by Dominic Cleal over 8 years ago

  • Translation missing: en.field_release deleted (71)
Actions

Also available in: Atom PDF