foreman-tasks 0.15.5 → 0.15.6

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2b8139a15057de700208b9ce91c4c69b7314d48f51e6a402b6eb6fce9876e7d0
4
- data.tar.gz: 637f5a6e7df839f77b036a4bd417946ed7df1c711429bca9b0e9a1fbd3c5fc40
3
+ metadata.gz: 6c88f58d44b08d61b664e4081fa43a115fca79f413113e2a652a567a4408a8b0
4
+ data.tar.gz: e9065558bb4ff898cf64f664aa0c3092d80269192bf80421d321738e97d71829
5
5
  SHA512:
6
- metadata.gz: b40833091cd03018255226939b9828b9b6c987e11e5ff2068e98ebeff903870266f1105fb1e8b4742ffd8adbddf62ca5adb4f05b4375f95cf3c40c1b37c8d823
7
- data.tar.gz: 1a57a601e73f39b98f4db7326ec5547a7efef245a32bcc4df3816462b39ebf98f6463bd7e066eb75c8dd2e53c28eea6b1591d7780fdc0614245b77beb792d22e
6
+ metadata.gz: 357240c28d04dafadb8115404bae92fc6fe75a5662c8d4025eaa2957a0febf92cdfa3e801ed1023d74a068792e348c1d738f11a0c318b994cde760944b4cb45c
7
+ data.tar.gz: fafed38b8294442400aa85bbc7e24309c9846f216de37255980645dbb0f629a4710b957f13f0b9e03434bddbc54d877b75695e00c06cb7c5c9016cd5f507f8c9
@@ -31,10 +31,10 @@ add_files /var/log/foreman/dynflow_executor*.output*
31
31
  # Foreman Tasks fast export (Postgresql only; for HTML version use foreman-rake foreman_tasks:export_tasks)
32
32
 
33
33
  if [ "$FOREMAN_DB_ADAPTER" == "postgresql" ]; then
34
- export_csv "select dynflow_execution_plans.* from foreman_tasks_tasks join dynflow_execution_plans on (foreman_tasks_tasks.external_id = dynflow_execution_plans.uuid::varchar) where foreman_tasks_tasks.started_at > 'now'::timestamp - '${DYNFLOW_EXPORT_MONTHS:-1} months'::interval limit ${DYNFLOW_EXPORT_LIMIT:-100000}" "$DIR/dynflow_execution_plans.csv"
35
- export_csv "select dynflow_actions.* from foreman_tasks_tasks join dynflow_actions on (foreman_tasks_tasks.external_id = dynflow_actions.execution_plan_uuid::varchar) where foreman_tasks_tasks.started_at > 'now'::timestamp - '${DYNFLOW_EXPORT_MONTHS:-1} months'::interval limit ${DYNFLOW_EXPORT_LIMIT:-100000}" "$DIR/dynflow_actions.csv"
36
- export_csv "select dynflow_steps.* from foreman_tasks_tasks join dynflow_steps on (foreman_tasks_tasks.external_id = dynflow_steps.execution_plan_uuid::varchar) where foreman_tasks_tasks.started_at > 'now'::timestamp - '${DYNFLOW_EXPORT_MONTHS:-1} months'::interval limit ${DYNFLOW_EXPORT_LIMIT:-100000}" "$DIR/dynflow_steps.csv"
34
+ export_csv "select dynflow_execution_plans.* from foreman_tasks_tasks join dynflow_execution_plans on (foreman_tasks_tasks.external_id = dynflow_execution_plans.uuid::varchar) where foreman_tasks_tasks.started_at > 'now'::timestamp - '${DYNFLOW_EXPORT_MONTHS:-1} months'::interval order by foreman_tasks_tasks.started_at desc limit ${DYNFLOW_EXPORT_LIMIT:-100000}" "$DIR/dynflow_execution_plans.csv"
35
+ export_csv "select dynflow_actions.* from foreman_tasks_tasks join dynflow_actions on (foreman_tasks_tasks.external_id = dynflow_actions.execution_plan_uuid::varchar) where foreman_tasks_tasks.started_at > 'now'::timestamp - '${DYNFLOW_EXPORT_MONTHS:-1} months'::interval order by foreman_tasks_tasks.started_at desc limit ${DYNFLOW_EXPORT_LIMIT:-100000}" "$DIR/dynflow_actions.csv"
36
+ export_csv "select dynflow_steps.* from foreman_tasks_tasks join dynflow_steps on (foreman_tasks_tasks.external_id = dynflow_steps.execution_plan_uuid::varchar) where foreman_tasks_tasks.started_at > 'now'::timestamp - '${DYNFLOW_EXPORT_MONTHS:-1} months'::interval order by foreman_tasks_tasks.started_at desc limit ${DYNFLOW_EXPORT_LIMIT:-100000}" "$DIR/dynflow_steps.csv"
37
37
  export_csv "select * from dynflow_schema_info" "$DIR/dynflow_schema_info.csv"
