foreman_omaha 3.0.0 → 5.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -1
- data/Rakefile +4 -2
- data/app/controllers/api/v2/omaha_groups_controller.rb +2 -0
- data/app/controllers/api/v2/omaha_reports_controller.rb +2 -0
- data/app/controllers/omaha_groups_controller.rb +2 -0
- data/app/controllers/omaha_hosts_controller.rb +6 -4
- data/app/controllers/omaha_reports_controller.rb +2 -0
- data/app/graphql/concerns/foreman_omaha/types/host_extensions.rb +13 -0
- data/app/graphql/foreman_omaha/types/omaha_group.rb +21 -0
- data/app/graphql/foreman_omaha/types/omaha_report.rb +21 -0
- data/app/graphql/foreman_omaha/types/omaha_report_status_enum.rb +11 -0
- data/app/helpers/concerns/foreman_omaha/hosts_helper_extensions.rb +2 -0
- data/app/helpers/foreman_omaha/application_helper.rb +2 -0
- data/app/helpers/foreman_omaha/omaha_groups_helper.rb +2 -0
- data/app/helpers/omaha_hosts_helper.rb +2 -0
- data/app/helpers/omaha_reports_helper.rb +2 -0
- data/app/models/concerns/foreman_omaha/host_extensions.rb +3 -1
- data/app/models/concerns/foreman_omaha/omaha_facet_host_extensions.rb +2 -0
- data/app/models/foreman_omaha/fact_name.rb +2 -0
- data/app/models/foreman_omaha/omaha_facet.rb +2 -0
- data/app/models/foreman_omaha/omaha_group.rb +4 -0
- data/app/models/foreman_omaha/omaha_report.rb +4 -0
- data/app/models/host_status/omaha_status.rb +2 -0
- data/app/services/foreman_omaha/charts/oem_distribution.rb +2 -0
- data/app/services/foreman_omaha/charts/status_distribution.rb +2 -0
- data/app/services/foreman_omaha/charts/version_distribution.rb +2 -0
- data/app/services/foreman_omaha/container_linux_config_transpiler.rb +3 -0
- data/app/services/foreman_omaha/fact_importer.rb +2 -0
- data/app/services/foreman_omaha/fact_parser.rb +11 -3
- data/app/services/foreman_omaha/group_version_breakdown.rb +2 -0
- data/app/services/foreman_omaha/omaha_report_importer.rb +2 -0
- data/app/services/foreman_omaha/status_mapper.rb +2 -2
- data/app/services/foreman_omaha/template_renderer_helper.rb +9 -0
- data/app/views/api/v2/omaha_groups/base.json.rabl +2 -0
- data/app/views/api/v2/omaha_groups/index.json.rabl +2 -0
- data/app/views/api/v2/omaha_groups/main.json.rabl +2 -0
- data/app/views/api/v2/omaha_groups/show.json.rabl +2 -0
- data/app/views/api/v2/omaha_reports/base.json.rabl +2 -0
- data/app/views/api/v2/omaha_reports/create.json.rabl +2 -0
- data/app/views/api/v2/omaha_reports/index.json.rabl +2 -0
- data/app/views/api/v2/omaha_reports/main.json.rabl +2 -0
- data/app/views/api/v2/omaha_reports/show.json.rabl +2 -0
- data/app/views/api/v2/omaha_reports/update.json.rabl +2 -0
- data/app/views/foreman_omaha/api/v2/omaha_facets/base.json.rabl +2 -0
- data/app/views/foreman_omaha/api/v2/omaha_facets/base_with_root.json.rabl +2 -0
- data/app/views/foreman_omaha/api/v2/omaha_facets/show.json.rabl +2 -0
- data/app/views/omaha_reports/_list.html.erb +1 -1
- data/config/routes.rb +2 -0
- data/db/migrate/20160812083100_add_omaha_fields_to_reports.foreman_omaha.rb +2 -0
- data/db/migrate/20171101204100_create_omaha_facets.foreman_omaha.rb +2 -0
- data/db/seeds.d/200_omaha_groups.rb +2 -0
- data/db/seeds.d/60_omaha_proxy_feature.rb +2 -0
- data/lib/foreman_omaha/engine.rb +28 -14
- data/lib/foreman_omaha/version.rb +3 -1
- data/lib/foreman_omaha.rb +2 -0
- data/lib/tasks/foreman_omaha_tasks.rake +2 -0
- data/locale/gemspec.rb +2 -0
- data/test/factories/feature.rb +3 -1
- data/test/factories/foreman_omaha_factories.rb +8 -6
- data/test/factories/host.rb +19 -4
- data/test/factories/smart_proxy.rb +2 -0
- data/test/functional/api/v2/omaha_groups_controller_test.rb +2 -0
- data/test/functional/api/v2/omaha_reports_controller_test.rb +4 -2
- data/test/functional/omaha_groups_controller_test.rb +2 -0
- data/test/functional/omaha_hosts_controller_test.rb +2 -0
- data/test/functional/omaha_reports_controller_test.rb +2 -0
- data/test/graphql/queries/host_query_extensions_test.rb +41 -0
- data/test/graphql/queries/omaha_group_query_test.rb +51 -0
- data/test/graphql/queries/omaha_groups_query_test.rb +47 -0
- data/test/graphql/queries/omaha_report_query_test.rb +44 -0
- data/test/graphql/queries/omaha_reports_query_test.rb +47 -0
- data/test/test_plugin_helper.rb +2 -0
- data/test/unit/charts/oem_distribution_test.rb +2 -0
- data/test/unit/charts/status_distribution_test.rb +2 -0
- data/test/unit/charts/version_distribution_test.rb +2 -0
- data/test/unit/group_version_breakdown_test.rb +2 -0
- data/test/unit/host_status/omaha_status_test.rb +4 -2
- data/test/unit/host_test.rb +2 -0
- data/test/unit/omaha_fact_parser_test.rb +67 -23
- data/test/unit/omaha_report_test.rb +2 -0
- data/test/unit/renderer_test.rb +2 -0
- metadata +64 -9
- data/app/lib/foreman_omaha/renderer/scope/macros/omaha.rb +0 -13
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman_omaha
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 5.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Timo Goebel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-04-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jquery-matchheight-rails
|
@@ -42,16 +42,58 @@ dependencies:
|
|
42
42
|
name: rubocop
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 0.80.0
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.80.0
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rubocop-minitest
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.7.0
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.7.0
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rubocop-performance
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 1.5.2
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 1.5.2
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rubocop-rails
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
46
88
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
89
|
+
version: 2.4.2
|
48
90
|
type: :development
|
49
91
|
prerelease: false
|
50
92
|
version_requirements: !ruby/object:Gem::Requirement
|
51
93
|
requirements:
|
52
|
-
- -
|
94
|
+
- - "~>"
|
53
95
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
96
|
+
version: 2.4.2
|
55
97
|
description: This plug-in adds support for the Omaha procotol to The Foreman. It allows
|
56
98
|
you to better manage and update your CoreOS servers.
|
57
99
|
email:
|
@@ -71,12 +113,15 @@ files:
|
|
71
113
|
- app/controllers/omaha_groups_controller.rb
|
72
114
|
- app/controllers/omaha_hosts_controller.rb
|
73
115
|
- app/controllers/omaha_reports_controller.rb
|
116
|
+
- app/graphql/concerns/foreman_omaha/types/host_extensions.rb
|
117
|
+
- app/graphql/foreman_omaha/types/omaha_group.rb
|
118
|
+
- app/graphql/foreman_omaha/types/omaha_report.rb
|
119
|
+
- app/graphql/foreman_omaha/types/omaha_report_status_enum.rb
|
74
120
|
- app/helpers/concerns/foreman_omaha/hosts_helper_extensions.rb
|
75
121
|
- app/helpers/foreman_omaha/application_helper.rb
|
76
122
|
- app/helpers/foreman_omaha/omaha_groups_helper.rb
|
77
123
|
- app/helpers/omaha_hosts_helper.rb
|
78
124
|
- app/helpers/omaha_reports_helper.rb
|
79
|
-
- app/lib/foreman_omaha/renderer/scope/macros/omaha.rb
|
80
125
|
- app/models/concerns/foreman_omaha/host_extensions.rb
|
81
126
|
- app/models/concerns/foreman_omaha/omaha_facet_host_extensions.rb
|
82
127
|
- app/models/foreman_omaha/fact_name.rb
|
@@ -93,6 +138,7 @@ files:
|
|
93
138
|
- app/services/foreman_omaha/group_version_breakdown.rb
|
94
139
|
- app/services/foreman_omaha/omaha_report_importer.rb
|
95
140
|
- app/services/foreman_omaha/status_mapper.rb
|
141
|
+
- app/services/foreman_omaha/template_renderer_helper.rb
|
96
142
|
- app/views/api/v2/omaha_groups/base.json.rabl
|
97
143
|
- app/views/api/v2/omaha_groups/index.json.rabl
|
98
144
|
- app/views/api/v2/omaha_groups/main.json.rabl
|
@@ -139,6 +185,11 @@ files:
|
|
139
185
|
- test/functional/omaha_groups_controller_test.rb
|
140
186
|
- test/functional/omaha_hosts_controller_test.rb
|
141
187
|
- test/functional/omaha_reports_controller_test.rb
|
188
|
+
- test/graphql/queries/host_query_extensions_test.rb
|
189
|
+
- test/graphql/queries/omaha_group_query_test.rb
|
190
|
+
- test/graphql/queries/omaha_groups_query_test.rb
|
191
|
+
- test/graphql/queries/omaha_report_query_test.rb
|
192
|
+
- test/graphql/queries/omaha_reports_query_test.rb
|
142
193
|
- test/test_plugin_helper.rb
|
143
194
|
- test/unit/charts/oem_distribution_test.rb
|
144
195
|
- test/unit/charts/status_distribution_test.rb
|
@@ -168,8 +219,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
168
219
|
- !ruby/object:Gem::Version
|
169
220
|
version: '0'
|
170
221
|
requirements: []
|
171
|
-
|
172
|
-
rubygems_version: 2.7.3
|
222
|
+
rubygems_version: 3.1.6
|
173
223
|
signing_key:
|
174
224
|
specification_version: 4
|
175
225
|
summary: This plug-in adds support for the Omaha procotol to The Foreman.
|
@@ -183,6 +233,11 @@ test_files:
|
|
183
233
|
- test/unit/host_status/omaha_status_test.rb
|
184
234
|
- test/unit/renderer_test.rb
|
185
235
|
- test/unit/omaha_report_test.rb
|
236
|
+
- test/graphql/queries/omaha_group_query_test.rb
|
237
|
+
- test/graphql/queries/omaha_report_query_test.rb
|
238
|
+
- test/graphql/queries/omaha_groups_query_test.rb
|
239
|
+
- test/graphql/queries/omaha_reports_query_test.rb
|
240
|
+
- test/graphql/queries/host_query_extensions_test.rb
|
186
241
|
- test/factories/smart_proxy.rb
|
187
242
|
- test/factories/feature.rb
|
188
243
|
- test/factories/host.rb
|