foreman_puppet 6.1.1 → 6.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 (49) hide show
  1. checksums.yaml +4 -4
  2. data/lib/foreman_puppet/version.rb +1 -1
  3. data/locale/en/foreman_puppet.edit.po +0 -1146
  4. data/webpack/src/Extends/Host/PuppetTab/Routes.js +1 -1
  5. data/webpack/src/Extends/Host/PuppetTab/SubTabs/Reports/components/ConfigStatusCard/ConfigStatusCardActions.js +10 -0
  6. data/webpack/src/Extends/Host/PuppetTab/SubTabs/Reports/components/ConfigStatusCard/ConfigStatusCardConstants.js +1 -0
  7. data/webpack/src/Extends/Host/PuppetTab/SubTabs/Reports/components/ConfigStatusCard/index.js +186 -0
  8. data/webpack/src/Extends/Host/PuppetTab/SubTabs/Reports/components/ConfigStatusCard/styles.scss +3 -0
  9. data/webpack/src/Extends/Host/PuppetTab/SubTabs/Reports/index.js +4 -0
  10. data/webpack/src/Extends/Host/PuppetTab/index.js +4 -2
  11. data/webpack/src/Extends/Host/PuppetTab/styles.scss +9 -0
  12. metadata +71 -100
  13. data/locale/ca/foreman_puppet.edit.po +0 -1150
  14. data/locale/ca/foreman_puppet.po.time_stamp +0 -0
  15. data/locale/cs_CZ/foreman_puppet.edit.po +0 -1155
  16. data/locale/cs_CZ/foreman_puppet.po.time_stamp +0 -0
  17. data/locale/de/foreman_puppet.edit.po +0 -1177
  18. data/locale/de/foreman_puppet.po.time_stamp +0 -0
  19. data/locale/en/foreman_puppet.po.time_stamp +0 -0
  20. data/locale/en_GB/foreman_puppet.edit.po +0 -1152
  21. data/locale/en_GB/foreman_puppet.po.time_stamp +0 -0
  22. data/locale/es/foreman_puppet.edit.po +0 -1161
  23. data/locale/es/foreman_puppet.po.time_stamp +0 -0
  24. data/locale/fr/foreman_puppet.edit.po +0 -1170
  25. data/locale/fr/foreman_puppet.po.time_stamp +0 -0
  26. data/locale/gl/foreman_puppet.edit.po +0 -1150
  27. data/locale/gl/foreman_puppet.po.time_stamp +0 -0
  28. data/locale/it/foreman_puppet.edit.po +0 -1155
  29. data/locale/it/foreman_puppet.po.time_stamp +0 -0
  30. data/locale/ja/foreman_puppet.edit.po +0 -1162
  31. data/locale/ja/foreman_puppet.po.time_stamp +0 -0
  32. data/locale/ka/foreman_puppet.edit.po +0 -1160
  33. data/locale/ka/foreman_puppet.po.time_stamp +0 -0
  34. data/locale/ko/foreman_puppet.edit.po +0 -1151
  35. data/locale/ko/foreman_puppet.po.time_stamp +0 -0
  36. data/locale/nl_NL/foreman_puppet.edit.po +0 -1155
  37. data/locale/nl_NL/foreman_puppet.po.time_stamp +0 -0
  38. data/locale/pl/foreman_puppet.edit.po +0 -1154
  39. data/locale/pl/foreman_puppet.po.time_stamp +0 -0
  40. data/locale/pt_BR/foreman_puppet.edit.po +0 -1159
  41. data/locale/pt_BR/foreman_puppet.po.time_stamp +0 -0
  42. data/locale/ru/foreman_puppet.edit.po +0 -1159
  43. data/locale/ru/foreman_puppet.po.time_stamp +0 -0
  44. data/locale/sv_SE/foreman_puppet.edit.po +0 -1154
  45. data/locale/sv_SE/foreman_puppet.po.time_stamp +0 -0
  46. data/locale/zh_CN/foreman_puppet.edit.po +0 -1163
  47. data/locale/zh_CN/foreman_puppet.po.time_stamp +0 -0
  48. data/locale/zh_TW/foreman_puppet.edit.po +0 -1153
  49. data/locale/zh_TW/foreman_puppet.po.time_stamp +0 -0
