foreman_puppet 0.0.1 → 1.0.0.rc.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (123) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +61 -7
  3. data/app/controllers/concerns/foreman_puppet/environments_import.rb +1 -1
  4. data/app/controllers/concerns/foreman_puppet/extensions/api_base_controller.rb +28 -0
  5. data/app/controllers/concerns/foreman_puppet/extensions/api_template_combinations_controller.rb +1 -1
  6. data/app/controllers/concerns/foreman_puppet/extensions/hostgroups_controller_extensions.rb +1 -1
  7. data/app/controllers/concerns/foreman_puppet/extensions/hosts_controller_extensions.rb +1 -1
  8. data/app/controllers/concerns/foreman_puppet/extensions/parameters_host.rb +3 -10
  9. data/app/controllers/concerns/foreman_puppet/parameters/puppetclass_lookup_key.rb +2 -2
  10. data/app/controllers/foreman_puppet/api/v2/config_groups_controller.rb +9 -1
  11. data/app/controllers/foreman_puppet/api/v2/environments_controller.rb +5 -2
  12. data/app/controllers/foreman_puppet/api/v2/host_classes_controller.rb +9 -1
  13. data/app/controllers/foreman_puppet/api/v2/hostgroup_classes_controller.rb +9 -1
  14. data/app/controllers/foreman_puppet/api/v2/override_values_controller.rb +1 -2
  15. data/app/controllers/foreman_puppet/api/v2/{base_controller.rb → puppet_base_controller.rb} +2 -3
  16. data/app/controllers/foreman_puppet/api/v2/{lookups_common_controller.rb → puppet_lookups_common_controller.rb} +6 -2
  17. data/app/controllers/foreman_puppet/api/v2/puppetclasses_controller.rb +5 -1
  18. data/app/controllers/foreman_puppet/api/v2/smart_class_parameters_controller.rb +1 -2
  19. data/app/controllers/foreman_puppet/config_groups_controller.rb +4 -0
  20. data/app/controllers/foreman_puppet/puppet_smart_proxies_controller.rb +4 -0
  21. data/app/controllers/foreman_puppet/puppetclass_lookup_keys_controller.rb +2 -2
  22. data/app/controllers/foreman_puppet/puppetclasses_controller.rb +12 -4
  23. data/app/graphgl/concerns/foreman_puppet/mutations/hosts/create_extensions.rb +29 -0
  24. data/app/graphgl/concerns/foreman_puppet/types/host_extensions.rb +13 -0
  25. data/app/graphgl/concerns/foreman_puppet/types/hostgroup_extensions.rb +13 -0
  26. data/app/graphgl/concerns/foreman_puppet/types/interface_attributes_input_extensions.rb +9 -0
  27. data/app/graphgl/concerns/foreman_puppet/types/location_extensions.rb +14 -0
  28. data/app/graphgl/concerns/foreman_puppet/types/organization_extensions.rb +14 -0
  29. data/app/graphgl/foreman_puppet/types/environment.rb +20 -0
  30. data/app/graphgl/foreman_puppet/types/puppetclass.rb +20 -0
  31. data/app/helpers/foreman_puppet/environments_helper.rb +1 -1
  32. data/app/helpers/foreman_puppet/hosts_helper.rb +15 -0
  33. data/app/helpers/foreman_puppet/puppetclass_lookup_keys_helper.rb +2 -2
  34. data/app/helpers/foreman_puppet/puppetclasses_and_environments_helper.rb +1 -1
  35. data/app/helpers/foreman_puppet/puppetclasses_helper.rb +2 -2
  36. data/app/models/concerns/foreman_puppet/extensions/host.rb +24 -9
  37. data/app/models/concerns/foreman_puppet/extensions/host_common.rb +17 -0
  38. data/app/models/concerns/foreman_puppet/extensions/hostgroup.rb +13 -7
  39. data/app/models/concerns/foreman_puppet/extensions/operatingsystem.rb +1 -1
  40. data/app/models/concerns/foreman_puppet/extensions/provisioning_template.rb +19 -13
  41. data/app/models/concerns/foreman_puppet/extensions/report.rb +18 -0
  42. data/app/models/concerns/foreman_puppet/extensions/taxonomy.rb +1 -1
  43. data/app/models/concerns/foreman_puppet/extensions/template_combination.rb +1 -1
  44. data/app/models/concerns/foreman_puppet/extensions/user.rb +19 -12
  45. data/app/models/foreman_puppet/environment.rb +2 -0
  46. data/app/models/foreman_puppet/environment_class.rb +1 -1
  47. data/app/models/foreman_puppet/host_class.rb +1 -1
  48. data/app/models/foreman_puppet/host_puppet_facet.rb +5 -4
  49. data/app/models/foreman_puppet/hostgroup_puppet_facet.rb +1 -1
  50. data/app/models/{concerns/foreman_puppet/host_common.rb → foreman_puppet/puppet_facet_common.rb} +1 -1
  51. data/app/models/foreman_puppet/puppetclass.rb +15 -1
  52. data/app/{views/api/v2/template_combinations/base.json.erb → prepend_views/api/v2/template_combinations/base.json.rabl} +0 -0
  53. data/app/services/foreman_puppet/host_info_providers/config_groups_info.rb +2 -0
  54. data/app/services/foreman_puppet/puppet_class_importer.rb +17 -18
  55. data/app/views/foreman_puppet/common/_puppetclasses_or_envs_changed.html.erb +62 -0
  56. data/app/views/foreman_puppet/config_groups/index.html.erb +2 -2
  57. data/app/views/foreman_puppet/config_groups/welcome.html.erb +12 -11
  58. data/app/views/foreman_puppet/environments/index.html.erb +1 -1
  59. data/app/views/foreman_puppet/environments/welcome.html.erb +3 -15
  60. data/app/views/foreman_puppet/puppetclass_lookup_keys/welcome.html.erb +10 -8
  61. data/app/views/foreman_puppet/puppetclasses/_classes.html.erb +1 -1
  62. data/app/views/foreman_puppet/puppetclasses/_selected_classes.html.erb +1 -1
  63. data/app/views/foreman_puppet/puppetclasses/index.html.erb +1 -1
  64. data/app/views/hosts/_form_puppet_enc_tab.html.erb +1 -1
  65. data/app/views/hosts/select_multiple_environment.html.erb +1 -1
  66. data/app/views/smart_proxies/plugins/_puppet_ca.html.erb +44 -0
  67. data/config/initializers/api_reroute.rb +13 -0
  68. data/db/migrate/20200803113903_migrate_host_type_in_host_config_groups.foreman_puppet.rb +37 -12
  69. data/db/migrate/20201125113903_migrate_puppetclasses_to_facets.foreman_puppet.rb +13 -1
  70. data/lib/foreman_puppet.rb +3 -3
  71. data/lib/foreman_puppet/engine.rb +68 -19
  72. data/lib/foreman_puppet/register.rb +7 -2
  73. data/lib/foreman_puppet/version.rb +1 -1
  74. data/locale/Makefile +1 -1
  75. data/locale/action_names.rb +4 -4
  76. data/locale/en/LC_MESSAGES/foreman_puppet.mo +0 -0
  77. data/locale/en/foreman_puppet.edit.po +19 -3
  78. data/locale/en/foreman_puppet.po +18 -6
  79. data/locale/en/foreman_puppet.pox +0 -0
  80. data/locale/foreman_puppet.pot +19 -3
  81. data/locale/messages.mo +0 -0
  82. data/package.json +45 -0
  83. data/test/controllers/foreman_puppet/api/v2/config_groups_controller_test.rb +7 -3
  84. data/test/controllers/foreman_puppet/api/v2/environments_controller_test.rb +18 -16
  85. data/test/controllers/foreman_puppet/api/v2/hosts_controller_test.rb +3 -2
  86. data/test/controllers/foreman_puppet/api/v2/lookups_common_controller_test.rb +1 -1
  87. data/test/controllers/foreman_puppet/api/v2/provisioning_templates_controller_test.rb +32 -0
  88. data/test/controllers/foreman_puppet/api/v2/puppetclasses_controller_test.rb +3 -0
  89. data/test/controllers/foreman_puppet/api/v2/smart_class_parameters_controller_test.rb +7 -1
  90. data/test/controllers/foreman_puppet/api/v2/template_combinations_controller_test.rb +2 -2
  91. data/test/controllers/foreman_puppet/config_groups_controller_test.rb +7 -3
  92. data/test/controllers/foreman_puppet/environments_controller_test.rb +2 -2
  93. data/test/controllers/foreman_puppet/puppetclass_lookup_keys_controller_test.rb +2 -2
  94. data/test/controllers/foreman_puppet/puppetclasses_controller_test.rb +5 -6
  95. data/test/factories/foreman_puppet_factories.rb +3 -0
  96. data/test/factories/host_puppet_enhancements.rb +6 -6
  97. data/test/graphql/mutations/hosts/create_mutation_test.rb +87 -0
  98. data/test/graphql/queries/environment_query_test.rb +54 -0
  99. data/test/graphql/queries/environments_query_test.rb +43 -0
  100. data/test/{qraphql → graphql}/queries/host_puppet_query_test.rb +3 -8
  101. data/test/{qraphql → graphql}/queries/hostgroup_puppet_query_test.rb +1 -6
  102. data/test/graphql/queries/location_query_test.rb +52 -0
  103. data/test/graphql/queries/organization_query_test.rb +52 -0
  104. data/test/graphql/queries/puppetclass_query_test.rb +68 -0
  105. data/test/graphql/queries/puppetclasses_query_test.rb +43 -0
  106. data/test/integration/foreman_puppet/environment_js_test.rb +4 -1
  107. data/test/integration/foreman_puppet/host_js_test.rb +1 -1
  108. data/test/integration/foreman_puppet/puppetclass_js_test.rb +4 -0
  109. data/test/models/foreman_puppet/config_group_class_test.rb +3 -1
  110. data/test/models/foreman_puppet/environment_test.rb +2 -0
  111. data/test/models/foreman_puppet/host_puppet_facet_test.rb +34 -1
  112. data/test/models/foreman_puppet/host_test.rb +4 -3
  113. data/test/models/foreman_puppet/hostgroup_puppet_facet_test.rb +2 -3
  114. data/test/models/foreman_puppet/provisioning_template_test.rb +14 -7
  115. data/test/models/foreman_puppet/report_test.rb +21 -0
  116. data/test/models/foreman_puppet/smart_proxy_test.rb +1 -1
  117. data/test/models/foreman_puppet/user_test.rb +37 -0
  118. data/test/services/foreman_puppet/host_info_providers/config_groups_info_test.rb +35 -0
  119. data/test/services/foreman_puppet/host_info_providers/puppet_info_test.rb +159 -197
  120. data/test/unit/foreman_puppet/puppet_class_importer_test.rb +16 -2
  121. data/webpack/index.js +3 -4
  122. data/webpack/src/Components/Environments/Welcome.js +37 -0
  123. metadata +54 -14
