Fix minitest warnings #551
Annotations
10 errors
Run rake test:foreman-tasks:
foreman-tasks/test/controllers/api/tasks_controller_test.rb#L56
Failure: test_0001_includes untaxed tasks and taxed by current taxonomy
Expected: 6
Actual: 7
|
Run rake test:foreman-tasks:
foreman-tasks/test/controllers/api/tasks_controller_test.rb#L44
Failure: test_0004_supports ordering by duration
Expected: 5
Actual: 6
|
Run rake test:foreman-tasks:
foreman-tasks/test/controllers/api/tasks_controller_test.rb#L20
Failure: test_0001_lists all tasks with default sorting
Expected: 5
Actual: 6
|
Run rake test:foreman-tasks:
foreman-tasks/test/unit/task_groups_test.rb#L44
Failure: test_0002_tasks inherit task groups correctly
ActiveRecord::RecordNotUnique: PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "foreman_tasks_task_groups_pkey"
DETAIL: Key (id)=(1) already exists.
foreman-tasks/test/unit/task_groups_test.rb:22:in `plan'
foreman-tasks/app/lib/actions/middleware/inherit_task_groups.rb:10:in `plan'
foreman-tasks/app/lib/actions/middleware/load_setting_values.rb:15:in `plan'
foreman-tasks/app/lib/actions/middleware/keep_current_request_id.rb:10:in `block in plan'
foreman-tasks/app/lib/actions/middleware/keep_current_request_id.rb:34:in `with_current_request_id'
foreman-tasks/app/lib/actions/middleware/keep_current_request_id.rb:9:in `plan'
foreman-tasks/app/lib/actions/middleware/keep_current_timezone.rb:10:in `block in plan'
foreman-tasks/app/lib/actions/middleware/keep_current_timezone.rb:31:in `with_current_timezone'
foreman-tasks/app/lib/actions/middleware/keep_current_timezone.rb:9:in `plan'
foreman-tasks/app/lib/actions/middleware/keep_current_taxonomies.rb:10:in `block in plan'
foreman-tasks/app/lib/actions/middleware/keep_current_taxonomies.rb:30:in `with_current_taxonomies'
foreman-tasks/app/lib/actions/middleware/keep_current_taxonomies.rb:9:in `plan'
foreman-tasks/app/lib/actions/middleware/keep_current_user.rb:10:in `block in plan'
foreman-tasks/app/lib/actions/middleware/keep_current_user.rb:41:in `with_current_user'
foreman-tasks/app/lib/actions/middleware/keep_current_user.rb:9:in `plan'
foreman-tasks/lib/foreman_tasks.rb:20:in `trigger'
foreman-tasks/test/unit/task_groups_test.rb:53:in `block (3 levels) in <class:TaskGroupsTest>'
foreman-tasks/test/unit/task_groups_test.rb:67:in `block (2 levels) in <class:TaskGroupsTest>'
|
Run rake test:foreman-tasks:
foreman-tasks/test/unit/task_groups_test.rb#L44
Failure: test_0001_has the task group assigned
ActiveRecord::RecordNotUnique: PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "foreman_tasks_task_groups_pkey"
DETAIL: Key (id)=(1) already exists.
foreman-tasks/test/unit/task_groups_test.rb:40:in `plan'
foreman-tasks/app/lib/actions/middleware/load_setting_values.rb:15:in `plan'
foreman-tasks/app/lib/actions/middleware/keep_current_request_id.rb:10:in `block in plan'
foreman-tasks/app/lib/actions/middleware/keep_current_request_id.rb:34:in `with_current_request_id'
foreman-tasks/app/lib/actions/middleware/keep_current_request_id.rb:9:in `plan'
foreman-tasks/app/lib/actions/middleware/keep_current_timezone.rb:10:in `block in plan'
foreman-tasks/app/lib/actions/middleware/keep_current_timezone.rb:31:in `with_current_timezone'
foreman-tasks/app/lib/actions/middleware/keep_current_timezone.rb:9:in `plan'
foreman-tasks/app/lib/actions/middleware/keep_current_taxonomies.rb:10:in `block in plan'
foreman-tasks/app/lib/actions/middleware/keep_current_taxonomies.rb:30:in `with_current_taxonomies'
foreman-tasks/app/lib/actions/middleware/keep_current_taxonomies.rb:9:in `plan'
foreman-tasks/app/lib/actions/middleware/keep_current_user.rb:10:in `block in plan'
foreman-tasks/app/lib/actions/middleware/keep_current_user.rb:41:in `with_current_user'
foreman-tasks/app/lib/actions/middleware/keep_current_user.rb:9:in `plan'
foreman-tasks/lib/foreman_tasks.rb:20:in `trigger'
foreman-tasks/test/unit/task_groups_test.rb:53:in `block (3 levels) in <class:TaskGroupsTest>'
foreman-tasks/test/unit/task_groups_test.rb:61:in `block (2 levels) in <class:TaskGroupsTest>'
|
Run rake test:foreman-tasks:
foreman-tasks/test/tasks/generate_task_actions_test.rb#L28
Failure: test_0001_fixes the tasks
Expected /Generating action for 5 tasks/ to match "Generating action for 6 tasks.\nProcessed 6/6 tasks\n".
|
Run rake test:foreman-tasks:
foreman-tasks/test/unit/task_test.rb#L57
Failure: test_0008_can search by array of user ids
--- expected
+++ actual
@@ -1 +1 @@
-[#<ForemanTasks::Task id: "c6711ce6-7fa6-4907-b323-eda482b55c25", type: "ForemanTasks::Task", label: "task24", started_at: nil, ended_at: nil, state: "stopped", result: "success", external_id: nil, parent_task_id: nil, start_at: nil, start_before: nil, action: nil, user_id: 988725702, state_updated_at: "2024-02-15 15:16:55.956462713 +0000">]
+#<ActiveRecord::Relation [#<ForemanTasks::Task::DynflowTask id: "f1668eb1-f880-4b98-8a20-b9662d9d7eaf", type: "ForemanTasks::Task::DynflowTask", label: "Actions::CheckLongRunningTasks", started_at: nil, ended_at: nil, state: "scheduled", result: "pending", external_id: "29e8b716-8119-4faf-a5ae-c5accd07eb35", parent_task_id: nil, start_at: "2024-02-16 00:00:00.000000000 +0000", start_before: nil, action: "Check for long running tasks", user_id: 36826545, state_updated_at: "2024-02-15 15:16:43.980651000 +0000">, #<ForemanTasks::Task id: "c6711ce6-7fa6-4907-b323-eda482b55c25", type: "ForemanTasks::Task", label: "task24", started_at: nil, ended_at: nil, state: "stopped", result: "success", external_id: nil, parent_task_id: nil, start_at: nil, start_before: nil, action: nil, user_id: 988725702, state_updated_at: "2024-02-15 15:16:55.956462000 +0000">]>
|
Run rake test:foreman-tasks:
foreman-tasks/test/unit/task_test.rb#L50
Failure: test_0007_can search the tasks by user's id
--- expected
+++ actual
@@ -1 +1 @@
-[#<ForemanTasks::Task id: "9eec8822-204b-4782-95d4-ec6844dd51b6", type: "ForemanTasks::Task", label: "task40", started_at: nil, ended_at: nil, state: "stopped", result: "success", external_id: nil, parent_task_id: nil, start_at: nil, start_before: nil, action: nil, user_id: 988725718, state_updated_at: "2024-02-15 15:16:56.953671780 +0000">]
+#<ActiveRecord::Relation [#<ForemanTasks::Task::DynflowTask id: "f1668eb1-f880-4b98-8a20-b9662d9d7eaf", type: "ForemanTasks::Task::DynflowTask", label: "Actions::CheckLongRunningTasks", started_at: nil, ended_at: nil, state: "scheduled", result: "pending", external_id: "29e8b716-8119-4faf-a5ae-c5accd07eb35", parent_task_id: nil, start_at: "2024-02-16 00:00:00.000000000 +0000", start_before: nil, action: "Check for long running tasks", user_id: 36826545, state_updated_at: "2024-02-15 15:16:43.980651000 +0000">, #<ForemanTasks::Task id: "9eec8822-204b-4782-95d4-ec6844dd51b6", type: "ForemanTasks::Task", label: "task40", started_at: nil, ended_at: nil, state: "stopped", result: "success", external_id: nil, parent_task_id: nil, start_at: nil, start_before: nil, action: nil, user_id: 988725718, state_updated_at: "2024-02-15 15:16:56.953671000 +0000">]>
|
Run rake test:foreman-tasks:
foreman-tasks/test/controllers/tasks_controller_test.rb#L81
Failure: test_0001_supports csv export
Expected: 2
Actual: 3
|
Run rake test:foreman-tasks:
foreman-tasks/test/controllers/tasks_controller_test.rb#L161
Failure: test_0003_scopes by organization if set
--- expected
+++ actual
@@ -1 +1 @@
-["32cd88b8-0301-4cbd-b445-68ac09c3cec9", "ca4ad633-5871-4579-99d2-e7c29a2228fc"]
+["32cd88b8-0301-4cbd-b445-68ac09c3cec9", "ca4ad633-5871-4579-99d2-e7c29a2228fc", "f1668eb1-f880-4b98-8a20-b9662d9d7eaf"]
|
The logs for this run have expired and are no longer available.
Loading