@@ -6,7 +6,7 @@ import Reports from './SubTabs/Reports';
6
6
  import ENCPreview from './SubTabs/ENCPreview';
7
7
 
8
8
  const SecondaryTabRoutes = ({ hostName, hostInfo, status }) => (
9
- <Switch>
9
+ <Switch ouiaId="foreman-puppet-switch">
10
10
  <Route path={route('reports')}>
11
11
  <Reports hostName={hostName} hostInfo={hostInfo} status={status} />
12
12
  </Route>
@@ -0,0 +1,10 @@
1
+ import { API_OPERATIONS, get } from 'foremanReact/redux/API';
2
+ import { FOREMAN_PUPPET_LAST_REPORT_KEY } from './ConfigStatusCardConstants';
3
+
4
+ export const getReportByIdAction = reportId =>
5
+ get({
6
+ type: API_OPERATIONS.GET,
7
+ key: FOREMAN_PUPPET_LAST_REPORT_KEY,
8
+ url: `/api/config_reports/${reportId}`,
9
+ });
10
+ export default getReportByIdAction;
@@ -0,0 +1 @@
1
+ export const FOREMAN_PUPPET_LAST_REPORT_KEY = 'FOREMAN_PUPPET_LAST_REPORT';
@@ -0,0 +1,186 @@
1
+ import PropTypes from 'prop-types';
2
+ import React, { useCallback, useEffect } from 'react';
3
+ import {
4
+ Divider,
5
+ Flex,
6
+ FlexItem,
7
+ Button,
8
+ DescriptionList,
9
+ DescriptionListTerm,
10
+ DescriptionListGroup,
11
+ DescriptionListDescription,
12
+ } from '@patternfly/react-core';
13
+ import {
14
+ TableComposable,
15
+ TableText,
16
+ Tr,
17
+ Tbody,
18
+ Td,
19
+ } from '@patternfly/react-table';
20
+ import { useSelector, useDispatch } from 'react-redux';
21
+ import { selectAPIResponse } from 'foremanReact/redux/API/APISelectors';
22
+ import CardTemplate from 'foremanReact/components/HostDetails/Templates/CardItem/CardTemplate';
23
+ import RelativeDateTime from 'foremanReact/components/common/dates/RelativeDateTime';
24
+ import SkeletonLoader from 'foremanReact/components/common/SkeletonLoader';
25
+ import DefaultLoaderEmptyState from 'foremanReact/components/HostDetails/DetailsCard/DefaultLoaderEmptyState';
26
+ import { statusFormatter } from 'foremanReact/components/HostDetails/Tabs/ReportsTab/helpers';
27
+ import { translate as __ } from 'foremanReact/common/I18n';
28
+
29
+ import { getReportByIdAction } from './ConfigStatusCardActions';
30
+ import { FOREMAN_PUPPET_LAST_REPORT_KEY } from './ConfigStatusCardConstants';
31
+ import './styles.scss';
32
+
33
+ const cardHeaderDivider = () => (
34
+ <Divider
35
+ orientation={{
36
+ default: 'vertical',
37
+ }}
38
+ inset={{ default: 'insetMd' }}
39
+ />
40
+ );
41
+
42
+ const generateCardHeader = (allReports = [], reportsCount) =>
43
+ reportsCount > 0 ? (
44
+ <>
45
+ {__('Last configuration status')}
46
+ <Flex>
47
+ <FlexItem>
48
+ <Button
49
+ ouiaId="foreman-puppet-last-report-button"
50
+ variant="link"
51
+ component="a"
52
+ isInline
53
+ isDisabled={!allReports.length}
54
+ href={`/config_reports/${allReports[0].id}`}
55
+ >
56
+ <RelativeDateTime
57
+ date={allReports[0].reported_at}
58
+ defaultValue={__('Never')}
59
+ />
60
+ </Button>
61
+ </FlexItem>
62
+ <FlexItem>{statusFormatter('failed', allReports[0])}</FlexItem>
63
+ {cardHeaderDivider()}
64
+ <FlexItem>{statusFormatter('failed_restarts', allReports[0])}</FlexItem>
65
+ {cardHeaderDivider()}
66
+ <FlexItem>{statusFormatter('restarted', allReports[0])}</FlexItem>
67
+ {cardHeaderDivider()}
68
+ <FlexItem>{statusFormatter('applied', allReports[0])}</FlexItem>
69
+ {cardHeaderDivider()}
70
+ <FlexItem>{statusFormatter('skipped', allReports[0])}</FlexItem>
71
+ {cardHeaderDivider()}
72
+ <FlexItem>{statusFormatter('pending', allReports[0])}</FlexItem>
73
+ </Flex>
74
+ </>
75
+ ) : (
76
+ <> {__('No configuration status available')} </>
77
+ );
78
+
79
+ const createPuppetMetricsTableElement = (name, value = '--') => (
80
+ <>
81
+ <Td modifier="truncate" key={`metrics-name-${name}`}>
82
+ <TableText
83
+ className={name === 'Total' ? 'last-config-puppet-metrics-total' : ''}
84
+ >
85
+ {name}
86
+ </TableText>
87
+ </Td>
88
+ <Td modifier="truncate" key={`metrics-name-${value}`}>
89
+ <TableText
90
+ className={name === 'Total' ? 'last-config-puppet-metrics-total' : ''}
91
+ >
92
+ {value}
93
+ </TableText>
94
+ </Td>
95
+ </>
96
+ );
97
+
98
+ const createPuppetMetricsTable = (metrics = undefined) => (
99
+ <TableComposable
100
+ aria-label="foreman puppet metrics table"
101
+ variant="compact"
102
+ borders="compactBorderless"
103
+ ouiaId="foreman-puppet-metrics-table"
104
+ key="foreman-puppet-metrics-table"
105
+ >
106
+ <Tbody>
107
+ <Tr>
108
+ {createPuppetMetricsTableElement(__('Failed'), metrics.failed)}
109
+ {createPuppetMetricsTableElement(__('Changed'), metrics.changed)}
110
+ {createPuppetMetricsTableElement(__('Scheduled'), metrics.scheduled)}
111
+ </Tr>
112
+ <Tr>
113
+ {createPuppetMetricsTableElement(
114
+ __('Failed to start'),
115
+ metrics.failed_to_start
116
+ )}
117
+ {createPuppetMetricsTableElement(__('Restarted'), metrics.restarted)}
118
+ {createPuppetMetricsTableElement(
119
+ __('Corrective Change'),
120
+ metrics.corrective_change
121
+ )}
122
+ </Tr>
123
+ <Tr>
124
+ {createPuppetMetricsTableElement(__('Skipped'), metrics.skipped)}
125
+ {createPuppetMetricsTableElement(
126
+ __('Out of sync'),
127
+ metrics.out_of_sync
128
+ )}
129
+ {createPuppetMetricsTableElement(__('Total'), metrics.total)}
130
+ </Tr>
131
+ </Tbody>
132
+ </TableComposable>
133
+ );
134
+
135
+ const ConfigStatusCard = ({ hostName, parentStatus }) => {
136
+ const dispatch = useDispatch();
137
+ // get already fetched results from reports tab
138
+ const API_KEY = `get-reports-${hostName}`;
139
+ const { reports, itemCount } = useSelector(state =>
140
+ selectAPIResponse(state, API_KEY)
141
+ );
142
+
143
+ // we need to fetch the last Puppet report to get all Puppet metrics
144
+ const getLastReport = useCallback(() => {
145
+ if (hostName && reports?.length)
146
+ dispatch(getReportByIdAction(reports[0].id));
147
+ }, [hostName, reports, dispatch]);
148
+
149
+ useEffect(() => {
150
+ getLastReport();
151
+ }, [hostName, reports]);
152
+
153
+ const { metrics } = useSelector(state =>
154
+ selectAPIResponse(state, FOREMAN_PUPPET_LAST_REPORT_KEY)
155
+ );
156
+
157
+ return (
158
+ <CardTemplate header={generateCardHeader(reports, itemCount)} expandable>
159
+ <DescriptionList isCompact>
160
+ <DescriptionListGroup>
161
+ <DescriptionListTerm>{__('Puppet metrics')}</DescriptionListTerm>
162
+ <DescriptionListDescription>
163
+ <SkeletonLoader
164
+ status={parentStatus}
165
+ emptyState={<DefaultLoaderEmptyState />}
166
+ >
167
+ {metrics && createPuppetMetricsTable(metrics.resources)}
168
+ </SkeletonLoader>
169
+ </DescriptionListDescription>
170
+ </DescriptionListGroup>
171
+ </DescriptionList>
172
+ </CardTemplate>
173
+ );
174
+ };
175
+
176
+ ConfigStatusCard.propTypes = {
177
+ hostName: PropTypes.string,
178
+ parentStatus: PropTypes.string,
179
+ };
180
+
181
+ ConfigStatusCard.defaultProps = {
182
+ hostName: undefined,
183
+ parentStatus: undefined,
184
+ };
185
+
186
+ export default ConfigStatusCard;
@@ -0,0 +1,3 @@
1
+ .last-config-puppet-metrics-total {
2
+ font-weight: bold;
3
+ }
@@ -3,6 +3,7 @@ import React from 'react';
3
3
  import { Grid, GridItem } from '@patternfly/react-core';
4
4
  import ReportsTab from 'foremanReact/components/HostDetails/Tabs/ReportsTab';
5
5
  import DescriptionCard from './components/DescriptionCard';
6
+ import ConfigStatusCard from './components/ConfigStatusCard';
6
7
  import './styles.scss';
7
8
 
8
9
  const Reports = ({
@@ -18,6 +19,9 @@ const Reports = ({
18
19
  }) => (
19
20
  <div className="report-tab">
20
21
  <Grid hasGutter>
22
+ <GridItem span={8}>
23
+ <ConfigStatusCard hostName={hostName} parentStatus={status} />
24
+ </GridItem>
21
25
  <GridItem span={4}>
22
26
  <DescriptionCard
23
27
  proxyName={proxyName}
@@ -8,13 +8,15 @@ import SecondaryTabRoutes from './Routes';
8
8
  import { activeTab } from './helpers';
9
9
  import { SECONDARY_TABS } from './constants';
10
10
 
11
+ import './styles.scss';
12
+
11
13
  const PuppetTab = ({ response, status, location: { pathname } }) => {
12
14
  const hashHistory = useHistory();
13
15
  return (
14
16
  <>
15
17
  <Tabs
16
- ouiaId="puppet-tabs"
17
- className="margin-0-24"
18
+ ouiaId="foreman-puppet-host-details-tab"
19
+ className="foreman-puppet-host-details-tab"
18
20
  onSelect={(evt, subTab) => hashHistory.push(subTab)}
19
21
  isSecondary
20
22
  activeKey={activeTab(pathname)}
@@ -0,0 +1,9 @@
1
+
2
+ .pf-c-tabs.pf-m-secondary.foreman-puppet-host-details-tab {
3
+ overflow: visible;
4
+ }
5
+
6
+ .foreman-puppet-host-details-tab {
7
+ margin: 0 24px
8
+ }
9
+
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_puppet
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.1.1
4
+ version: 6.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ondřej Ezr
8
8
  - Shira Maximov
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-12-01 00:00:00.000000000 Z
12
+ date: 2024-02-01 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Allow assigning Puppet environments and classes to the Foreman Hosts.
15
15
  email:
@@ -238,83 +238,46 @@ files:
238
238
  - locale/Makefile
239
239
  - locale/action_names.rb
240
240
  - locale/ca/LC_MESSAGES/foreman_puppet.mo
241
- - locale/ca/foreman_puppet.edit.po
242
241
  - locale/ca/foreman_puppet.po
243
- - locale/ca/foreman_puppet.po.time_stamp
244
242
  - locale/cs_CZ/LC_MESSAGES/foreman_puppet.mo
245
- - locale/cs_CZ/foreman_puppet.edit.po
246
243
  - locale/cs_CZ/foreman_puppet.po
247
- - locale/cs_CZ/foreman_puppet.po.time_stamp
248
244
  - locale/de/LC_MESSAGES/foreman_puppet.mo
249
- - locale/de/foreman_puppet.edit.po
250
245
  - locale/de/foreman_puppet.po
251
- - locale/de/foreman_puppet.po.time_stamp
252
246
  - locale/en/LC_MESSAGES/foreman_puppet.mo
253
247
  - locale/en/foreman_puppet.edit.po
254
248
  - locale/en/foreman_puppet.po
255
- - locale/en/foreman_puppet.po.time_stamp
256
249
  - locale/en_GB/LC_MESSAGES/foreman_puppet.mo
257
- - locale/en_GB/foreman_puppet.edit.po
258
250
  - locale/en_GB/foreman_puppet.po
259
- - locale/en_GB/foreman_puppet.po.time_stamp
260
251
  - locale/es/LC_MESSAGES/foreman_puppet.mo
261
- - locale/es/foreman_puppet.edit.po
262
252
  - locale/es/foreman_puppet.po
263
- - locale/es/foreman_puppet.po.time_stamp
264
253
  - locale/foreman_puppet.pot
265
254
  - locale/fr/LC_MESSAGES/foreman_puppet.mo
266
- - locale/fr/foreman_puppet.edit.po
267
255
  - locale/fr/foreman_puppet.po
268
- - locale/fr/foreman_puppet.po.time_stamp
269
256
  - locale/gemspec.rb
270
257
  - locale/gl/LC_MESSAGES/foreman_puppet.mo
271
- - locale/gl/foreman_puppet.edit.po
272
258
  - locale/gl/foreman_puppet.po
273
- - locale/gl/foreman_puppet.po.time_stamp
274
259
  - locale/it/LC_MESSAGES/foreman_puppet.mo
275
- - locale/it/foreman_puppet.edit.po
276
260
  - locale/it/foreman_puppet.po
277
- - locale/it/foreman_puppet.po.time_stamp
278
261
  - locale/ja/LC_MESSAGES/foreman_puppet.mo
279
- - locale/ja/foreman_puppet.edit.po
280
262
  - locale/ja/foreman_puppet.po
281
- - locale/ja/foreman_puppet.po.time_stamp
282
263
  - locale/ka/LC_MESSAGES/foreman_puppet.mo
283
- - locale/ka/foreman_puppet.edit.po
284
264
  - locale/ka/foreman_puppet.po
285
- - locale/ka/foreman_puppet.po.time_stamp
286
265
  - locale/ko/LC_MESSAGES/foreman_puppet.mo
287
- - locale/ko/foreman_puppet.edit.po
288
266
  - locale/ko/foreman_puppet.po
289
- - locale/ko/foreman_puppet.po.time_stamp
290
267
  - locale/nl_NL/LC_MESSAGES/foreman_puppet.mo
291
- - locale/nl_NL/foreman_puppet.edit.po
292
268
  - locale/nl_NL/foreman_puppet.po
293
- - locale/nl_NL/foreman_puppet.po.time_stamp
294
269
  - locale/pl/LC_MESSAGES/foreman_puppet.mo
295
- - locale/pl/foreman_puppet.edit.po
296
270
  - locale/pl/foreman_puppet.po
297
- - locale/pl/foreman_puppet.po.time_stamp
298
271
  - locale/pt_BR/LC_MESSAGES/foreman_puppet.mo
299
- - locale/pt_BR/foreman_puppet.edit.po
300
272
  - locale/pt_BR/foreman_puppet.po
301
- - locale/pt_BR/foreman_puppet.po.time_stamp
302
273
  - locale/ru/LC_MESSAGES/foreman_puppet.mo
303
- - locale/ru/foreman_puppet.edit.po
304
274
  - locale/ru/foreman_puppet.po
305
- - locale/ru/foreman_puppet.po.time_stamp
306
275
  - locale/sv_SE/LC_MESSAGES/foreman_puppet.mo
307
- - locale/sv_SE/foreman_puppet.edit.po
308
276
  - locale/sv_SE/foreman_puppet.po
309
- - locale/sv_SE/foreman_puppet.po.time_stamp
310
277
  - locale/zh_CN/LC_MESSAGES/foreman_puppet.mo
311
- - locale/zh_CN/foreman_puppet.edit.po
312
278
  - locale/zh_CN/foreman_puppet.po
313
- - locale/zh_CN/foreman_puppet.po.time_stamp
314
279
  - locale/zh_TW/LC_MESSAGES/foreman_puppet.mo
315
- - locale/zh_TW/foreman_puppet.edit.po
316
280
  - locale/zh_TW/foreman_puppet.po
317
- - locale/zh_TW/foreman_puppet.po.time_stamp
318
281
  - package.json
319
282
  - test/controllers/foreman_puppet/api/v2/config_groups_controller_test.rb
320
283
  - test/controllers/foreman_puppet/api/v2/environments_controller_test.rb
@@ -401,12 +364,17 @@ files:
401
364
  - webpack/src/Extends/Host/PuppetTab/SubTabs/ENCPreview/ENCTab.js
402
365
  - webpack/src/Extends/Host/PuppetTab/SubTabs/ENCPreview/index.js
403
366
  - webpack/src/Extends/Host/PuppetTab/SubTabs/EmptyPage.js
367
+ - webpack/src/Extends/Host/PuppetTab/SubTabs/Reports/components/ConfigStatusCard/ConfigStatusCardActions.js
368
+ - webpack/src/Extends/Host/PuppetTab/SubTabs/Reports/components/ConfigStatusCard/ConfigStatusCardConstants.js
369
+ - webpack/src/Extends/Host/PuppetTab/SubTabs/Reports/components/ConfigStatusCard/index.js
370
+ - webpack/src/Extends/Host/PuppetTab/SubTabs/Reports/components/ConfigStatusCard/styles.scss
404
371
  - webpack/src/Extends/Host/PuppetTab/SubTabs/Reports/components/DescriptionCard.js
405
372
  - webpack/src/Extends/Host/PuppetTab/SubTabs/Reports/index.js
406
373
  - webpack/src/Extends/Host/PuppetTab/SubTabs/Reports/styles.scss
407
374
  - webpack/src/Extends/Host/PuppetTab/constants.js
408
375
  - webpack/src/Extends/Host/PuppetTab/helpers.js
409
376
  - webpack/src/Extends/Host/PuppetTab/index.js
377
+ - webpack/src/Extends/Host/PuppetTab/styles.scss
410
378
  - webpack/src/ForemanPuppet.js
411
379
  - webpack/src/Router/__snapshots__/routes.test.js.snap
412
380
  - webpack/src/Router/index.js
@@ -421,7 +389,7 @@ homepage: https://github.com/theforeman/foreman_puppet
421
389
  licenses:
422
390
  - GPL-3.0
423
391
  metadata: {}
424
- post_install_message:
392
+ post_install_message:
425
393
  rdoc_options: []
426
394
  require_paths:
427
395
  - lib
@@ -429,83 +397,86 @@ required_ruby_version: !ruby/object:Gem::Requirement
429
397
  requirements:
430
398
  - - ">="
431
399
  - !ruby/object:Gem::Version
432
- version: '0'
400
+ version: '2.7'
401
+ - - "<"
402
+ - !ruby/object:Gem::Version
403
+ version: '4'
433
404
  required_rubygems_version: !ruby/object:Gem::Requirement
434
405
  requirements:
435
406
  - - ">="
436
407
  - !ruby/object:Gem::Version
437
408
  version: '0'
438
409
  requirements: []
439
- rubygems_version: 3.1.6
440
- signing_key:
410
+ rubygems_version: 3.1.2
411
+ signing_key:
441
412
  specification_version: 4
442
413
  summary: Add Puppet features to Foreman
443
414
  test_files:
444
- - test/controllers/foreman_puppet/api/v2/config_groups_controller_test.rb
445
- - test/controllers/foreman_puppet/api/v2/host_classes_controller_test.rb
446
- - test/controllers/foreman_puppet/api/v2/hostgroup_classes_controller_test.rb
447
- - test/controllers/foreman_puppet/api/v2/hostgroups_controller_test.rb
448
- - test/controllers/foreman_puppet/api/v2/lookups_common_controller_test.rb
449
- - test/controllers/foreman_puppet/api/v2/provisioning_templates_controller_test.rb
450
- - test/controllers/foreman_puppet/api/v2/puppetclasses_controller_test.rb
451
- - test/controllers/foreman_puppet/api/v2/smart_proxies_controller_test.rb
452
- - test/controllers/foreman_puppet/api/v2/template_combinations_controller_test.rb
453
- - test/controllers/foreman_puppet/api/v2/environments_controller_test.rb
454
- - test/controllers/foreman_puppet/api/v2/smart_class_parameters_controller_test.rb
455
- - test/controllers/foreman_puppet/api/v2/hosts_controller_test.rb
456
- - test/controllers/foreman_puppet/api/v2/override_values_controller_test.rb
457
- - test/controllers/foreman_puppet/config_groups_controller_test.rb
458
- - test/controllers/foreman_puppet/hostgroups_controller_test.rb
459
- - test/controllers/foreman_puppet/puppet_smart_proxies_controller_test.rb
460
- - test/controllers/foreman_puppet/puppetclass_lookup_keys_controller_test.rb
461
- - test/controllers/foreman_puppet/puppetclasses_controller_test.rb
462
- - test/controllers/foreman_puppet/environments_controller_test.rb
463
- - test/controllers/foreman_puppet/hosts_controller_test.rb
464
- - test/controllers/provisioning_templates_controller_test.rb
465
- - test/factories/foreman_puppet_factories.rb
466
- - test/factories/host_puppet_enhancements.rb
467
- - test/factories/proxy_puppet_enhancements.rb
468
- - test/graphql/mutations/hosts/create_mutation_test.rb
469
- - test/graphql/queries/environments_query_test.rb
470
- - test/graphql/queries/host_puppet_query_test.rb
471
- - test/graphql/queries/hostgroup_puppet_query_test.rb
472
- - test/graphql/queries/location_query_test.rb
473
- - test/graphql/queries/organization_query_test.rb
474
- - test/graphql/queries/puppetclasses_query_test.rb
475
- - test/graphql/queries/environment_query_test.rb
476
- - test/graphql/queries/puppetclass_query_test.rb
415
+ - test/unit/foreman_puppet_test.rb
416
+ - test/unit/foreman_puppet/global_id_test.rb
417
+ - test/unit/foreman_puppet/puppet_class_importer_test.rb
418
+ - test/unit/foreman_puppet/template_rendering_test.rb
419
+ - test/unit/foreman_puppet/access_permissions_test.rb
420
+ - test/helpers/foreman_puppet/puppetclass_lookup_keys_helper_test.rb
477
421
  - test/helpers/foreman_puppet/hosts_and_hostgroups_helper_test.rb
478
422
  - test/helpers/foreman_puppet/puppetclasses_helper_test.rb
479
- - test/helpers/foreman_puppet/puppetclass_lookup_keys_helper_test.rb
480
423
  - test/integration/foreman_puppet/dashboard_js_test.rb
481
- - test/integration/foreman_puppet/environment_js_test.rb
424
+ - test/integration/foreman_puppet/host_js_test.rb
482
425
  - test/integration/foreman_puppet/hostgroup_js_test.rb
483
- - test/integration/foreman_puppet/puppetclass_js_test.rb
484
426
  - test/integration/foreman_puppet/smartclass_parameter_js_test.rb
485
- - test/integration/foreman_puppet/host_js_test.rb
486
- - test/models/foreman_puppet/config_group_class_test.rb
427
+ - test/integration/foreman_puppet/puppetclass_js_test.rb
428
+ - test/integration/foreman_puppet/environment_js_test.rb
429
+ - test/factories/foreman_puppet_factories.rb
430
+ - test/factories/host_puppet_enhancements.rb
431
+ - test/factories/proxy_puppet_enhancements.rb
432
+ - test/integration_puppet_helper.rb
487
433
  - test/models/foreman_puppet/config_group_test.rb
488
- - test/models/foreman_puppet/environment_test.rb
489
- - test/models/foreman_puppet/host_config_group_test.rb
490
- - test/models/foreman_puppet/hostgroup_puppet_facet_test.rb
491
- - test/models/foreman_puppet/hostgroup_test.rb
492
- - test/models/foreman_puppet/lookup_value_test.rb
493
- - test/models/foreman_puppet/puppetclass_lookup_key_test.rb
494
434
  - test/models/foreman_puppet/report_test.rb
495
- - test/models/foreman_puppet/smart_proxy_test.rb
435
+ - test/models/foreman_puppet/host_puppet_facet_test.rb
436
+ - test/models/foreman_puppet/host_test.rb
496
437
  - test/models/foreman_puppet/user_test.rb
497
438
  - test/models/foreman_puppet/provisioning_template_test.rb
439
+ - test/models/foreman_puppet/host_config_group_test.rb
440
+ - test/models/foreman_puppet/lookup_value_test.rb
441
+ - test/models/foreman_puppet/hostgroup_test.rb
442
+ - test/models/foreman_puppet/hostgroup_puppet_facet_test.rb
443
+ - test/models/foreman_puppet/puppetclass_lookup_key_test.rb
444
+ - test/models/foreman_puppet/environment_test.rb
498
445
  - test/models/foreman_puppet/puppetclass_test.rb
499
- - test/models/foreman_puppet/host_puppet_facet_test.rb
500
- - test/models/foreman_puppet/host_test.rb
501
- - test/services/foreman_puppet/host_info_providers/config_groups_info_test.rb
502
- - test/services/foreman_puppet/host_info_providers/puppet_info_test.rb
446
+ - test/models/foreman_puppet/config_group_class_test.rb
447
+ - test/models/foreman_puppet/smart_proxy_test.rb
448
+ - test/graphql/queries/hostgroup_puppet_query_test.rb
449
+ - test/graphql/queries/puppetclass_query_test.rb
450
+ - test/graphql/queries/location_query_test.rb
451
+ - test/graphql/queries/organization_query_test.rb
452
+ - test/graphql/queries/puppetclasses_query_test.rb
453
+ - test/graphql/queries/environment_query_test.rb
454
+ - test/graphql/queries/environments_query_test.rb
455
+ - test/graphql/queries/host_puppet_query_test.rb
456
+ - test/graphql/mutations/hosts/create_mutation_test.rb
457
+ - test/test_puppet_helper.rb
458
+ - test/controllers/provisioning_templates_controller_test.rb
459
+ - test/controllers/foreman_puppet/hostgroups_controller_test.rb
460
+ - test/controllers/foreman_puppet/puppetclass_lookup_keys_controller_test.rb
461
+ - test/controllers/foreman_puppet/environments_controller_test.rb
462
+ - test/controllers/foreman_puppet/puppet_smart_proxies_controller_test.rb
463
+ - test/controllers/foreman_puppet/hosts_controller_test.rb
464
+ - test/controllers/foreman_puppet/api/v2/template_combinations_controller_test.rb
465
+ - test/controllers/foreman_puppet/api/v2/smart_class_parameters_controller_test.rb
466
+ - test/controllers/foreman_puppet/api/v2/host_classes_controller_test.rb
467
+ - test/controllers/foreman_puppet/api/v2/hostgroups_controller_test.rb
468
+ - test/controllers/foreman_puppet/api/v2/lookups_common_controller_test.rb
469
+ - test/controllers/foreman_puppet/api/v2/environments_controller_test.rb
470
+ - test/controllers/foreman_puppet/api/v2/hosts_controller_test.rb
471
+ - test/controllers/foreman_puppet/api/v2/hostgroup_classes_controller_test.rb
472
+ - test/controllers/foreman_puppet/api/v2/puppetclasses_controller_test.rb
473
+ - test/controllers/foreman_puppet/api/v2/smart_proxies_controller_test.rb
474
+ - test/controllers/foreman_puppet/api/v2/override_values_controller_test.rb
475
+ - test/controllers/foreman_puppet/api/v2/config_groups_controller_test.rb
476
+ - test/controllers/foreman_puppet/api/v2/provisioning_templates_controller_test.rb
477
+ - test/controllers/foreman_puppet/puppetclasses_controller_test.rb
478
+ - test/controllers/foreman_puppet/config_groups_controller_test.rb
503
479
  - test/services/foreman_puppet/input_type/puppet_parameter_input_test.rb
504
480
  - test/services/foreman_puppet/host_counter_test.rb
505
- - test/unit/foreman_puppet/access_permissions_test.rb
506
- - test/unit/foreman_puppet/puppet_class_importer_test.rb
507
- - test/unit/foreman_puppet/template_rendering_test.rb
508
- - test/unit/foreman_puppet/global_id_test.rb
509
- - test/unit/foreman_puppet_test.rb
510
- - test/test_puppet_helper.rb
511
- - test/integration_puppet_helper.rb
481
+ - test/services/foreman_puppet/host_info_providers/config_groups_info_test.rb
482
+ - test/services/foreman_puppet/host_info_providers/puppet_info_test.rb