@@ -3,6 +3,7 @@ require 'test_puppet_helper'
3
3
  module ForemanPuppet
4
4
  class PuppetClassImporterTest < ActiveSupport::TestCase
5
5
  def setup
6
+ FactoryBot.create(:environment, name: 'production') if ForemanPuppet.extracted_from_core?
6
7
  ProxyAPI::Puppet.any_instance.stubs(:environments).returns(%w[foreman-testing foreman-testing-1])
7
8
  ProxyAPI::Puppet.any_instance.stubs(:classes).returns(mocked_classes)
8
9
  User.current = users(:admin)
@@ -209,7 +210,8 @@ module ForemanPuppet
209
210
  org_b = FactoryBot.create(:organization, name: 'OrgB')
210
211
  loc_b = FactoryBot.create(:location, name: 'LocB')
211
212
  b_role = roles(:manager).clone name: 'b_role'
212
- b_role.add_permissions! %i[destroy_external_parameters edit_external_parameters create_external_parameters view_external_parameters]
213
+ b_role.add_permissions! %i[destroy_external_parameters edit_external_parameters create_external_parameters view_external_parameters
214
+ import_puppetclasses view_environments import_environments create_environments]
213
215
  a_user = FactoryBot.create(:user, organizations: [org_a], locations: [loc_a], roles: [roles(:manager)], login: 'a_user')