38
- export_csv "select * from foreman_tasks_tasks limit ${DYNFLOW_EXPORT_LIMIT:-100000}" "$DIR/foreman_tasks_tasks.csv"
38
+ export_csv "select * from foreman_tasks_tasks order by started_at desc limit ${DYNFLOW_EXPORT_LIMIT:-100000}" "$DIR/foreman_tasks_tasks.csv"
39
39
  fi
40
40
 
@@ -1,3 +1,3 @@
1
1
  module ForemanTasks
2
- VERSION = '0.15.5'.freeze
2
+ VERSION = '0.15.6'.freeze
3
3
  end
@@ -1,6 +1,6 @@
1
1
  FactoryBot.define do
2
2
  factory :recurring_logic, :class => ForemanTasks::RecurringLogic do
3
- cron_line '* * * * *'
3
+ cron_line { '* * * * *' }
4
4
  after(:build) { |logic| logic.task_group = build(:recurring_logic_task_group) }
5
5
  end
6
6
 
@@ -1,12 +1,12 @@
1
1
  FactoryBot.define do
2
2
  factory :some_task, :class => ForemanTasks::Task do
3
3
  sequence(:label) { |n| "task#{n}" }
4
- type 'ForemanTasks::Task'
5
- state 'stopped'
6
- result 'success'
4
+ type { 'ForemanTasks::Task' }
5
+ state { 'stopped' }
6
+ result { 'success' }
7
7
 
8
8
  transient do
9
- set_owner nil
9
+ set_owner { nil }
10
10
  end
11
11
 
12
12
  after(:create) do |task, evaluator|
@@ -14,16 +14,16 @@ FactoryBot.define do
14
14
  end
15
15
 
16
16
  factory :dynflow_task, :class => ForemanTasks::Task::DynflowTask do
17
- label 'Support::DummyDynflowAction'
18
- type 'ForemanTasks::Task::DynflowTask'
19
- started_at '2014-10-01 11:15:55'
20
- ended_at '2014-10-01 11:15:57'
21
- state 'stopped'
22
- result 'success'
23
- parent_task_id nil
17
+ label { 'Support::DummyDynflowAction' }
18
+ type { 'ForemanTasks::Task::DynflowTask' }
19
+ started_at { '2014-10-01 11:15:55' }
20
+ ended_at { '2014-10-01 11:15:57' }
21
+ state { 'stopped' }
22
+ result { 'success' }
23
+ parent_task_id { nil }
24
24
 
25
25
  transient do
26
- sync_with_dynflow false
26
+ sync_with_dynflow { false }
27
27
  end
28
28
 
29
29
  after(:build) do |task, evaluator|
@@ -37,11 +37,11 @@ FactoryBot.define do
37
37
  end
38
38
 
39
39
  trait :user_create_task do
40
- label 'Actions::User::Create'
40
+ label { 'Actions::User::Create' }
41
41
  end
42
42
 
43
43
  trait :product_create_task do
44
- label 'Actions::Katello::Product::Create'
44
+ label { 'Actions::Katello::Product::Create' }
45
45
  end
46
46
 
47
47
  trait :inconsistent_dynflow_task do
@@ -1,24 +1,24 @@
1
1
  FactoryBot.define do
2
2
  factory :triggering, :class => ForemanTasks::Triggering do
3
- mode :immediate
3
+ mode { :immediate }
4
4
 
5
5
  trait :future do
6
6
  time = Time.zone.now
7
- mode :future
8
- start_at time
9
- start_at_raw(time.strftime(ForemanTasks::Triggering::TIME_FORMAT))
7
+ mode { :future }
8
+ start_at { time }
9
+ start_at_raw { time.strftime(ForemanTasks::Triggering::TIME_FORMAT) }
10
10
  end
11
11
 
12
12
  trait :recurring do
13
- mode :recurring
14
- input_type :cronline
15
- cronline '* * * * *'
13
+ mode { :recurring }
14
+ input_type { :cronline }
15
+ cronline { '* * * * *' }
16
16
  after(:build) { |triggering| triggering.recurring_logic = build(:recurring_logic) }
17
17
  end
18
18
 
19
19
  trait :end_time_limited do
20
- end_time_limited true
21
- end_time(Time.zone.now + 60)
20
+ end_time_limited { true }
21
+ end_time { Time.zone.now + 60 }
22
22
  end
23
23
  end
24
24
  end
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: 0.15.5
4
+ version: 0.15.6
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: 2019-05-07 00:00:00.000000000 Z
11
+ date: 2019-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: foreman-tasks-core
@@ -430,7 +430,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
430
430
  version: '0'
431
431
  requirements: []
432
432
  rubyforge_project:
433
- rubygems_version: 2.7.6
433
+ rubygems_version: 2.7.3
434
434
  signing_key:
435
435
  specification_version: 4
436
436
  summary: Foreman plugin for showing tasks information for resources and users