foreman_rh_cloud 11.4.0 → 12.1.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.
- checksums.yaml +4 -4
- data/app/controllers/api/v2/rh_cloud/inventory_controller.rb +2 -2
- data/app/controllers/concerns/inventory_upload/report_actions.rb +1 -1
- data/app/controllers/foreman_inventory_upload/accounts_controller.rb +2 -0
- data/app/controllers/foreman_inventory_upload/uploads_settings_controller.rb +2 -0
- data/app/services/foreman_rh_cloud/cloud_request.rb +4 -0
- data/app/services/foreman_rh_cloud/cloud_request_forwarder.rb +7 -1
- data/app/services/foreman_rh_cloud/rules_ingester.rb +12 -1
- data/lib/foreman_inventory_upload/async/queue_for_upload_job.rb +3 -3
- data/lib/foreman_inventory_upload/async/upload_report_job.rb +4 -4
- data/lib/foreman_inventory_upload/generators/queries.rb +2 -0
- data/lib/foreman_inventory_upload/generators/slice.rb +83 -42
- data/lib/foreman_inventory_upload.rb +5 -0
- data/lib/foreman_rh_cloud/engine.rb +15 -3
- data/lib/foreman_rh_cloud/version.rb +1 -1
- data/lib/foreman_rh_cloud.rb +2 -0
- data/package.json +5 -5
- data/test/controllers/inventory_upload/api/inventory_controller_test.rb +1 -1
- data/test/jobs/upload_report_job_test.rb +1 -1
- data/test/unit/slice_generator_test.rb +212 -4
- data/webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItem/__tests__/__snapshots__/ListItem.test.js.snap +1 -7
- data/webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItemStatus/__tests__/__snapshots__/ListItemStatus.test.js.snap +1 -5
- data/webpack/ForemanInventoryUpload/Components/AccountList/accountList.scss +3 -3
- data/webpack/ForemanInventoryUpload/Components/Dashboard/Dashboard.js +5 -1
- data/webpack/ForemanInventoryUpload/Components/Dashboard/__tests__/__snapshots__/Dashboard.test.js.snap +2 -1
- data/webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilter.js +1 -1
- data/webpack/ForemanInventoryUpload/Components/InventoryFilter/inventoryFilter.scss +1 -1
- data/webpack/ForemanInventoryUpload/Components/InventorySettings/AdvancedSetting/AdvancedSettingsConstants.js +27 -8
- data/webpack/ForemanInventoryUpload/Components/InventorySettings/AdvancedSetting/index.js +11 -3
- data/webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettings.js +71 -10
- data/webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettingsSelectors.js +13 -1
- data/webpack/ForemanInventoryUpload/Components/InventorySettings/MinimalInventoryDropdown.js +107 -0
- data/webpack/ForemanInventoryUpload/Components/NavContainer/NavContainer.fixtures.js +9 -2
- data/webpack/ForemanInventoryUpload/Components/NavContainer/NavContainer.js +8 -0
- data/webpack/ForemanInventoryUpload/Components/NavContainer/__tests__/NavContainer.test.js +53 -9
- data/webpack/ForemanInventoryUpload/Components/PageHeader/PageHeader.scss +5 -5
- data/webpack/ForemanInventoryUpload/Components/PageHeader/PageTitle.js +5 -4
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudPingModal/index.js +18 -3
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/PageDescription.js +72 -58
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/__tests__/PageDescription.test.js +61 -6
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButton.js +0 -1
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButton.test.js.snap +0 -1
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/ToolbarButtons.js +18 -6
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/__tests__/ToolbarButtons.test.js +54 -6
- data/webpack/ForemanInventoryUpload/Components/ReportGenerate/ReportGenerate.fixtures.js +2 -0
- data/webpack/ForemanInventoryUpload/Components/ReportGenerate/ReportGenerate.js +8 -0
- data/webpack/ForemanInventoryUpload/Components/ReportGenerate/__tests__/__snapshots__/ReportGenerate.test.js.snap +4 -2
- data/webpack/ForemanInventoryUpload/Components/ReportUpload/ReportUpload.js +1 -8
- data/webpack/ForemanInventoryUpload/Components/ReportUpload/__tests__/__snapshots__/ReportUpload.test.js.snap +4 -2
- data/webpack/ForemanInventoryUpload/Components/TabHeader/TabHeader.js +47 -28
- data/webpack/ForemanInventoryUpload/Components/TabHeader/__tests__/TabHeader.test.js +46 -8
- data/webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/InventoryAutoUpload.js +2 -7
- data/webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/__tests__/__snapshots__/InventoryAutoUpload.test.js.snap +3 -16
- data/webpack/InsightsCloudSync/Components/InsightsTable/InsightsTable.js +5 -1
- data/webpack/InsightsCloudSync/Components/InsightsTable/InsightsTableConstants.js +1 -1
- data/webpack/InsightsCloudSync/Components/InsightsTable/Pagination.js +7 -7
- data/webpack/InsightsCloudSync/Components/InsightsTable/table.scss +1 -1
- data/webpack/InsightsCloudSync/Components/RemediationModal/RemediationModal.js +5 -1
- data/webpack/InsightsCloudSync/Components/RemediationModal/RemediationTableConstants.js +8 -1
- data/webpack/InsightsCloudSync/Components/ToolbarDropdown.js +8 -2
- data/webpack/InsightsCloudSync/InsightsCloudSync.scss +1 -1
- data/webpack/InsightsHostDetailsTab/InsightsTotalRiskChart.js +11 -2
- data/webpack/InsightsHostDetailsTab/NewHostDetailsTab.js +5 -4
- data/webpack/common/DropdownToggle.js +2 -2
- data/webpack/common/Switcher/HelpLabel.js +1 -1
- data/webpack/common/Switcher/SwitcherPF4.js +11 -1
- data/webpack/common/Switcher/SwitcherPF4.scss +1 -1
- data/webpack/common/Switcher/__tests__/__snapshots__/HelpLabel.test.js.snap +2 -6
- data/webpack/common/table/EmptyState.js +25 -18
- metadata +4 -43
- data/webpack/ForemanInventoryUpload/Components/InventorySettings/__tests__/InventorySettings.test.js +0 -13
- data/webpack/ForemanInventoryUpload/Components/InventorySettings/__tests__/__snapshots__/InventorySettings.test.js.snap +0 -31
- data/webpack/ForemanInventoryUpload/Components/NavContainer/__tests__/__snapshots__/NavContainer.test.js.snap +0 -89
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/__tests__/__snapshots__/PageDescription.test.js.snap +0 -62
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/__tests__/__snapshots__/ToolbarButtons.test.js.snap +0 -10
- data/webpack/ForemanInventoryUpload/Components/TabHeader/__tests__/__snapshots__/TabHeader.test.js.snap +0 -43
- data/webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/components/AdvancedSettings/AdvancedSettings.js +0 -72
- data/webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/components/AdvancedSettings/index.js +0 -23
@@ -5,7 +5,7 @@ import {
|
|
5
5
|
EmptyStateIcon,
|
6
6
|
Spinner,
|
7
7
|
EmptyStateVariant,
|
8
|
-
|
8
|
+
EmptyStateHeader,
|
9
9
|
} from '@patternfly/react-core';
|
10
10
|
import { ExclamationCircleIcon, CheckIcon } from '@patternfly/react-icons';
|
11
11
|
|
@@ -16,33 +16,40 @@ const TableEmptyState = ({ status, error, rowsLength }) => {
|
|
16
16
|
switch (status) {
|
17
17
|
case STATUS.PENDING:
|
18
18
|
return (
|
19
|
-
<EmptyState variant={EmptyStateVariant.
|
20
|
-
<
|
21
|
-
|
22
|
-
{
|
23
|
-
|
19
|
+
<EmptyState variant={EmptyStateVariant.sm}>
|
20
|
+
<EmptyStateHeader
|
21
|
+
titleText={<>{__('Loading')}</>}
|
22
|
+
icon={<EmptyStateIcon icon={Spinner} />}
|
23
|
+
headingLevel="h2"
|
24
|
+
/>
|
24
25
|
</EmptyState>
|
25
26
|
);
|
26
27
|
case STATUS.ERROR:
|
27
28
|
return (
|
28
|
-
<EmptyState variant={EmptyStateVariant.
|
29
|
-
<
|
30
|
-
|
31
|
-
|
29
|
+
<EmptyState variant={EmptyStateVariant.sm}>
|
30
|
+
<EmptyStateHeader
|
31
|
+
titleText={
|
32
|
+
<>
|
33
|
+
{sprintf(
|
34
|
+
__('The server returned the following error: %s'),
|
35
|
+
error
|
36
|
+
)}
|
37
|
+
</>
|
38
|
+
}
|
39
|
+
icon={<EmptyStateIcon icon={ExclamationCircleIcon} />}
|
40
|
+
headingLevel="h2"
|
32
41
|
/>
|
33
|
-
<Title headingLevel="h2" size="lg">
|
34
|
-
{sprintf(__('The server returned the following error: %s'), error)}
|
35
|
-
</Title>
|
36
42
|
</EmptyState>
|
37
43
|
);
|
38
44
|
case STATUS.RESOLVED:
|
39
45
|
if (rowsLength > 0) return null;
|
40
46
|
return (
|
41
|
-
<EmptyState variant={EmptyStateVariant.
|
42
|
-
<
|
43
|
-
|
44
|
-
{
|
45
|
-
|
47
|
+
<EmptyState variant={EmptyStateVariant.lg}>
|
48
|
+
<EmptyStateHeader
|
49
|
+
titleText={<>{__('There are no recommendations for your hosts')}</>}
|
50
|
+
icon={<EmptyStateIcon icon={CheckIcon} />}
|
51
|
+
headingLevel="h2"
|
52
|
+
/>
|
46
53
|
</EmptyState>
|
47
54
|
);
|
48
55
|
default:
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman_rh_cloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 12.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Foreman Red Hat Cloud team
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: foreman_ansible
|
@@ -16,9 +16,6 @@ dependencies:
|
|
16
16
|
- - ">="
|
17
17
|
- !ruby/object:Gem::Version
|
18
18
|
version: 15.0.0
|
19
|
-
- - "<"
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: 16.0.0
|
22
19
|
type: :runtime
|
23
20
|
prerelease: false
|
24
21
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -26,29 +23,6 @@ dependencies:
|
|
26
23
|
- - ">="
|
27
24
|
- !ruby/object:Gem::Version
|
28
25
|
version: 15.0.0
|
29
|
-
- - "<"
|
30
|
-
- !ruby/object:Gem::Version
|
31
|
-
version: 16.0.0
|
32
|
-
- !ruby/object:Gem::Dependency
|
33
|
-
name: foreman_remote_execution
|
34
|
-
requirement: !ruby/object:Gem::Requirement
|
35
|
-
requirements:
|
36
|
-
- - ">="
|
37
|
-
- !ruby/object:Gem::Version
|
38
|
-
version: 15.0.0
|
39
|
-
- - "<"
|
40
|
-
- !ruby/object:Gem::Version
|
41
|
-
version: 16.0.0
|
42
|
-
type: :runtime
|
43
|
-
prerelease: false
|
44
|
-
version_requirements: !ruby/object:Gem::Requirement
|
45
|
-
requirements:
|
46
|
-
- - ">="
|
47
|
-
- !ruby/object:Gem::Version
|
48
|
-
version: 15.0.0
|
49
|
-
- - "<"
|
50
|
-
- !ruby/object:Gem::Version
|
51
|
-
version: 16.0.0
|
52
26
|
- !ruby/object:Gem::Dependency
|
53
27
|
name: foreman-tasks
|
54
28
|
requirement: !ruby/object:Gem::Requirement
|
@@ -56,9 +30,6 @@ dependencies:
|
|
56
30
|
- - ">="
|
57
31
|
- !ruby/object:Gem::Version
|
58
32
|
version: 10.0.0
|
59
|
-
- - "<"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: 11.0.0
|
62
33
|
type: :runtime
|
63
34
|
prerelease: false
|
64
35
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -66,9 +37,6 @@ dependencies:
|
|
66
37
|
- - ">="
|
67
38
|
- !ruby/object:Gem::Version
|
68
39
|
version: 10.0.0
|
69
|
-
- - "<"
|
70
|
-
- !ruby/object:Gem::Version
|
71
|
-
version: 11.0.0
|
72
40
|
- !ruby/object:Gem::Dependency
|
73
41
|
name: katello
|
74
42
|
requirement: !ruby/object:Gem::Requirement
|
@@ -424,16 +392,14 @@ files:
|
|
424
392
|
- webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettingsActions.js
|
425
393
|
- webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettingsConstants.js
|
426
394
|
- webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettingsSelectors.js
|
427
|
-
- webpack/ForemanInventoryUpload/Components/InventorySettings/
|
395
|
+
- webpack/ForemanInventoryUpload/Components/InventorySettings/MinimalInventoryDropdown.js
|
428
396
|
- webpack/ForemanInventoryUpload/Components/InventorySettings/__tests__/InventorySettingsActions.test.js
|
429
|
-
- webpack/ForemanInventoryUpload/Components/InventorySettings/__tests__/__snapshots__/InventorySettings.test.js.snap
|
430
397
|
- webpack/ForemanInventoryUpload/Components/InventorySettings/__tests__/__snapshots__/InventorySettingsActions.test.js.snap
|
431
398
|
- webpack/ForemanInventoryUpload/Components/InventorySettings/index.js
|
432
399
|
- webpack/ForemanInventoryUpload/Components/NavContainer/NavContainer.fixtures.js
|
433
400
|
- webpack/ForemanInventoryUpload/Components/NavContainer/NavContainer.js
|
434
401
|
- webpack/ForemanInventoryUpload/Components/NavContainer/NavContainerHelper.js
|
435
402
|
- webpack/ForemanInventoryUpload/Components/NavContainer/__tests__/NavContainer.test.js
|
436
|
-
- webpack/ForemanInventoryUpload/Components/NavContainer/__tests__/__snapshots__/NavContainer.test.js.snap
|
437
403
|
- webpack/ForemanInventoryUpload/Components/NavContainer/index.js
|
438
404
|
- webpack/ForemanInventoryUpload/Components/NavContainer/navContainer.scss
|
439
405
|
- webpack/ForemanInventoryUpload/Components/PageHeader/PageHeader.js
|
@@ -455,7 +421,6 @@ files:
|
|
455
421
|
- webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudPingModal/index.js
|
456
422
|
- webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/PageDescription.js
|
457
423
|
- webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/__tests__/PageDescription.test.js
|
458
|
-
- webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/__tests__/__snapshots__/PageDescription.test.js.snap
|
459
424
|
- webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/index.js
|
460
425
|
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SettingsWarning/SettingsWarning.js
|
461
426
|
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SettingsWarning/SettingsWarning.test.js
|
@@ -476,7 +441,6 @@ files:
|
|
476
441
|
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/index.js
|
477
442
|
- webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/ToolbarButtons.js
|
478
443
|
- webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/__tests__/ToolbarButtons.test.js
|
479
|
-
- webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/__tests__/__snapshots__/ToolbarButtons.test.js.snap
|
480
444
|
- webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/index.js
|
481
445
|
- webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/toolbarButtons.scss
|
482
446
|
- webpack/ForemanInventoryUpload/Components/PageHeader/index.js
|
@@ -533,7 +497,6 @@ files:
|
|
533
497
|
- webpack/ForemanInventoryUpload/Components/TabHeader/TabHeader.js
|
534
498
|
- webpack/ForemanInventoryUpload/Components/TabHeader/TabHeaderHelper.js
|
535
499
|
- webpack/ForemanInventoryUpload/Components/TabHeader/__tests__/TabHeader.test.js
|
536
|
-
- webpack/ForemanInventoryUpload/Components/TabHeader/__tests__/__snapshots__/TabHeader.test.js.snap
|
537
500
|
- webpack/ForemanInventoryUpload/Components/TabHeader/index.js
|
538
501
|
- webpack/ForemanInventoryUpload/Components/TabHeader/tabHeader.scss
|
539
502
|
- webpack/ForemanInventoryUpload/Components/Terminal/Terminal.fixtures.js
|
@@ -550,8 +513,6 @@ files:
|
|
550
513
|
- webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/InventoryAutoUpload.js
|
551
514
|
- webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/__tests__/InventoryAutoUpload.test.js
|
552
515
|
- webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/__tests__/__snapshots__/InventoryAutoUpload.test.js.snap
|
553
|
-
- webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/components/AdvancedSettings/AdvancedSettings.js
|
554
|
-
- webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/components/AdvancedSettings/index.js
|
555
516
|
- webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/index.js
|
556
517
|
- webpack/ForemanInventoryUpload/__tests__/ForemanInventoryHelpers.test.js
|
557
518
|
- webpack/ForemanInventoryUpload/__tests__/ForemanInventoryUpload.test.js
|
@@ -697,7 +658,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
697
658
|
- !ruby/object:Gem::Version
|
698
659
|
version: '0'
|
699
660
|
requirements: []
|
700
|
-
rubygems_version: 3.6.
|
661
|
+
rubygems_version: 3.6.7
|
701
662
|
specification_version: 4
|
702
663
|
summary: Summary of ForemanRhCloud.
|
703
664
|
test_files:
|
data/webpack/ForemanInventoryUpload/Components/InventorySettings/__tests__/InventorySettings.test.js
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
import { testComponentSnapshotsWithFixtures } from '@theforeman/test';
|
2
|
-
|
3
|
-
import InventorySettings from '../InventorySettings';
|
4
|
-
|
5
|
-
const fixtures = {
|
6
|
-
'render without Props': {},
|
7
|
-
/** fixtures, props for the component */
|
8
|
-
};
|
9
|
-
|
10
|
-
describe('InventorySettings', () => {
|
11
|
-
describe('rendering', () =>
|
12
|
-
testComponentSnapshotsWithFixtures(InventorySettings, fixtures));
|
13
|
-
});
|
@@ -1,31 +0,0 @@
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
2
|
-
|
3
|
-
exports[`InventorySettings rendering render without Props 1`] = `
|
4
|
-
<div
|
5
|
-
className="inventory-settings"
|
6
|
-
>
|
7
|
-
<h3>
|
8
|
-
Settings
|
9
|
-
</h3>
|
10
|
-
<AdvancedSetting
|
11
|
-
key="autoUploadEnabled"
|
12
|
-
setting="autoUploadEnabled"
|
13
|
-
/>
|
14
|
-
<AdvancedSetting
|
15
|
-
key="hostObfuscationEnabled"
|
16
|
-
setting="hostObfuscationEnabled"
|
17
|
-
/>
|
18
|
-
<AdvancedSetting
|
19
|
-
key="ipsObfuscationEnabled"
|
20
|
-
setting="ipsObfuscationEnabled"
|
21
|
-
/>
|
22
|
-
<AdvancedSetting
|
23
|
-
key="excludePackagesEnabled"
|
24
|
-
setting="excludePackagesEnabled"
|
25
|
-
/>
|
26
|
-
<AdvancedSetting
|
27
|
-
key="allowAutoInsightsMismatchDelete"
|
28
|
-
setting="allowAutoInsightsMismatchDelete"
|
29
|
-
/>
|
30
|
-
</div>
|
31
|
-
`;
|
@@ -1,89 +0,0 @@
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
2
|
-
|
3
|
-
exports[`NavContainer rendering render with Props 1`] = `
|
4
|
-
<ForwardRef
|
5
|
-
defaultActiveKey={0}
|
6
|
-
id="basic-tabs-pf"
|
7
|
-
>
|
8
|
-
<div
|
9
|
-
className="dashboard"
|
10
|
-
>
|
11
|
-
<Nav
|
12
|
-
bsClass="nav nav-tabs nav-tabs-pf"
|
13
|
-
justified={false}
|
14
|
-
pullLeft={false}
|
15
|
-
pullRight={false}
|
16
|
-
stacked={false}
|
17
|
-
>
|
18
|
-
<NavItem
|
19
|
-
active={false}
|
20
|
-
className="nav_item"
|
21
|
-
disabled={false}
|
22
|
-
eventKey={0}
|
23
|
-
key="0"
|
24
|
-
onClick={[Function]}
|
25
|
-
>
|
26
|
-
<Icon
|
27
|
-
name="some-icon"
|
28
|
-
size="2x"
|
29
|
-
type="fa"
|
30
|
-
/>
|
31
|
-
<p>
|
32
|
-
some-name
|
33
|
-
</p>
|
34
|
-
</NavItem>
|
35
|
-
</Nav>
|
36
|
-
<TabContent
|
37
|
-
animation={true}
|
38
|
-
bsClass="tab"
|
39
|
-
componentClass="div"
|
40
|
-
mountOnEnter={false}
|
41
|
-
unmountOnExit={false}
|
42
|
-
>
|
43
|
-
<TabPane
|
44
|
-
bsClass="tab-pane"
|
45
|
-
eventKey={0}
|
46
|
-
key="0"
|
47
|
-
>
|
48
|
-
<component />
|
49
|
-
</TabPane>
|
50
|
-
</TabContent>
|
51
|
-
<FullScreenModal
|
52
|
-
showFullScreen={false}
|
53
|
-
terminalProps={Object {}}
|
54
|
-
toggleFullScreen={[Function]}
|
55
|
-
/>
|
56
|
-
</div>
|
57
|
-
</ForwardRef>
|
58
|
-
`;
|
59
|
-
|
60
|
-
exports[`NavContainer rendering render without Props 1`] = `
|
61
|
-
<ForwardRef
|
62
|
-
defaultActiveKey={0}
|
63
|
-
id="basic-tabs-pf"
|
64
|
-
>
|
65
|
-
<div
|
66
|
-
className="dashboard"
|
67
|
-
>
|
68
|
-
<Nav
|
69
|
-
bsClass="nav nav-tabs nav-tabs-pf"
|
70
|
-
justified={false}
|
71
|
-
pullLeft={false}
|
72
|
-
pullRight={false}
|
73
|
-
stacked={false}
|
74
|
-
/>
|
75
|
-
<TabContent
|
76
|
-
animation={true}
|
77
|
-
bsClass="tab"
|
78
|
-
componentClass="div"
|
79
|
-
mountOnEnter={false}
|
80
|
-
unmountOnExit={false}
|
81
|
-
/>
|
82
|
-
<FullScreenModal
|
83
|
-
showFullScreen={false}
|
84
|
-
terminalProps={Object {}}
|
85
|
-
toggleFullScreen={[Function]}
|
86
|
-
/>
|
87
|
-
</div>
|
88
|
-
</ForwardRef>
|
89
|
-
`;
|
@@ -1,62 +0,0 @@
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
2
|
-
|
3
|
-
exports[`PageDescription rendering render without Props 1`] = `
|
4
|
-
<div
|
5
|
-
id="inventory_page_description"
|
6
|
-
>
|
7
|
-
<Text>
|
8
|
-
The Red Hat Hybrid Cloud Console provides a set of cloud services, including Red Hat Insights and Subscriptions, that provide predictive analysis, remediation of issues, and unified subscription reporting for this Foreman instance.
|
9
|
-
</Text>
|
10
|
-
<Text>
|
11
|
-
The Foreman inventory upload plugin automatically uploads Foreman host inventory data to the Inventory service of Insights, where it can also be used by the Subscriptions service for subscription reporting. If you use the Subscriptions service, enabling inventory uploads is required.
|
12
|
-
</Text>
|
13
|
-
<Text>
|
14
|
-
<FormattedMessage
|
15
|
-
defaultMessage="To enable this reporting for all Foreman organizations, set {uploadButtonName} to on. The data will be reported automatically once per day."
|
16
|
-
id="enable-upload-hint"
|
17
|
-
values={
|
18
|
-
Object {
|
19
|
-
"uploadButtonName": <strong>
|
20
|
-
Automatic inventory upload
|
21
|
-
</strong>,
|
22
|
-
}
|
23
|
-
}
|
24
|
-
/>
|
25
|
-
</Text>
|
26
|
-
<Text>
|
27
|
-
<FormattedMessage
|
28
|
-
defaultMessage="To manually upload the data for a specific organization, select an organization and click {restartButtonName}."
|
29
|
-
id="restart-button-hint"
|
30
|
-
values={
|
31
|
-
Object {
|
32
|
-
"restartButtonName": <strong>
|
33
|
-
Generate and upload report
|
34
|
-
</strong>,
|
35
|
-
}
|
36
|
-
}
|
37
|
-
/>
|
38
|
-
</Text>
|
39
|
-
<Text>
|
40
|
-
For more information about the Subscriptions service, see:
|
41
|
-
|
42
|
-
<a
|
43
|
-
href="https://docs.redhat.com/en/documentation/subscription_central/1-latest/html/getting_started_with_the_subscriptions_service/index"
|
44
|
-
rel="noopener noreferrer"
|
45
|
-
target="_blank"
|
46
|
-
>
|
47
|
-
About subscription watch
|
48
|
-
</a>
|
49
|
-
</Text>
|
50
|
-
<Text>
|
51
|
-
For more information about Insights and Cloud Connector, see:
|
52
|
-
|
53
|
-
<a
|
54
|
-
href="https://console.redhat.com/security/insights/"
|
55
|
-
rel="noopener noreferrer"
|
56
|
-
target="_blank"
|
57
|
-
>
|
58
|
-
Red Hat Insights Data and Application Security
|
59
|
-
</a>
|
60
|
-
</Text>
|
61
|
-
</div>
|
62
|
-
`;
|
@@ -1,43 +0,0 @@
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
2
|
-
|
3
|
-
exports[`TabHeader rendering render without Props 1`] = `
|
4
|
-
<Row
|
5
|
-
bsClass="row"
|
6
|
-
className="tab-header"
|
7
|
-
componentClass="div"
|
8
|
-
>
|
9
|
-
<Col
|
10
|
-
bsClass="col"
|
11
|
-
componentClass="div"
|
12
|
-
sm={6}
|
13
|
-
>
|
14
|
-
<p>
|
15
|
-
Exit Code:
|
16
|
-
</p>
|
17
|
-
</Col>
|
18
|
-
<Col
|
19
|
-
bsClass="col"
|
20
|
-
componentClass="div"
|
21
|
-
sm={6}
|
22
|
-
>
|
23
|
-
<div
|
24
|
-
className="tab-action-buttons"
|
25
|
-
>
|
26
|
-
<Button
|
27
|
-
active={false}
|
28
|
-
block={false}
|
29
|
-
bsClass="btn"
|
30
|
-
bsStyle="default"
|
31
|
-
disabled={false}
|
32
|
-
onClick={[Function]}
|
33
|
-
>
|
34
|
-
Full Screen
|
35
|
-
<Icon
|
36
|
-
name="arrows-alt"
|
37
|
-
type="fa"
|
38
|
-
/>
|
39
|
-
</Button>
|
40
|
-
</div>
|
41
|
-
</Col>
|
42
|
-
</Row>
|
43
|
-
`;
|
@@ -1,72 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import PropTypes from 'prop-types';
|
3
|
-
import { Grid } from 'patternfly-react';
|
4
|
-
import { translate as __ } from 'foremanReact/common/I18n';
|
5
|
-
import Switcher from '../../../../../common/Switcher';
|
6
|
-
import { settingsDict } from '../../../../Components/InventorySettings/AdvancedSetting/AdvancedSettingsConstants';
|
7
|
-
|
8
|
-
const AdvancedSettings = ({
|
9
|
-
setSetting,
|
10
|
-
hostObfuscationEnabled,
|
11
|
-
ipsObfuscationEnabled,
|
12
|
-
excludePackagesEnabled,
|
13
|
-
}) => (
|
14
|
-
<form style={{ padding: '5px' }}>
|
15
|
-
<Grid.Row>
|
16
|
-
<Switcher
|
17
|
-
id="obfuscate-hostnames"
|
18
|
-
label={__('Obfuscate host names')}
|
19
|
-
tooltip={__('Obfuscate host names sent to the Red Hat cloud')}
|
20
|
-
isChecked={hostObfuscationEnabled}
|
21
|
-
onChange={() =>
|
22
|
-
setSetting({
|
23
|
-
setting: settingsDict.hostObfuscationEnabled.name,
|
24
|
-
value: !hostObfuscationEnabled,
|
25
|
-
})
|
26
|
-
}
|
27
|
-
labelCol={8}
|
28
|
-
/>
|
29
|
-
</Grid.Row>
|
30
|
-
<Grid.Row>
|
31
|
-
<Switcher
|
32
|
-
id="obfuscate-ip"
|
33
|
-
label={__('Obfuscate IPs')}
|
34
|
-
tooltip={__('Obfuscate ipv4 addresses sent to the Red Hat cloud')}
|
35
|
-
isChecked={ipsObfuscationEnabled}
|
36
|
-
onChange={() =>
|
37
|
-
setSetting({
|
38
|
-
setting: settingsDict.ipsObfuscationEnabled.name,
|
39
|
-
value: !ipsObfuscationEnabled,
|
40
|
-
})
|
41
|
-
}
|
42
|
-
labelCol={8}
|
43
|
-
/>
|
44
|
-
</Grid.Row>
|
45
|
-
<Grid.Row>
|
46
|
-
<Switcher
|
47
|
-
id="exclude-packages"
|
48
|
-
label={__('Exclude packages')}
|
49
|
-
tooltip={__(
|
50
|
-
'Exclude packages from being uploaded to the Red Hat cloud'
|
51
|
-
)}
|
52
|
-
isChecked={excludePackagesEnabled}
|
53
|
-
onChange={() =>
|
54
|
-
setSetting({
|
55
|
-
setting: settingsDict.excludePackagesEnabled.name,
|
56
|
-
value: !excludePackagesEnabled,
|
57
|
-
})
|
58
|
-
}
|
59
|
-
labelCol={8}
|
60
|
-
/>
|
61
|
-
</Grid.Row>
|
62
|
-
</form>
|
63
|
-
);
|
64
|
-
|
65
|
-
AdvancedSettings.propTypes = {
|
66
|
-
setSetting: PropTypes.func.isRequired,
|
67
|
-
hostObfuscationEnabled: PropTypes.bool.isRequired,
|
68
|
-
ipsObfuscationEnabled: PropTypes.bool.isRequired,
|
69
|
-
excludePackagesEnabled: PropTypes.bool.isRequired,
|
70
|
-
};
|
71
|
-
|
72
|
-
export default AdvancedSettings;
|
@@ -1,23 +0,0 @@
|
|
1
|
-
import { bindActionCreators } from 'redux';
|
2
|
-
import { connect } from 'react-redux';
|
3
|
-
import { setSetting } from '../../../../Components/InventorySettings/InventorySettingsActions';
|
4
|
-
import AdvancedSettings from './AdvancedSettings';
|
5
|
-
import {
|
6
|
-
selectExcludePackages,
|
7
|
-
selectHostObfuscationEnabled,
|
8
|
-
selectIpsObfuscationEnabled,
|
9
|
-
} from '../../../../Components/InventorySettings/InventorySettingsSelectors';
|
10
|
-
|
11
|
-
// map state to props
|
12
|
-
const mapStateToProps = state => ({
|
13
|
-
hostObfuscationEnabled: selectHostObfuscationEnabled(state),
|
14
|
-
ipsObfuscationEnabled: selectIpsObfuscationEnabled(state),
|
15
|
-
excludePackagesEnabled: selectExcludePackages(state),
|
16
|
-
});
|
17
|
-
|
18
|
-
// map action dispatchers to props
|
19
|
-
const mapDispatchToProps = dispatch =>
|
20
|
-
bindActionCreators({ setSetting }, dispatch);
|
21
|
-
|
22
|
-
// export connected component
|
23
|
-
export default connect(mapStateToProps, mapDispatchToProps)(AdvancedSettings);
|