214
216
  b_user = FactoryBot.create(:user, organizations: [org_b], locations: [loc_b], roles: [b_role], login: 'b_user')
215
217
  proxy = FactoryBot.build(:puppet_smart_proxy, organizations: [org_a, org_b], locations: [loc_a, loc_b])
@@ -231,6 +233,18 @@ module ForemanPuppet
231
233
  assert_not Environment.find_by(name: 'b_env_new')
232
234
  end
233
235
 
236
+ test 'should tax create audits correctly' do
237
+ env = FactoryBot.create(:environment)
238
+ klass_changes = { 'apache::new_nicecls' => {} }
239
+ importer.obsolete_and_new('new' => { env.name => klass_changes.to_json })
240
+ pc = Puppetclass.find_by(name: 'apache::new_nicecls')
241
+ assert pc && pc.persisted?
242
+ assert_equal 1, pc.audits.count
243
+ audit = pc.audits.first
244
+ assert_equal env.location_ids, audit.location_ids.sort
245
+ assert_equal env.organization_ids, audit.organization_ids.sort
246
+ end
247
+
234
248
  private
235
249
 
236
250
  def mocked_classes
@@ -241,7 +255,7 @@ module ForemanPuppet
241
255
  'module' => 'apache',
242
256
  },
243
257
  }]
