foreman-tasks 7.0.0 → 7.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/js_tests.yml +3 -1
  3. data/.github/workflows/ruby_tests.yml +1 -1
  4. data/app/lib/actions/foreman/host/import_facts.rb +1 -6
  5. data/app/lib/actions/helpers/with_delegated_action.rb +2 -2
  6. data/app/lib/actions/proxy_action.rb +19 -5
  7. data/app/lib/actions/trigger_proxy_batch.rb +4 -1
  8. data/app/models/foreman_tasks/remote_task.rb +3 -2
  9. data/app/models/foreman_tasks/task/dynflow_task.rb +10 -5
  10. data/app/views/foreman_tasks/recurring_logics/index.html.erb +11 -11
  11. data/app/views/foreman_tasks/task_groups/_common.html.erb +2 -2
  12. data/app/views/foreman_tasks/task_groups/recurring_logic_task_groups/_recurring_logic_task_group.html.erb +11 -11
  13. data/lib/foreman_tasks/cleaner.rb +1 -1
  14. data/lib/foreman_tasks/dynflow/configuration.rb +1 -1
  15. data/lib/foreman_tasks/engine.rb +4 -1
  16. data/lib/foreman_tasks/version.rb +1 -1
  17. data/lib/tasks/gettext.rake +1 -0
  18. data/locale/action_names.rb +2 -3
  19. data/locale/de/LC_MESSAGES/foreman_tasks.mo +0 -0
  20. data/locale/de/foreman_tasks.po +873 -0
  21. data/locale/en/LC_MESSAGES/foreman_tasks.mo +0 -0
  22. data/locale/en/foreman_tasks.po +4 -7
  23. data/locale/es/LC_MESSAGES/foreman_tasks.mo +0 -0
  24. data/locale/es/foreman_tasks.po +874 -0
  25. data/locale/foreman_tasks.pot +20 -25
  26. data/locale/fr/LC_MESSAGES/foreman_tasks.mo +0 -0
  27. data/locale/fr/foreman_tasks.po +71 -72
  28. data/locale/ja/LC_MESSAGES/foreman_tasks.mo +0 -0
  29. data/locale/ja/foreman_tasks.po +70 -74
  30. data/locale/ka/LC_MESSAGES/foreman_tasks.mo +0 -0
  31. data/locale/ka/foreman_tasks.po +871 -0
  32. data/locale/ko/LC_MESSAGES/foreman_tasks.mo +0 -0
  33. data/locale/ko/foreman_tasks.po +869 -0
  34. data/locale/pt_BR/LC_MESSAGES/foreman_tasks.mo +0 -0
  35. data/locale/pt_BR/foreman_tasks.po +874 -0
  36. data/locale/ru/LC_MESSAGES/foreman_tasks.mo +0 -0
  37. data/locale/ru/foreman_tasks.po +873 -0
  38. data/locale/zh_CN/LC_MESSAGES/foreman_tasks.mo +0 -0
  39. data/locale/zh_CN/foreman_tasks.po +157 -161
  40. data/locale/zh_TW/LC_MESSAGES/foreman_tasks.mo +0 -0
  41. data/locale/zh_TW/foreman_tasks.po +870 -0
  42. data/test/unit/task_test.rb +5 -8
  43. metadata +17 -3
@@ -182,17 +182,14 @@ class TasksTest < ActiveSupport::TestCase
182
182
  end
183
183
 
184
184
  describe 'consistency check' do
185
- let(:consistent_task) { FactoryBot.create(:dynflow_task, :sync_with_dynflow => true) }
186
- let(:inconsistent_task) { FactoryBot.create(:dynflow_task, :inconsistent_dynflow_task) }
187
-
188
185
  it 'ensures the tasks marked as running are really running in Dynflow' do
189
- _(consistent_task.state).must_equal 'planned'
190
- _(inconsistent_task.state).must_equal 'running'
186
+ task = ForemanTasks.sync_task(Support::DummyDynflowAction)
187
+ task.update(:state => 'running') # Updating state updates the timestamp
188
+ task.update(:state_updated_at => Time.zone.now - 5.minutes)
191
189
 
192
190
  ForemanTasks::Task::DynflowTask.consistency_check
193
-
194
- _(consistent_task.reload.state).must_equal 'planned'
195
- _(inconsistent_task.reload.state).must_equal 'planned'
191
+ task.reload
192
+ _(task.state).must_equal 'stopped'
196
193
  end
197
194
  end
198
195
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman-tasks
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.0.0
4
+ version: 7.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Nečas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 1980-01-01 00:00:00.000000000 Z
11
+ date: 2022-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dynflow
@@ -286,15 +286,29 @@ files:
286
286
  - lib/tasks/gettext.rake
287
287
  - locale/Makefile
288
288
  - locale/action_names.rb
289
+ - locale/de/LC_MESSAGES/foreman_tasks.mo
290
+ - locale/de/foreman_tasks.po
289
291
  - locale/en/LC_MESSAGES/foreman_tasks.mo
290
292
  - locale/en/foreman_tasks.po
293
+ - locale/es/LC_MESSAGES/foreman_tasks.mo
294
+ - locale/es/foreman_tasks.po
291
295
  - locale/foreman_tasks.pot
292
296
  - locale/fr/LC_MESSAGES/foreman_tasks.mo
293
297
  - locale/fr/foreman_tasks.po
294
298
  - locale/ja/LC_MESSAGES/foreman_tasks.mo
295
299
  - locale/ja/foreman_tasks.po
300
+ - locale/ka/LC_MESSAGES/foreman_tasks.mo
301
+ - locale/ka/foreman_tasks.po
302
+ - locale/ko/LC_MESSAGES/foreman_tasks.mo
303
+ - locale/ko/foreman_tasks.po
304
+ - locale/pt_BR/LC_MESSAGES/foreman_tasks.mo
305
+ - locale/pt_BR/foreman_tasks.po
306
+ - locale/ru/LC_MESSAGES/foreman_tasks.mo
307
+ - locale/ru/foreman_tasks.po
296
308
  - locale/zh_CN/LC_MESSAGES/foreman_tasks.mo
297
309
  - locale/zh_CN/foreman_tasks.po
310
+ - locale/zh_TW/LC_MESSAGES/foreman_tasks.mo
311
+ - locale/zh_TW/foreman_tasks.po
298
312
  - package.json
299
313
  - script/npm_link_foreman_js.sh
300
314
  - script/rails
@@ -608,7 +622,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
608
622
  - !ruby/object:Gem::Version
609
623
  version: '0'
610
624
  requirements: []
611
- rubygems_version: 3.2.26
625
+ rubygems_version: 3.3.20
612
626
  signing_key:
613
627
  specification_version: 4
614
628
  summary: Foreman plugin for showing tasks information for resources and users