foreman_puppet 4.0.3 → 4.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 796b143175fddce006bbbca2b1cc835e53ef870b5efe03ace7d4826c7cf7a1da
4
- data.tar.gz: 69dc252763e2625dbd25f6099b5474eea4ca566fa5a1b5161b780ff9c12b3b45
3
+ metadata.gz: 314d7d6b144722c190425f83640ed9c147703933d8a393c111340625331bc690
4
+ data.tar.gz: 42b53c1aab258f5a421e66ff1709ff9eaf2fdf5f463954d1eee50a7c9f195c8f
5
5
  SHA512:
6
- metadata.gz: bd64ee2f2f476cb19ec7bff88069d74a273ff7ba4035581ae197fda484f9fd42b9361fb5e1bade978201123b43ed09336e795af17455e44d5817fcf6570eedaa
7
- data.tar.gz: 1ea07c0fd65f7b9d5a14ef2c8b4d6bd3b7c16ea1bc48edad123ba7acd5493891b879ad80ecf7fa8b40242c4114fdf48a4b1c8c9e6091928b8e286cfd90838609
6
+ metadata.gz: 0ecbde2f0782d0fe4c4fafd8906367f088d878643bb5b6bc633619a4ccb2270ace2a07bda66b3cce041b8fb2623afec9352bc6f690c363eefbde140720e18461
7
+ data.tar.gz: 3834a356630a973ac6b074dcb350207ed99f5845e10afe2414d67b163acee77433add99b08606c75023a629e2578c4b44b911f19a1ea6d3793b16cae53a4038f
@@ -1,3 +1,3 @@
1
1
  module ForemanPuppet
2
- VERSION = '4.0.3'.freeze
2
+ VERSION = '4.0.4'.freeze
3
3
  end
@@ -36,7 +36,7 @@ const ENCPreview = ({ hostName }) => {
36
36
  }
