foreman-tasks 7.1.1 → 7.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/js_tests.yml +3 -1
- data/app/lib/actions/middleware/watch_delegated_proxy_sub_tasks.rb +1 -1
- data/app/models/foreman_tasks/task/dynflow_task.rb +10 -5
- data/config/routes.rb +1 -0
- data/lib/foreman_tasks/engine.rb +3 -0
- data/lib/foreman_tasks/version.rb +1 -1
- data/locale/de/LC_MESSAGES/foreman_tasks.mo +0 -0
- data/locale/de/foreman_tasks.po +1 -1
- data/locale/en/LC_MESSAGES/foreman_tasks.mo +0 -0
- data/locale/en/foreman_tasks.po +1 -1
- data/locale/es/LC_MESSAGES/foreman_tasks.mo +0 -0
- data/locale/es/foreman_tasks.po +1 -1
- data/locale/foreman_tasks.pot +3 -3
- data/locale/fr/LC_MESSAGES/foreman_tasks.mo +0 -0
- data/locale/fr/foreman_tasks.po +68 -66
- data/locale/ja/LC_MESSAGES/foreman_tasks.mo +0 -0
- data/locale/ja/foreman_tasks.po +67 -68
- data/locale/ka/LC_MESSAGES/foreman_tasks.mo +0 -0
- data/locale/ka/foreman_tasks.po +3 -3
- data/locale/ko/LC_MESSAGES/foreman_tasks.mo +0 -0
- data/locale/ko/foreman_tasks.po +1 -1
- data/locale/pt_BR/LC_MESSAGES/foreman_tasks.mo +0 -0
- data/locale/pt_BR/foreman_tasks.po +15 -15
- data/locale/ru/LC_MESSAGES/foreman_tasks.mo +0 -0
- data/locale/ru/foreman_tasks.po +1 -1
- data/locale/zh_CN/LC_MESSAGES/foreman_tasks.mo +0 -0
- data/locale/zh_CN/foreman_tasks.po +155 -156
- data/locale/zh_TW/LC_MESSAGES/foreman_tasks.mo +0 -0
- data/locale/zh_TW/foreman_tasks.po +1 -1
- data/test/unit/task_test.rb +5 -8
- metadata +2 -2
Binary file
|
data/test/unit/task_test.rb
CHANGED
@@ -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
|
-
|
190
|
-
|
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
|
-
_(
|
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.
|
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:
|
11
|
+
date: 2022-12-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dynflow
|