244
- Hash[pcs.map { |k| [k.keys.first, Foreman::ImporterPuppetclass.new(k.values.first)] }]
258
+ pcs.map { |k| [k.keys.first, Foreman::ImporterPuppetclass.new(k.values.first)] }.to_h
245
259
  end
246
260
  end
247
261
  end
data/webpack/index.js CHANGED
@@ -5,6 +5,7 @@ import componentRegistry from 'foremanReact/components/componentRegistry';
5
5
  import { registerReducer } from 'foremanReact/common/MountingService';
6
6
  import reducers from './src/reducers';
7
7
  import ForemanPuppet from './src/ForemanPuppet';
8
+ import { WelcomeEnv } from './src/Components/Environments/Welcome';
8
9
 
9
10
  // register reducers
10
11
  Object.entries(reducers).forEach(([key, reducer]) =>
@@ -12,7 +13,5 @@ Object.entries(reducers).forEach(([key, reducer]) =>
12
13
  );
13
14
 
14
15
  // register components for erb mounting
15
- componentRegistry.register({
16
- name: 'ForemanPuppet',
17
- type: ForemanPuppet,
18
- });
16
+ componentRegistry.register({ name: 'WelcomeEnv', type: WelcomeEnv });
17
+ componentRegistry.register({ name: 'ForemanPuppet', type: ForemanPuppet });
@@ -0,0 +1,37 @@
1
+ import React from 'react';
2
+ import PropTypes from 'prop-types';
3
+ import { translate as __ } from 'foremanReact/common/I18n';
4
+ import EmptyState from 'foremanReact/components/common/EmptyState';
5
+ import { foremanUrl, getManualURL } from 'foremanReact/common/helpers';
6
+
7
+ export const WelcomeEnv = ({ canCreate }) => {
8
+ const action = canCreate && {
9
+ title: __('Create Puppet Environment'),
10
+ url: foremanUrl('environments/new'),
11
+ };
12
+
13
+ const content = __(`If you are planning to use Foreman as an external node classifier you should provide information about one or more environments.<br/>
14
+ This information is commonly imported from a pre-existing Puppet configuration by the use of the <a href=${getManualURL(
15
+ '4.2.2Classes'
16
+ )}>Puppet classes and environment importer.</a>`);
17
+ return (
18
+ <EmptyState
19
+ icon="th"
20
+ iconType="fa"
21
+ header={__('Environments')}
22
+ description={<div dangerouslySetInnerHTML={{ __html: content }} />}
23
+ documentation={{ url: getManualURL('4.2.1Environments') }}
24
+ action={action}
25
+ />
26
+ );
27
+ };
28
+
29
+ WelcomeEnv.propTypes = {
30
+ canCreate: PropTypes.bool,
31
+ };
32
+
33
+ WelcomeEnv.defaultProps = {
34
+ canCreate: false,
35
+ };
36
+
37
+ export default WelcomeEnv;
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_puppet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 1.0.0.rc.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ondřej Ezr
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-02-02 00:00:00.000000000 Z
12
+ date: 2021-08-16 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Allow assigning Puppet environmets and classes to the Foreman Hosts.
15
15
  email:
@@ -24,6 +24,7 @@ files:
24
24
  - app/assets/stylesheets/foreman_puppet.scss
25
25
  - app/controllers/concerns/foreman_puppet/api/import_puppetclasses_common_controller.rb
26
26
  - app/controllers/concerns/foreman_puppet/environments_import.rb
27
+ - app/controllers/concerns/foreman_puppet/extensions/api_base_controller.rb
27
28
  - app/controllers/concerns/foreman_puppet/extensions/api_hostgroups_controller.rb
28
29
  - app/controllers/concerns/foreman_puppet/extensions/api_template_combinations_controller.rb
29
30
  - app/controllers/concerns/foreman_puppet/extensions/api_v2_hosts_controller.rb
@@ -37,13 +38,13 @@ files:
37
38
  - app/controllers/concerns/foreman_puppet/parameters/environment.rb
38
39
  - app/controllers/concerns/foreman_puppet/parameters/puppetclass.rb
39
40
  - app/controllers/concerns/foreman_puppet/parameters/puppetclass_lookup_key.rb
40
- - app/controllers/foreman_puppet/api/v2/base_controller.rb
41
41
  - app/controllers/foreman_puppet/api/v2/config_groups_controller.rb
42
42
  - app/controllers/foreman_puppet/api/v2/environments_controller.rb
43
43
  - app/controllers/foreman_puppet/api/v2/host_classes_controller.rb
44
44
  - app/controllers/foreman_puppet/api/v2/hostgroup_classes_controller.rb
45
- - app/controllers/foreman_puppet/api/v2/lookups_common_controller.rb
46
45
  - app/controllers/foreman_puppet/api/v2/override_values_controller.rb
46
+ - app/controllers/foreman_puppet/api/v2/puppet_base_controller.rb
47
+ - app/controllers/foreman_puppet/api/v2/puppet_lookups_common_controller.rb
47
48
  - app/controllers/foreman_puppet/api/v2/puppetclasses_controller.rb
48
49
  - app/controllers/foreman_puppet/api/v2/smart_class_parameters_controller.rb
49
50
  - app/controllers/foreman_puppet/config_groups_controller.rb
@@ -52,6 +53,14 @@ files:
52
53
  - app/controllers/foreman_puppet/puppetclass_lookup_keys_controller.rb
53
54
  - app/controllers/foreman_puppet/puppetclasses_controller.rb
54
55
  - app/controllers/foreman_puppet/react_controller.rb
56
+ - app/graphgl/concerns/foreman_puppet/mutations/hosts/create_extensions.rb
57
+ - app/graphgl/concerns/foreman_puppet/types/host_extensions.rb
58
+ - app/graphgl/concerns/foreman_puppet/types/hostgroup_extensions.rb
59
+ - app/graphgl/concerns/foreman_puppet/types/interface_attributes_input_extensions.rb
60
+ - app/graphgl/concerns/foreman_puppet/types/location_extensions.rb
61
+ - app/graphgl/concerns/foreman_puppet/types/organization_extensions.rb
62
+ - app/graphgl/foreman_puppet/types/environment.rb
63
+ - app/graphgl/foreman_puppet/types/puppetclass.rb
55
64
  - app/helpers/concerns/foreman_puppet/template_renderer_scope.rb
56
65
  - app/helpers/foreman_puppet/environments_helper.rb
57
66
  - app/helpers/foreman_puppet/hosts_and_hostgroups_helper.rb
@@ -62,6 +71,7 @@ files:
62
71
  - app/helpers/foreman_puppet/puppetclasses_helper.rb
63
72
  - app/helpers/foreman_puppet/template_combinations_helper.rb
64
73
  - app/models/concerns/foreman_puppet/extensions/host.rb
74
+ - app/models/concerns/foreman_puppet/extensions/host_common.rb
65
75
  - app/models/concerns/foreman_puppet/extensions/hostgroup.rb
66
76
  - app/models/concerns/foreman_puppet/extensions/nic_managed.rb
67
77
  - app/models/concerns/foreman_puppet/extensions/operatingsystem.rb
@@ -70,7 +80,6 @@ files:
70
80
  - app/models/concerns/foreman_puppet/extensions/taxonomy.rb
71
81
  - app/models/concerns/foreman_puppet/extensions/template_combination.rb
72
82
  - app/models/concerns/foreman_puppet/extensions/user.rb
73
- - app/models/concerns/foreman_puppet/host_common.rb
74
83
  - app/models/concerns/foreman_puppet/puppet_lookup_value_extensions.rb
75
84
  - app/models/foreman_puppet/config_group.rb
76
85
  - app/models/foreman_puppet/config_group_class.rb
@@ -81,14 +90,15 @@ files:
81
90
  - app/models/foreman_puppet/host_puppet_facet.rb
82
91
  - app/models/foreman_puppet/hostgroup_class.rb
83
92
  - app/models/foreman_puppet/hostgroup_puppet_facet.rb
93
+ - app/models/foreman_puppet/puppet_facet_common.rb
84
94
  - app/models/foreman_puppet/puppetclass.rb
85
95
  - app/models/foreman_puppet/puppetclass_lookup_key.rb
96
+ - app/prepend_views/api/v2/template_combinations/base.json.rabl
86
97
  - app/services/foreman_puppet/host_info_providers/config_groups_info.rb
87
98
  - app/services/foreman_puppet/host_info_providers/puppet_info.rb
88
99
  - app/services/foreman_puppet/input_type/puppet_parameter_input.rb
89
100
  - app/services/foreman_puppet/proxy_status/puppet.rb
90
101
  - app/services/foreman_puppet/puppet_class_importer.rb
91
- - app/views/api/v2/template_combinations/base.json.erb
92
102
  - app/views/foreman_puppet/api/v2/config_groups/base.json.rabl
93
103
  - app/views/foreman_puppet/api/v2/config_groups/create.json.rabl
94
104
  - app/views/foreman_puppet/api/v2/config_groups/index.json.rabl
@@ -127,6 +137,7 @@ files:
127
137
  - app/views/foreman_puppet/api/v2/smart_class_parameters/main.json.rabl
128
138
  - app/views/foreman_puppet/api/v2/smart_class_parameters/show.json.rabl
129
139
  - app/views/foreman_puppet/api/v2/smart_class_parameters/update.json.rabl
140
+ - app/views/foreman_puppet/common/_puppetclasses_or_envs_changed.html.erb
130
141
  - app/views/foreman_puppet/config_groups/_config_group.html.erb
131
142
  - app/views/foreman_puppet/config_groups/_config_groups_selection.html.erb
132
143
  - app/views/foreman_puppet/config_groups/_form.html.erb
@@ -160,7 +171,9 @@ files:
160
171
  - app/views/provisioning_templates/_combination.html.erb
161
172
  - app/views/provisioning_templates/_combinations.html.erb
162
173
  - app/views/smart_proxies/plugins/_puppet.html.erb
174
+ - app/views/smart_proxies/plugins/_puppet_ca.html.erb
163
175
  - config/api_routes.rb
176
+ - config/initializers/api_reroute.rb
164
177
  - config/routes.rb
165
178
  - db/migrate/20101121140000_add_environment_to_template_combinations.foreman_puppet.rb
166
179
  - db/migrate/20200720123005_migrate_puppet_core_types.foreman_puppet.rb
@@ -187,11 +200,15 @@ files:
187
200
  - lib/tasks/foreman_puppet_tasks.rake
188
201
  - locale/Makefile
189
202
  - locale/action_names.rb
203
+ - locale/en/LC_MESSAGES/foreman_puppet.mo
190
204
  - locale/en/foreman_puppet.edit.po
191
205
  - locale/en/foreman_puppet.po
192
206
  - locale/en/foreman_puppet.po.time_stamp
207
+ - locale/en/foreman_puppet.pox
193
208
  - locale/foreman_puppet.pot
194
209
  - locale/gemspec.rb
210
+ - locale/messages.mo
211
+ - package.json
195
212
  - test/controllers/foreman_puppet/api/v2/config_groups_controller_test.rb
196
213
  - test/controllers/foreman_puppet/api/v2/environments_controller_test.rb
197
214
  - test/controllers/foreman_puppet/api/v2/host_classes_controller_test.rb
@@ -200,6 +217,7 @@ files:
200
217
  - test/controllers/foreman_puppet/api/v2/hosts_controller_test.rb
201
218
  - test/controllers/foreman_puppet/api/v2/lookups_common_controller_test.rb
202
219
  - test/controllers/foreman_puppet/api/v2/override_values_controller_test.rb
220
+ - test/controllers/foreman_puppet/api/v2/provisioning_templates_controller_test.rb
203
221
  - test/controllers/foreman_puppet/api/v2/puppetclasses_controller_test.rb
204
222
  - test/controllers/foreman_puppet/api/v2/smart_class_parameters_controller_test.rb
205
223
  - test/controllers/foreman_puppet/api/v2/template_combinations_controller_test.rb
@@ -214,6 +232,15 @@ files:
214
232
  - test/factories/foreman_puppet_factories.rb
215
233
  - test/factories/host_puppet_enhancements.rb
216
234
  - test/factories/proxy_puppet_enhancements.rb
235
+ - test/graphql/mutations/hosts/create_mutation_test.rb
236
+ - test/graphql/queries/environment_query_test.rb
237
+ - test/graphql/queries/environments_query_test.rb
238
+ - test/graphql/queries/host_puppet_query_test.rb
239
+ - test/graphql/queries/hostgroup_puppet_query_test.rb
240
+ - test/graphql/queries/location_query_test.rb
241
+ - test/graphql/queries/organization_query_test.rb
242
+ - test/graphql/queries/puppetclass_query_test.rb
243
+ - test/graphql/queries/puppetclasses_query_test.rb
217
244
  - test/helpers/foreman_puppet/hosts_and_hostgroups_helper_test.rb
218
245
  - test/helpers/foreman_puppet/puppetclasses_helper_test.rb
219
246
  - test/integration/foreman_puppet/environment_js_test.rb
@@ -233,9 +260,10 @@ files:
233
260
  - test/models/foreman_puppet/provisioning_template_test.rb
234
261
  - test/models/foreman_puppet/puppetclass_lookup_key_test.rb
235
262
  - test/models/foreman_puppet/puppetclass_test.rb
263
+ - test/models/foreman_puppet/report_test.rb
236
264
  - test/models/foreman_puppet/smart_proxy_test.rb
237
- - test/qraphql/queries/host_puppet_query_test.rb
238
- - test/qraphql/queries/hostgroup_puppet_query_test.rb
265
+ - test/models/foreman_puppet/user_test.rb
266
+ - test/services/foreman_puppet/host_info_providers/config_groups_info_test.rb
239
267
  - test/services/foreman_puppet/host_info_providers/puppet_info_test.rb
240
268
  - test/services/foreman_puppet/input_type/puppet_parameter_input_test.rb
241
269
  - test/test_puppet_helper.rb
@@ -253,6 +281,7 @@ files:
253
281
  - webpack/__mocks__/foremanReact/redux/middlewares/IntervalMiddleware.js
254
282
  - webpack/fills_index.js
255
283
  - webpack/index.js
284
+ - webpack/src/Components/Environments/Welcome.js
256
285
  - webpack/src/ForemanPuppet.js
257
286
  - webpack/src/Router/__snapshots__/routes.test.js.snap
258
287
  - webpack/src/Router/index.js
@@ -263,7 +292,7 @@ files:
263
292
  - webpack/src/foreman_puppet_host_form.test.js
264
293
  - webpack/src/index.js
265
294
  - webpack/src/reducers.js
266
- homepage: https://theforeman.org
295
+ homepage: https://github.com/theforeman/foreman_puppet
267
296
  licenses:
268
297
  - GPL-3.0
269
298
  metadata: {}
@@ -278,15 +307,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
278
307
  version: '0'
279
308
  required_rubygems_version: !ruby/object:Gem::Requirement
280
309
  requirements:
281
- - - ">="
310
+ - - ">"
282
311
  - !ruby/object:Gem::Version
283
- version: '0'
312
+ version: 1.3.1
284
313
  requirements: []
285
- rubygems_version: 3.1.4
314
+ rubygems_version: 3.1.6
286
315
  signing_key:
287
316
  specification_version: 4
288
317
  summary: Adds puppet ENC features
289
318
  test_files:
319
+ - test/services/foreman_puppet/host_info_providers/config_groups_info_test.rb
290
320
  - test/services/foreman_puppet/host_info_providers/puppet_info_test.rb
291
321
  - test/services/foreman_puppet/input_type/puppet_parameter_input_test.rb
292
322
  - test/integration/foreman_puppet/smartclass_parameter_js_test.rb
@@ -294,9 +324,19 @@ test_files:
294
324
  - test/integration/foreman_puppet/hostgroup_js_test.rb
295
325
  - test/integration/foreman_puppet/environment_js_test.rb
296
326
  - test/integration/foreman_puppet/host_js_test.rb
327
+ - test/graphql/mutations/hosts/create_mutation_test.rb
328
+ - test/graphql/queries/puppetclasses_query_test.rb
329
+ - test/graphql/queries/host_puppet_query_test.rb
330
+ - test/graphql/queries/puppetclass_query_test.rb
331
+ - test/graphql/queries/organization_query_test.rb
332
+ - test/graphql/queries/location_query_test.rb
333
+ - test/graphql/queries/environment_query_test.rb
334
+ - test/graphql/queries/hostgroup_puppet_query_test.rb
335
+ - test/graphql/queries/environments_query_test.rb
297
336
  - test/helpers/foreman_puppet/puppetclasses_helper_test.rb
298
337
  - test/helpers/foreman_puppet/hosts_and_hostgroups_helper_test.rb
299
338
  - test/models/foreman_puppet/config_group_class_test.rb
339
+ - test/models/foreman_puppet/report_test.rb
300
340
  - test/models/foreman_puppet/puppetclass_lookup_key_test.rb
301
341
  - test/models/foreman_puppet/hostgroup_test.rb
302
342
  - test/models/foreman_puppet/config_group_test.rb
@@ -309,12 +349,11 @@ test_files:
309
349
  - test/models/foreman_puppet/smart_proxy_test.rb
310
350
  - test/models/foreman_puppet/environment_test.rb
311
351
  - test/models/foreman_puppet/provisioning_template_test.rb
352
+ - test/models/foreman_puppet/user_test.rb
312
353
  - test/unit/foreman_puppet_test.rb
313
354
  - test/unit/foreman_puppet/puppet_class_importer_test.rb
314
355
  - test/unit/foreman_puppet/access_permissions_test.rb
315
356
  - test/unit/foreman_puppet/template_rendering_test.rb
316
- - test/qraphql/queries/host_puppet_query_test.rb
317
- - test/qraphql/queries/hostgroup_puppet_query_test.rb
318
357
  - test/factories/foreman_puppet_factories.rb
319
358
  - test/factories/proxy_puppet_enhancements.rb
320
359
  - test/factories/host_puppet_enhancements.rb
@@ -333,6 +372,7 @@ test_files:
333
372
  - test/controllers/foreman_puppet/api/v2/config_groups_controller_test.rb
334
373
  - test/controllers/foreman_puppet/api/v2/lookups_common_controller_test.rb
335
374
  - test/controllers/foreman_puppet/api/v2/host_classes_controller_test.rb
375
+ - test/controllers/foreman_puppet/api/v2/provisioning_templates_controller_test.rb
336
376
  - test/controllers/foreman_puppet/api/v2/puppetclasses_controller_test.rb
337
377
  - test/controllers/foreman_puppet/api/v2/hosts_controller_test.rb
338
378
  - test/controllers/foreman_puppet/puppetclasses_controller_test.rb