37
37
  if (response !== '' || response !== undefined) {
38
38
  return (
39
- <div className="enc-preview-tab" padding="16px 24px">
39
+ <div className="enc-preview-tab" style={{ padding: '16px 24px' }}>
40
40
  <ENCTab encData={response} />
41
41
  </div>
42
42
  );
@@ -1,7 +1,11 @@
1
1
  import PropTypes from 'prop-types';
2
2
  import React from 'react';
3
- import CardTemplate from 'foremanReact/components/HostDetails/Templates/CardItem/CardTemplate';
4
3
  import {
4
+ Card,
5
+ CardBody,
6
+ CardHeader,
7
+ CardTitle,
8
+ CardExpandableContent,
5
9
  DescriptionList,
6
10
  DescriptionListTerm,
7
11
  DescriptionListGroup,
@@ -19,53 +23,73 @@ const DescriptionCard = ({
19
23
  caProxyId,
20
24
  env,
21
25
  status,
22
- }) => (
23
- <CardTemplate header={__('Puppet details')} expandable>
24
- <DescriptionList isCompact>
25
- <DescriptionListGroup>
26
- <DescriptionListTerm>{__('Puppet environment')}</DescriptionListTerm>
27
- <DescriptionListDescription>
28
- <SkeletonLoader
29
- emptyState={<DefaultLoaderEmptyState />}
30
- status={status}
31
- >
32
- {env && (
33
- <a href={`/foreman_puppet/environments/?search=name+%3D+${env}`}>
34
- {env}
35
- </a>
36
- )}
37
- </SkeletonLoader>
38
- </DescriptionListDescription>
39
- </DescriptionListGroup>
40
- <DescriptionListGroup>
41
- <DescriptionListTerm>{__('Puppet Smart Proxy')}</DescriptionListTerm>
42
- <DescriptionListDescription>
43
- <SkeletonLoader
44
- emptyState={<DefaultLoaderEmptyState />}
45
- status={status}
46
- >
47
- {proxyName && (
48
- <a href={`/smart_proxies/${proxyId}#puppet`}>{proxyName}</a>
49
- )}
50
- </SkeletonLoader>
51
- </DescriptionListDescription>
52
- </DescriptionListGroup>
53
- <DescriptionListGroup>
54
- <DescriptionListTerm>{__('Puppet CA Smart Proxy')}</DescriptionListTerm>
55
- <DescriptionListDescription>
56
- <SkeletonLoader
57
- emptyState={<DefaultLoaderEmptyState />}
58
- status={status}
59
- >
60
- {caProxy && (
61
- <a href={`/smart_proxies/${caProxyId}#puppet-ca`}>{caProxy}</a>
62
- )}
63
- </SkeletonLoader>
64
- </DescriptionListDescription>
65
- </DescriptionListGroup>
66
- </DescriptionList>
67
- </CardTemplate>
68
- );
26
+ }) => {
27
+ const [isExpanded, setIsExpanded] = React.useState(false);
28
+ return (
29
+ <Card isExpanded={isExpanded} ouiaId="card-template">
30
+ <CardHeader onExpand={() => setIsExpanded(v => !v)}>
31
+ <CardTitle id="expandable-card-title">{__('Puppet details')}</CardTitle>
32
+ </CardHeader>
33
+ <CardExpandableContent>
34
+ <CardBody>
35
+ <DescriptionList isCompact>
36
+ <DescriptionListGroup>
37
+ <DescriptionListTerm>
38
+ {__('Puppet environment')}
39
+ </DescriptionListTerm>
40
+ <DescriptionListDescription>
41
+ <SkeletonLoader
42
+ emptyState={<DefaultLoaderEmptyState />}
43
+ status={status}
44
+ >
45
+ {env && (
46
+ <a
47
+ href={`/foreman_puppet/environments/?search=name+%3D+${env}`}
48
+ >
49
+ {env}
50
+ </a>
51
+ )}
52
+ </SkeletonLoader>
53
+ </DescriptionListDescription>
54
+ </DescriptionListGroup>
55
+ <DescriptionListGroup>
56
+ <DescriptionListTerm>
57
+ {__('Puppet Smart Proxy')}
58
+ </DescriptionListTerm>
59
+ <DescriptionListDescription>
60
+ <SkeletonLoader
61
+ emptyState={<DefaultLoaderEmptyState />}
62
+ status={status}
63
+ >
64
+ {proxyName && (
65
+ <a href={`/smart_proxies/${proxyId}#puppet`}>{proxyName}</a>
66
+ )}
67
+ </SkeletonLoader>
68
+ </DescriptionListDescription>
69
+ </DescriptionListGroup>
70
+ <DescriptionListGroup>
71
+ <DescriptionListTerm>
72
+ {__('Puppet CA Smart Proxy')}
73
+ </DescriptionListTerm>
74
+ <DescriptionListDescription>
75
+ <SkeletonLoader
76
+ emptyState={<DefaultLoaderEmptyState />}
77
+ status={status}
78
+ >
79
+ {caProxy && (
80
+ <a href={`/smart_proxies/${caProxyId}#puppet-ca`}>
81
+ {caProxy}
82
+ </a>
83
+ )}
84
+ </SkeletonLoader>
85
+ </DescriptionListDescription>
86
+ </DescriptionListGroup>
87
+ </DescriptionList>
88
+ </CardBody>
89
+ </CardExpandableContent>
90
+ </Card>
91
+ );
92
+ };
69
93
 
70
94
  DescriptionCard.propTypes = {
71
95
  caProxy: PropTypes.string,
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: 4.0.3
4
+ version: 4.0.4
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: 2022-08-31 00:00:00.000000000 Z
12
+ date: 2022-12-20 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Allow assigning Puppet environments and classes to the Foreman Hosts.
15
15
  email:
@@ -360,7 +360,7 @@ homepage: https://github.com/theforeman/foreman_puppet
360
360
  licenses:
361
361
  - GPL-3.0
362
362
  metadata: {}
363
- post_install_message:
363
+ post_install_message:
364
364
  rdoc_options: []
365
365
  require_paths:
366
366
  - lib
@@ -375,75 +375,75 @@ required_rubygems_version: !ruby/object:Gem::Requirement
375
375
  - !ruby/object:Gem::Version
376
376
  version: '0'
377
377
  requirements: []
378
- rubygems_version: 3.1.2
379
- signing_key:
378
+ rubygems_version: 3.1.6
379
+ signing_key:
380
380
  specification_version: 4
381
381
  summary: Add Puppet features to Foreman
382
382
  test_files:
383
- - test/test_puppet_helper.rb
384
- - test/models/foreman_puppet/report_test.rb
385
- - test/models/foreman_puppet/host_test.rb
386
- - test/models/foreman_puppet/smart_proxy_test.rb
387
- - test/models/foreman_puppet/user_test.rb
383
+ - test/controllers/foreman_puppet/api/v2/config_groups_controller_test.rb
384
+ - test/controllers/foreman_puppet/api/v2/host_classes_controller_test.rb
385
+ - test/controllers/foreman_puppet/api/v2/hostgroup_classes_controller_test.rb
386
+ - test/controllers/foreman_puppet/api/v2/hostgroups_controller_test.rb
387
+ - test/controllers/foreman_puppet/api/v2/lookups_common_controller_test.rb
388
+ - test/controllers/foreman_puppet/api/v2/provisioning_templates_controller_test.rb
389
+ - test/controllers/foreman_puppet/api/v2/puppetclasses_controller_test.rb
390
+ - test/controllers/foreman_puppet/api/v2/smart_proxies_controller_test.rb
391
+ - test/controllers/foreman_puppet/api/v2/template_combinations_controller_test.rb
392
+ - test/controllers/foreman_puppet/api/v2/environments_controller_test.rb
393
+ - test/controllers/foreman_puppet/api/v2/hosts_controller_test.rb
394
+ - test/controllers/foreman_puppet/api/v2/override_values_controller_test.rb
395
+ - test/controllers/foreman_puppet/api/v2/smart_class_parameters_controller_test.rb
396
+ - test/controllers/foreman_puppet/config_groups_controller_test.rb
397
+ - test/controllers/foreman_puppet/hostgroups_controller_test.rb
398
+ - test/controllers/foreman_puppet/puppet_smart_proxies_controller_test.rb
399
+ - test/controllers/foreman_puppet/puppetclass_lookup_keys_controller_test.rb
400
+ - test/controllers/foreman_puppet/puppetclasses_controller_test.rb
401
+ - test/controllers/foreman_puppet/environments_controller_test.rb
402
+ - test/controllers/foreman_puppet/hosts_controller_test.rb
403
+ - test/controllers/provisioning_templates_controller_test.rb
404
+ - test/factories/foreman_puppet_factories.rb
405
+ - test/factories/host_puppet_enhancements.rb
406
+ - test/factories/proxy_puppet_enhancements.rb
407
+ - test/graphql/mutations/hosts/create_mutation_test.rb
408
+ - test/graphql/queries/environments_query_test.rb
409
+ - test/graphql/queries/host_puppet_query_test.rb
410
+ - test/graphql/queries/hostgroup_puppet_query_test.rb
411
+ - test/graphql/queries/location_query_test.rb
412
+ - test/graphql/queries/organization_query_test.rb
413
+ - test/graphql/queries/puppetclasses_query_test.rb
414
+ - test/graphql/queries/environment_query_test.rb
415
+ - test/graphql/queries/puppetclass_query_test.rb
416
+ - test/helpers/foreman_puppet/hosts_and_hostgroups_helper_test.rb
417
+ - test/helpers/foreman_puppet/puppetclass_lookup_keys_helper_test.rb
418
+ - test/helpers/foreman_puppet/puppetclasses_helper_test.rb
419
+ - test/integration/foreman_puppet/dashboard_js_test.rb
420
+ - test/integration/foreman_puppet/environment_js_test.rb
421
+ - test/integration/foreman_puppet/host_js_test.rb
422
+ - test/integration/foreman_puppet/hostgroup_js_test.rb
423
+ - test/integration/foreman_puppet/puppetclass_js_test.rb
424
+ - test/integration/foreman_puppet/smartclass_parameter_js_test.rb
388
425
  - test/models/foreman_puppet/config_group_class_test.rb
389
426
  - test/models/foreman_puppet/config_group_test.rb
390
- - test/models/foreman_puppet/host_puppet_facet_test.rb
427
+ - test/models/foreman_puppet/environment_test.rb
391
428
  - test/models/foreman_puppet/host_config_group_test.rb
392
- - test/models/foreman_puppet/puppetclass_test.rb
393
- - test/models/foreman_puppet/provisioning_template_test.rb
394
- - test/models/foreman_puppet/lookup_value_test.rb
395
- - test/models/foreman_puppet/puppetclass_lookup_key_test.rb
396
429
  - test/models/foreman_puppet/hostgroup_puppet_facet_test.rb
397
- - test/models/foreman_puppet/environment_test.rb
398
430
  - test/models/foreman_puppet/hostgroup_test.rb
431
+ - test/models/foreman_puppet/lookup_value_test.rb
432
+ - test/models/foreman_puppet/puppetclass_lookup_key_test.rb
433
+ - test/models/foreman_puppet/report_test.rb
434
+ - test/models/foreman_puppet/smart_proxy_test.rb
435
+ - test/models/foreman_puppet/user_test.rb
436
+ - test/models/foreman_puppet/host_puppet_facet_test.rb
437
+ - test/models/foreman_puppet/host_test.rb
438
+ - test/models/foreman_puppet/provisioning_template_test.rb
439
+ - test/models/foreman_puppet/puppetclass_test.rb
399
440
  - test/services/foreman_puppet/host_counter_test.rb
400
441
  - test/services/foreman_puppet/host_info_providers/config_groups_info_test.rb
401
442
  - test/services/foreman_puppet/host_info_providers/puppet_info_test.rb
402
443
  - test/services/foreman_puppet/input_type/puppet_parameter_input_test.rb
403
- - test/factories/foreman_puppet_factories.rb
404
- - test/factories/host_puppet_enhancements.rb
405
- - test/factories/proxy_puppet_enhancements.rb
444
+ - test/test_puppet_helper.rb
406
445
  - test/unit/foreman_puppet/access_permissions_test.rb
407
- - test/unit/foreman_puppet/template_rendering_test.rb
408
446
  - test/unit/foreman_puppet/puppet_class_importer_test.rb
447
+ - test/unit/foreman_puppet/template_rendering_test.rb
409
448
  - test/unit/foreman_puppet_test.rb
410
- - test/graphql/mutations/hosts/create_mutation_test.rb
411
- - test/graphql/queries/environments_query_test.rb
412
- - test/graphql/queries/location_query_test.rb
413
- - test/graphql/queries/puppetclass_query_test.rb
414
- - test/graphql/queries/organization_query_test.rb
415
- - test/graphql/queries/host_puppet_query_test.rb
416
- - test/graphql/queries/environment_query_test.rb
417
- - test/graphql/queries/puppetclasses_query_test.rb
418
- - test/graphql/queries/hostgroup_puppet_query_test.rb
419
- - test/controllers/foreman_puppet/hostgroups_controller_test.rb
420
- - test/controllers/foreman_puppet/config_groups_controller_test.rb
421
- - test/controllers/foreman_puppet/puppetclass_lookup_keys_controller_test.rb
422
- - test/controllers/foreman_puppet/environments_controller_test.rb
423
- - test/controllers/foreman_puppet/puppet_smart_proxies_controller_test.rb
424
- - test/controllers/foreman_puppet/hosts_controller_test.rb
425
- - test/controllers/foreman_puppet/api/v2/hostgroups_controller_test.rb
426
- - test/controllers/foreman_puppet/api/v2/override_values_controller_test.rb
427
- - test/controllers/foreman_puppet/api/v2/config_groups_controller_test.rb
428
- - test/controllers/foreman_puppet/api/v2/smart_proxies_controller_test.rb
429
- - test/controllers/foreman_puppet/api/v2/environments_controller_test.rb
430
- - test/controllers/foreman_puppet/api/v2/hosts_controller_test.rb
431
- - test/controllers/foreman_puppet/api/v2/lookups_common_controller_test.rb
432
- - test/controllers/foreman_puppet/api/v2/smart_class_parameters_controller_test.rb
433
- - test/controllers/foreman_puppet/api/v2/provisioning_templates_controller_test.rb
434
- - test/controllers/foreman_puppet/api/v2/template_combinations_controller_test.rb
435
- - test/controllers/foreman_puppet/api/v2/host_classes_controller_test.rb
436
- - test/controllers/foreman_puppet/api/v2/puppetclasses_controller_test.rb
437
- - test/controllers/foreman_puppet/api/v2/hostgroup_classes_controller_test.rb
438
- - test/controllers/foreman_puppet/puppetclasses_controller_test.rb
439
- - test/controllers/provisioning_templates_controller_test.rb
440
- - test/integration/foreman_puppet/puppetclass_js_test.rb
441
- - test/integration/foreman_puppet/host_js_test.rb
442
- - test/integration/foreman_puppet/environment_js_test.rb
443
- - test/integration/foreman_puppet/dashboard_js_test.rb
444
- - test/integration/foreman_puppet/smartclass_parameter_js_test.rb
445
- - test/integration/foreman_puppet/hostgroup_js_test.rb
446
- - test/helpers/foreman_puppet/puppetclass_lookup_keys_helper_test.rb
447
- - test/helpers/foreman_puppet/puppetclasses_helper_test.rb
448
- - test/helpers/foreman_puppet/hosts_and_hostgroups_helper_test.rb
449
449
  - test/integration_puppet_helper.rb