foreman_rh_cloud 1.0.7 → 1.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +33 -0
- data/app/controllers/foreman_inventory_upload/accounts_controller.rb +2 -0
- data/app/controllers/foreman_inventory_upload/tasks_controller.rb +25 -0
- data/app/controllers/foreman_inventory_upload/uploads_controller.rb +22 -3
- data/app/controllers/foreman_rh_cloud/react_controller.rb +3 -0
- data/app/controllers/insights_cloud/hits_controller.rb +17 -0
- data/app/controllers/insights_cloud/settings_controller.rb +24 -0
- data/app/controllers/insights_cloud/tasks_controller.rb +7 -0
- data/app/helpers/foreman_inventory_upload_host_helper.rb +20 -0
- data/app/models/concerns/rh_cloud_host.rb +12 -0
- data/app/models/insights_facet.rb +7 -0
- data/app/models/insights_hit.rb +6 -0
- data/app/models/inventory_sync/inventory_status.rb +30 -0
- data/app/models/setting/rh_cloud.rb +3 -1
- data/app/overrides/hosts_list.rb +13 -0
- data/app/views/foreman_rh_cloud/react/insights_cloud.html.erb +6 -0
- data/app/views/foreman_rh_cloud/react/inventory_upload.html.erb +1 -1
- data/app/views/hosts/_insights_tab.html.erb +15 -0
- data/config/routes.rb +11 -0
- data/db/migrate/20191215104806_create_insights_hits.foreman_inventory_upload.rb +14 -0
- data/db/migrate/20191216062008_create_insights_facets.foreman_inventory_upload.rb +7 -0
- data/db/migrate/20200727111529_add_uuid_column_to_insights_facets.foreman_rh_cloud.rb +5 -0
- data/lib/foreman_inventory_upload.rb +4 -0
- data/lib/foreman_inventory_upload/async/generate_report_job.rb +1 -1
- data/lib/foreman_inventory_upload/async/shell_process.rb +15 -9
- data/lib/foreman_inventory_upload/async/upload_report_job.rb +21 -9
- data/lib/foreman_inventory_upload/generators/fact_helpers.rb +1 -1
- data/lib/foreman_inventory_upload/generators/json_stream.rb +10 -0
- data/lib/foreman_inventory_upload/generators/metadata.rb +3 -0
- data/lib/foreman_inventory_upload/generators/queries.rb +2 -4
- data/lib/foreman_inventory_upload/generators/slice.rb +40 -13
- data/lib/foreman_inventory_upload/notifications/manifest_import_success_notification_override.rb +19 -0
- data/lib/foreman_rh_cloud.rb +67 -0
- data/lib/foreman_rh_cloud/engine.rb +36 -9
- data/lib/foreman_rh_cloud/version.rb +1 -1
- data/lib/insights_cloud.rb +15 -0
- data/lib/insights_cloud/async/insights_full_sync.rb +105 -0
- data/lib/insights_cloud/async/insights_scheduled_sync.rb +23 -0
- data/lib/inventory_sync/async/host_result.rb +50 -0
- data/lib/inventory_sync/async/inventory_full_sync.rb +101 -0
- data/lib/tasks/insights.rake +15 -0
- data/lib/tasks/rh_cloud_inventory.rake +37 -0
- data/package.json +3 -1
- data/test/controllers/insights_sync/settings_controller_test.rb +30 -0
- data/test/factories/insights_factories.rb +31 -0
- data/test/jobs/insights_full_sync_test.rb +94 -0
- data/test/jobs/inventory_full_sync_test.rb +91 -0
- data/test/jobs/upload_report_job_test.rb +34 -0
- data/test/unit/insights_facet_test.rb +16 -0
- data/test/unit/metadata_generator_test.rb +2 -0
- data/test/unit/rh_cloud_http_proxy_test.rb +65 -0
- data/test/unit/slice_generator_test.rb +73 -10
- data/webpack/ForemanInventoryUpload/Components/AccountList/AccountList.fixtures.js +8 -0
- data/webpack/ForemanInventoryUpload/Components/AccountList/AccountListActions.js +3 -1
- data/webpack/ForemanInventoryUpload/Components/AccountList/AccountListReducer.js +11 -1
- data/webpack/ForemanInventoryUpload/Components/AccountList/AccountListSelectors.js +9 -0
- data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListActions.test.js +8 -1
- data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListReducer.test.js +13 -0
- data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListSelectors.test.js +7 -2
- data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/__snapshots__/AccountListActions.test.js.snap +21 -2
- data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/__snapshots__/AccountListReducer.test.js.snap +11 -0
- data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/__snapshots__/AccountListSelectors.test.js.snap +3 -0
- data/webpack/ForemanInventoryUpload/Components/AutoUploadSwitcher/AutoUploadSwitcher.js +6 -6
- data/webpack/ForemanInventoryUpload/Components/AutoUploadSwitcher/__tests__/__snapshots__/AutoUploadSwitcher.test.js.snap +9 -9
- data/webpack/ForemanInventoryUpload/Components/AutoUploadSwitcher/autoUploadSwitcher.scss +1 -1
- data/webpack/ForemanInventoryUpload/Components/Dashboard/__tests__/DashboardActions.test.js +2 -2
- data/webpack/ForemanInventoryUpload/Components/Dashboard/__tests__/DashboardSelectors.test.js +2 -2
- data/webpack/ForemanInventoryUpload/Components/FullScreenModal/FullScreenModal.js +5 -1
- data/webpack/ForemanInventoryUpload/Components/FullScreenModal/__tests__/__snapshots__/FullScreenModal.test.js.snap +1 -0
- data/webpack/ForemanInventoryUpload/Components/FullScreenModal/fullScreenModal.scss +15 -13
- data/webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.fixtures.js +1 -0
- data/webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.js +29 -0
- data/webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcherActions.js +30 -0
- data/webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcherConstants.js +3 -0
- data/webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/__tests__/HostObfuscationSwitcher.test.js +14 -0
- data/webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/__tests__/HostObfuscationSwitcherActions.test.js +14 -0
- data/webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/__tests__/__snapshots__/HostObfuscationSwitcher.test.js.snap +38 -0
- data/webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/__tests__/__snapshots__/HostObfuscationSwitcherActions.test.js.snap +14 -0
- data/webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/hostObfuscationSwitcher.scss +0 -0
- data/webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/index.js +20 -0
- data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilterSelectors.test.js +2 -2
- data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/integration.test.js.snap +9 -0
- data/webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettings.js +15 -0
- data/webpack/ForemanInventoryUpload/Components/InventorySettings/__tests__/InventorySettings.test.js +13 -0
- data/webpack/ForemanInventoryUpload/Components/InventorySettings/__tests__/__snapshots__/InventorySettings.test.js.snap +13 -0
- data/webpack/ForemanInventoryUpload/Components/InventorySettings/index.js +1 -0
- data/webpack/ForemanInventoryUpload/Components/InventorySettings/inventorySettings.scss +15 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/PageHeader.js +14 -4
- data/webpack/ForemanInventoryUpload/Components/PageHeader/__tests__/__snapshots__/PageHeader.test.js.snap +24 -5
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/DocsButton/DocsButton.js +18 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/DocsButton/__tests__/DocsButton.test.js +13 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/DocsButton/__tests__/__snapshots__/DocsButton.test.js.snap +21 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/DocsButton/index.js +1 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/HistoryButton/HistoryButton.js +19 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/HistoryButton/__tests__/HistoryButton.test.js +14 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/HistoryButton/__tests__/__snapshots__/HistoryButton.test.js.snap +22 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/HistoryButton/index.js +1 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/PageDescription.js +24 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/__tests__/PageDescription.test.js +11 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/__tests__/__snapshots__/PageDescription.test.js.snap +17 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/index.js +1 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButton.js +52 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButtonActions.js +59 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButtonConstants.js +3 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButtonReducer.js +36 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButtonSelectors.js +13 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButton.test.js +13 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonActions.test.js +13 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonFixtures.js +9 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonReducer.test.js +33 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonSelectors.test.js +36 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButton.test.js.snap +26 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButtonActions.test.js.snap +36 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButtonReducer.test.js.snap +25 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButtonSelectors.test.js.snap +18 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/components/Modal.js +63 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/components/Toast.js +41 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/components/modal.scss +20 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/index.js +22 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/ToolbarButtons.js +15 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/__tests__/ToolbarButtons.test.js +12 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/__tests__/__snapshots__/ToolbarButtons.test.js.snap +11 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/index.js +1 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/toolbarButtons.scss +12 -0
- data/webpack/ForemanInventoryUpload/Components/StatusChart/StatusChart.js +1 -1
- data/webpack/ForemanInventoryUpload/Components/StatusChart/__tests__/__snapshots__/StatusChart.test.js.snap +1 -1
- data/webpack/ForemanInventoryUpload/Components/TabContainer/tabContainer.scss +1 -1
- data/webpack/ForemanInventoryUpload/ForemanInventoryConstants.js +7 -1
- data/webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js +8 -0
- data/webpack/ForemanInventoryUpload/ForemanInventoryUploadReducers.js +2 -0
- data/webpack/ForemanInventoryUpload/SubscriptionsPageExtension/SubscriptionsPageExtensionActions.js +34 -0
- data/webpack/ForemanInventoryUpload/__tests__/ForemanInventoryHelpers.test.js +2 -1
- data/webpack/ForemanInventoryUpload/__tests__/__snapshots__/ForemanInventoryHelpers.test.js.snap +2 -0
- data/webpack/ForemanRhCloudPages.js +9 -0
- data/webpack/ForemanRhCloudReducers.js +4 -0
- data/webpack/ForemanRhCloudSelectors.js +7 -0
- data/webpack/ForemanRhCloudTestHelpers.js +17 -2
- data/webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettings.js +33 -0
- data/webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettingsActions.js +60 -0
- data/webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettingsConstants.js +10 -0
- data/webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettingsReducer.js +28 -0
- data/webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettingsSelectors.js +6 -0
- data/webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettings.test.js +18 -0
- data/webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsActions.test.js +46 -0
- data/webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsReducer.test.js +56 -0
- data/webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsSelectors.test.js +21 -0
- data/webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/__snapshots__/InsightsSettings.test.js.snap +15 -0
- data/webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/__snapshots__/InsightsSettingsActions.test.js.snap +31 -0
- data/webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/__snapshots__/InsightsSettingsReducer.test.js.snap +33 -0
- data/webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/__snapshots__/InsightsSettingsSelectors.test.js.snap +9 -0
- data/webpack/InsightsCloudSync/Components/InsightsSettings/index.js +21 -0
- data/webpack/InsightsCloudSync/Components/InsightsSettings/insightsSettings.scss +16 -0
- data/webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/InsightsSyncSwitcher.fixtures.js +1 -0
- data/webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/InsightsSyncSwitcher.js +45 -0
- data/webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/__tests__/InsightsSyncSwitcher.test.js +17 -0
- data/webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/__tests__/__snapshots__/InsightsSyncSwitcher.test.js.snap +38 -0
- data/webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/index.js +1 -0
- data/webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/insightsSyncSwitcher.scss +3 -0
- data/webpack/InsightsCloudSync/InsightsCloudSync.js +59 -0
- data/webpack/InsightsCloudSync/InsightsCloudSync.test.js +16 -0
- data/webpack/InsightsCloudSync/InsightsCloudSyncActions.js +23 -0
- data/webpack/InsightsCloudSync/InsightsCloudSyncConstants.js +6 -0
- data/webpack/InsightsCloudSync/InsightsCloudSyncHelpers.js +3 -0
- data/webpack/InsightsCloudSync/InsightsCloudSyncReducers.js +8 -0
- data/webpack/InsightsCloudSync/__snapshots__/InsightsCloudSync.test.js.snap +67 -0
- data/webpack/InsightsCloudSync/__tests__/InsightsCloudSyncHelpers.test.js +11 -0
- data/webpack/InsightsCloudSync/__tests__/__snapshots__/InsightsCloudSyncHelpers.test.js.snap +3 -0
- data/webpack/InsightsCloudSync/index.js +18 -0
- data/webpack/InsightsHostDetailsTab/InsightsTab.js +64 -0
- data/webpack/InsightsHostDetailsTab/InsightsTab.scss +86 -0
- data/webpack/InsightsHostDetailsTab/InsightsTabActions.js +30 -0
- data/webpack/InsightsHostDetailsTab/InsightsTabConstants.js +3 -0
- data/webpack/InsightsHostDetailsTab/InsightsTabReducer.js +26 -0
- data/webpack/InsightsHostDetailsTab/InsightsTabSelectors.js +3 -0
- data/webpack/InsightsHostDetailsTab/__tests__/InsightsTab.fixtures.js +25 -0
- data/webpack/InsightsHostDetailsTab/__tests__/InsightsTab.test.js +13 -0
- data/webpack/InsightsHostDetailsTab/__tests__/InsightsTabActions.test.js +13 -0
- data/webpack/InsightsHostDetailsTab/__tests__/InsightsTabIntegration.test.js +17 -0
- data/webpack/InsightsHostDetailsTab/__tests__/InsightsTabReducer.test.js +35 -0
- data/webpack/InsightsHostDetailsTab/__tests__/InsightsTabSelectors.test.js +13 -0
- data/webpack/InsightsHostDetailsTab/__tests__/__snapshots__/InsightsTab.test.js.snap +30 -0
- data/webpack/InsightsHostDetailsTab/__tests__/__snapshots__/InsightsTabActions.test.js.snap +20 -0
- data/webpack/InsightsHostDetailsTab/__tests__/__snapshots__/InsightsTabReducer.test.js.snap +41 -0
- data/webpack/InsightsHostDetailsTab/__tests__/__snapshots__/InsightsTabSelectors.test.js.snap +20 -0
- data/webpack/InsightsHostDetailsTab/components/ListItem/ListItem.js +69 -0
- data/webpack/InsightsHostDetailsTab/components/ListItem/index.js +1 -0
- data/webpack/InsightsHostDetailsTab/index.js +20 -0
- data/webpack/__mocks__/foremanReact/constants.js +5 -0
- data/webpack/__mocks__/foremanReact/redux/actions/toasts.js +8 -0
- data/webpack/__tests__/ForemanRhCloudSelectors.test.js +7 -2
- data/webpack/__tests__/ForemanRhCloudTestHelpers.test.js +12 -2
- data/webpack/__tests__/__snapshots__/ForemanRhCloudSelectors.test.js.snap +12 -2
- data/webpack/__tests__/__snapshots__/ForemanRhCloudTestHelpers.test.js.snap +29 -1
- data/webpack/index.js +2 -5
- data/webpack/stories/decorators/withCardsDecorator.js +1 -1
- data/webpack/subscriptions_extension_index.js +8 -0
- metadata +144 -3
- data/lib/tasks/generator.rake +0 -29
@@ -0,0 +1,20 @@
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
2
|
+
|
3
|
+
exports[`InsightsTab selectors should return hits 1`] = `
|
4
|
+
Array [
|
5
|
+
Object {
|
6
|
+
"insights_hit": Object {
|
7
|
+
"hostname": "my-host.example.com",
|
8
|
+
"last_seen": "2020-08-19T04:43:09.068706Z",
|
9
|
+
"likelihood": 2,
|
10
|
+
"publish_date": "2018-04-16T10:03:16Z",
|
11
|
+
"results_url": "https://cloud.redhat.com/insights/advisor/recommendations/ansible_deprecated_repo%7CANSIBLE_DEPRECATED_REPO/4739b323-a343-4e89-b71b-81991b8dc656/",
|
12
|
+
"rhel_version": "7.8",
|
13
|
+
"solution_url": "https://access.redhat.com/node/3359651",
|
14
|
+
"title": "New Ansible Engine packages are inaccessible when dedicated Ansible repo is not enabled",
|
15
|
+
"total_risk": 2,
|
16
|
+
"uuid": "4739b323-a343-4e89-b71b-81991b8dc656",
|
17
|
+
},
|
18
|
+
},
|
19
|
+
]
|
20
|
+
`;
|
@@ -0,0 +1,69 @@
|
|
1
|
+
import React, { Fragment } from 'react';
|
2
|
+
import { ListView, Icon } from 'patternfly-react';
|
3
|
+
import PropTypes from 'prop-types';
|
4
|
+
|
5
|
+
const labelMapper = {
|
6
|
+
1: 'Low',
|
7
|
+
2: 'Moderate',
|
8
|
+
3: 'Important',
|
9
|
+
4: 'Critical',
|
10
|
+
};
|
11
|
+
|
12
|
+
const ListItem = ({ title, totalRisk, resultsUrl, solutionUrl }) => {
|
13
|
+
const heading = (
|
14
|
+
<p className="ellipsis list-item-heading" title={title}>
|
15
|
+
{title}
|
16
|
+
</p>
|
17
|
+
);
|
18
|
+
|
19
|
+
const riskLabel = labelMapper[totalRisk];
|
20
|
+
const additionalInfo = [
|
21
|
+
<span key={`risk-info-${title}`} className={`risk-label ${riskLabel}`}>
|
22
|
+
<p>{riskLabel}</p>
|
23
|
+
</span>,
|
24
|
+
];
|
25
|
+
|
26
|
+
const knowledgebaseLink = solutionUrl && (
|
27
|
+
<p>
|
28
|
+
<a href={solutionUrl} target="_blank" rel="noopener noreferrer">
|
29
|
+
Knowledgebase article <Icon name="external-link" />
|
30
|
+
</a>
|
31
|
+
</p>
|
32
|
+
);
|
33
|
+
|
34
|
+
const insightsCloudLink = resultsUrl && (
|
35
|
+
<p>
|
36
|
+
<a href={resultsUrl} target="_blank" rel="noopener noreferrer">
|
37
|
+
Read more about it in RH cloud insights <Icon name="external-link" />
|
38
|
+
</a>
|
39
|
+
</p>
|
40
|
+
);
|
41
|
+
|
42
|
+
return (
|
43
|
+
<ListView.Item
|
44
|
+
heading={heading}
|
45
|
+
additionalInfo={additionalInfo}
|
46
|
+
hideCloseIcon
|
47
|
+
>
|
48
|
+
<Fragment>
|
49
|
+
<p>{title}</p>
|
50
|
+
{knowledgebaseLink}
|
51
|
+
{insightsCloudLink}
|
52
|
+
</Fragment>
|
53
|
+
</ListView.Item>
|
54
|
+
);
|
55
|
+
};
|
56
|
+
|
57
|
+
ListItem.propTypes = {
|
58
|
+
title: PropTypes.string.isRequired,
|
59
|
+
totalRisk: PropTypes.number.isRequired,
|
60
|
+
resultsUrl: PropTypes.string,
|
61
|
+
solutionUrl: PropTypes.string,
|
62
|
+
};
|
63
|
+
|
64
|
+
ListItem.defaultProps = {
|
65
|
+
resultsUrl: '',
|
66
|
+
solutionUrl: '',
|
67
|
+
};
|
68
|
+
|
69
|
+
export default ListItem;
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default } from './ListItem';
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { bindActionCreators } from 'redux';
|
2
|
+
import { connect } from 'react-redux';
|
3
|
+
import InsightsTab from './InsightsTab';
|
4
|
+
import * as actions from './InsightsTabActions';
|
5
|
+
import reducer from './InsightsTabReducer';
|
6
|
+
import { selectHits } from './InsightsTabSelectors';
|
7
|
+
|
8
|
+
// map state to props
|
9
|
+
const mapStateToProps = state => ({
|
10
|
+
hits: selectHits(state),
|
11
|
+
});
|
12
|
+
|
13
|
+
// map action dispatchers to props
|
14
|
+
const mapDispatchToProps = dispatch => bindActionCreators(actions, dispatch);
|
15
|
+
|
16
|
+
// export reducers
|
17
|
+
export const hostInsightsReducers = { hostInsights: reducer };
|
18
|
+
|
19
|
+
// export connected component
|
20
|
+
export default connect(mapStateToProps, mapDispatchToProps)(InsightsTab);
|
@@ -1,16 +1,21 @@
|
|
1
1
|
import { testSelectorsSnapshotWithFixtures } from 'react-redux-test-utils';
|
2
|
-
import {
|
2
|
+
import { rhCloudStateWrapper } from '../ForemanRhCloudTestHelpers';
|
3
3
|
import {
|
4
4
|
selectForemanRhCloud,
|
5
5
|
selectForemanInventoryUpload,
|
6
|
+
selectInsightsCloudSync,
|
6
7
|
} from '../ForemanRhCloudSelectors';
|
7
8
|
|
8
|
-
const state =
|
9
|
+
const state = rhCloudStateWrapper(
|
10
|
+
{ inventoryChild: {} },
|
11
|
+
{ insightsChild: {} }
|
12
|
+
);
|
9
13
|
|
10
14
|
const fixtures = {
|
11
15
|
'should return ForemanRhCloud': () => selectForemanRhCloud(state),
|
12
16
|
'should return ForemanInventoryUpload': () =>
|
13
17
|
selectForemanInventoryUpload(state),
|
18
|
+
'should return InsightsCloudSync': () => selectInsightsCloudSync(state),
|
14
19
|
};
|
15
20
|
|
16
21
|
describe('ForemanRhCloud selectors', () =>
|
@@ -1,9 +1,19 @@
|
|
1
1
|
import { testSelectorsSnapshotWithFixtures } from 'react-redux-test-utils';
|
2
|
-
import {
|
2
|
+
import {
|
3
|
+
rhCloudStateWrapper,
|
4
|
+
inventoryStateWrapper,
|
5
|
+
insightsStateWrapper,
|
6
|
+
} from '../ForemanRhCloudTestHelpers';
|
3
7
|
|
4
8
|
const fixtures = {
|
9
|
+
'should return rhCloud wrapper': () =>
|
10
|
+
rhCloudStateWrapper({ inventoryChild: {} }, { insightsChild: {} }),
|
11
|
+
|
5
12
|
'should return inventory wrapper': () =>
|
6
|
-
inventoryStateWrapper({
|
13
|
+
inventoryStateWrapper({ inventoryChild: {} }),
|
14
|
+
|
15
|
+
'should return insights wrapper': () =>
|
16
|
+
insightsStateWrapper({ insightsChild: {} }),
|
7
17
|
};
|
8
18
|
|
9
19
|
describe('ForemanRhCloud helpers', () =>
|
@@ -2,14 +2,24 @@
|
|
2
2
|
|
3
3
|
exports[`ForemanRhCloud selectors should return ForemanInventoryUpload 1`] = `
|
4
4
|
Object {
|
5
|
-
"
|
5
|
+
"inventoryChild": Object {},
|
6
6
|
}
|
7
7
|
`;
|
8
8
|
|
9
9
|
exports[`ForemanRhCloud selectors should return ForemanRhCloud 1`] = `
|
10
10
|
Object {
|
11
|
+
"InsightsCloudSync": Object {
|
12
|
+
"insightsChild": Object {},
|
13
|
+
},
|
14
|
+
"hostInsights": Object {},
|
11
15
|
"inventoryUpload": Object {
|
12
|
-
"
|
16
|
+
"inventoryChild": Object {},
|
13
17
|
},
|
14
18
|
}
|
15
19
|
`;
|
20
|
+
|
21
|
+
exports[`ForemanRhCloud selectors should return InsightsCloudSync 1`] = `
|
22
|
+
Object {
|
23
|
+
"insightsChild": Object {},
|
24
|
+
}
|
25
|
+
`;
|
@@ -1,10 +1,38 @@
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
2
2
|
|
3
|
+
exports[`ForemanRhCloud helpers should return insights wrapper 1`] = `
|
4
|
+
Object {
|
5
|
+
"ForemanRhCloud": Object {
|
6
|
+
"InsightsCloudSync": Object {
|
7
|
+
"insightsChild": Object {},
|
8
|
+
},
|
9
|
+
"hostInsights": Object {},
|
10
|
+
"inventoryUpload": Object {},
|
11
|
+
},
|
12
|
+
}
|
13
|
+
`;
|
14
|
+
|
3
15
|
exports[`ForemanRhCloud helpers should return inventory wrapper 1`] = `
|
4
16
|
Object {
|
5
17
|
"ForemanRhCloud": Object {
|
18
|
+
"InsightsCloudSync": Object {},
|
19
|
+
"hostInsights": Object {},
|
20
|
+
"inventoryUpload": Object {
|
21
|
+
"inventoryChild": Object {},
|
22
|
+
},
|
23
|
+
},
|
24
|
+
}
|
25
|
+
`;
|
26
|
+
|
27
|
+
exports[`ForemanRhCloud helpers should return rhCloud wrapper 1`] = `
|
28
|
+
Object {
|
29
|
+
"ForemanRhCloud": Object {
|
30
|
+
"InsightsCloudSync": Object {
|
31
|
+
"insightsChild": Object {},
|
32
|
+
},
|
33
|
+
"hostInsights": Object {},
|
6
34
|
"inventoryUpload": Object {
|
7
|
-
"
|
35
|
+
"inventoryChild": Object {},
|
8
36
|
},
|
9
37
|
},
|
10
38
|
}
|
data/webpack/index.js
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
import componentRegistry from 'foremanReact/components/componentRegistry';
|
5
5
|
import { registerReducer } from 'foremanReact/common/MountingService';
|
6
6
|
import reducers from './ForemanRhCloudReducers';
|
7
|
-
import
|
7
|
+
import pages from './ForemanRhCloudPages';
|
8
8
|
|
9
9
|
// register reducers
|
10
10
|
Object.entries(reducers).forEach(([key, reducer]) =>
|
@@ -12,7 +12,4 @@ Object.entries(reducers).forEach(([key, reducer]) =>
|
|
12
12
|
);
|
13
13
|
|
14
14
|
// register components
|
15
|
-
componentRegistry.register(
|
16
|
-
name: 'ForemanInventoryUpload',
|
17
|
-
type: ForemanInventoryUpload,
|
18
|
-
});
|
15
|
+
pages.forEach(page => componentRegistry.register(page));
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { subscriptionCountListener } from './ForemanInventoryUpload/SubscriptionsPageExtension/SubscriptionsPageExtensionActions';
|
2
|
+
|
3
|
+
if (window.location.pathname === '/subscriptions') {
|
4
|
+
window.tfm.store.observeStore(
|
5
|
+
'katello.subscriptions.itemCount',
|
6
|
+
subscriptionCountListener
|
7
|
+
);
|
8
|
+
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman_rh_cloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Foreman Red Hat Cloud team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-09-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: katello
|
@@ -106,13 +106,28 @@ files:
|
|
106
106
|
- Rakefile
|
107
107
|
- app/controllers/foreman_inventory_upload/accounts_controller.rb
|
108
108
|
- app/controllers/foreman_inventory_upload/reports_controller.rb
|
109
|
+
- app/controllers/foreman_inventory_upload/tasks_controller.rb
|
109
110
|
- app/controllers/foreman_inventory_upload/uploads_controller.rb
|
110
111
|
- app/controllers/foreman_rh_cloud/react_controller.rb
|
112
|
+
- app/controllers/insights_cloud/hits_controller.rb
|
113
|
+
- app/controllers/insights_cloud/settings_controller.rb
|
114
|
+
- app/controllers/insights_cloud/tasks_controller.rb
|
111
115
|
- app/helpers/foreman_inventory_upload_helper.rb
|
116
|
+
- app/helpers/foreman_inventory_upload_host_helper.rb
|
117
|
+
- app/models/concerns/rh_cloud_host.rb
|
118
|
+
- app/models/insights_facet.rb
|
119
|
+
- app/models/insights_hit.rb
|
120
|
+
- app/models/inventory_sync/inventory_status.rb
|
112
121
|
- app/models/setting/rh_cloud.rb
|
122
|
+
- app/overrides/hosts_list.rb
|
123
|
+
- app/views/foreman_rh_cloud/react/insights_cloud.html.erb
|
113
124
|
- app/views/foreman_rh_cloud/react/inventory_upload.html.erb
|
125
|
+
- app/views/hosts/_insights_tab.html.erb
|
114
126
|
- app/views/layouts/foreman_rh_cloud/application.html.erb
|
115
127
|
- config/routes.rb
|
128
|
+
- db/migrate/20191215104806_create_insights_hits.foreman_inventory_upload.rb
|
129
|
+
- db/migrate/20191216062008_create_insights_facets.foreman_inventory_upload.rb
|
130
|
+
- db/migrate/20200727111529_add_uuid_column_to_insights_facets.foreman_rh_cloud.rb
|
116
131
|
- lib/foreman_inventory_upload.rb
|
117
132
|
- lib/foreman_inventory_upload/async/async_helpers.rb
|
118
133
|
- lib/foreman_inventory_upload/async/generate_all_reports_job.rb
|
@@ -127,25 +142,39 @@ files:
|
|
127
142
|
- lib/foreman_inventory_upload/generators/metadata.rb
|
128
143
|
- lib/foreman_inventory_upload/generators/queries.rb
|
129
144
|
- lib/foreman_inventory_upload/generators/slice.rb
|
145
|
+
- lib/foreman_inventory_upload/notifications/manifest_import_success_notification_override.rb
|
130
146
|
- lib/foreman_inventory_upload/scripts/uploader.sh.erb
|
131
147
|
- lib/foreman_rh_cloud.rb
|
132
148
|
- lib/foreman_rh_cloud/engine.rb
|
133
149
|
- lib/foreman_rh_cloud/version.rb
|
150
|
+
- lib/insights_cloud.rb
|
151
|
+
- lib/insights_cloud/async/insights_full_sync.rb
|
152
|
+
- lib/insights_cloud/async/insights_scheduled_sync.rb
|
153
|
+
- lib/inventory_sync/async/host_result.rb
|
154
|
+
- lib/inventory_sync/async/inventory_full_sync.rb
|
134
155
|
- lib/tasks/foreman_rh_cloud_tasks.rake
|
135
|
-
- lib/tasks/
|
156
|
+
- lib/tasks/insights.rake
|
157
|
+
- lib/tasks/rh_cloud_inventory.rake
|
136
158
|
- locale/Makefile
|
137
159
|
- locale/en/foreman_rh_cloud.po
|
138
160
|
- locale/foreman_rh_cloud.pot
|
139
161
|
- locale/gemspec.rb
|
140
162
|
- package.json
|
141
163
|
- test/controllers/accounts_controller_test.rb
|
164
|
+
- test/controllers/insights_sync/settings_controller_test.rb
|
142
165
|
- test/controllers/reports_controller_test.rb
|
143
166
|
- test/controllers/uploads_controller_test.rb
|
167
|
+
- test/factories/insights_factories.rb
|
144
168
|
- test/factories/inventory_upload_factories.rb
|
169
|
+
- test/jobs/insights_full_sync_test.rb
|
170
|
+
- test/jobs/inventory_full_sync_test.rb
|
171
|
+
- test/jobs/upload_report_job_test.rb
|
145
172
|
- test/test_plugin_helper.rb
|
146
173
|
- test/unit/archived_report_generator_test.rb
|
147
174
|
- test/unit/fact_helpers_test.rb
|
175
|
+
- test/unit/insights_facet_test.rb
|
148
176
|
- test/unit/metadata_generator_test.rb
|
177
|
+
- test/unit/rh_cloud_http_proxy_test.rb
|
149
178
|
- test/unit/shell_process_job_test.rb
|
150
179
|
- test/unit/slice_generator_test.rb
|
151
180
|
- webpack/ForemanInventoryUpload/Components/AccountList/AccountList.fixtures.js
|
@@ -244,6 +273,16 @@ files:
|
|
244
273
|
- webpack/ForemanInventoryUpload/Components/FullScreenModal/__tests__/__snapshots__/FullScreenModal.test.js.snap
|
245
274
|
- webpack/ForemanInventoryUpload/Components/FullScreenModal/fullScreenModal.scss
|
246
275
|
- webpack/ForemanInventoryUpload/Components/FullScreenModal/index.js
|
276
|
+
- webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.fixtures.js
|
277
|
+
- webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.js
|
278
|
+
- webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcherActions.js
|
279
|
+
- webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcherConstants.js
|
280
|
+
- webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/__tests__/HostObfuscationSwitcher.test.js
|
281
|
+
- webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/__tests__/HostObfuscationSwitcherActions.test.js
|
282
|
+
- webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/__tests__/__snapshots__/HostObfuscationSwitcher.test.js.snap
|
283
|
+
- webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/__tests__/__snapshots__/HostObfuscationSwitcherActions.test.js.snap
|
284
|
+
- webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/hostObfuscationSwitcher.scss
|
285
|
+
- webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/index.js
|
247
286
|
- webpack/ForemanInventoryUpload/Components/InventoryFilter/Components/ClearButton/ClearButton.js
|
248
287
|
- webpack/ForemanInventoryUpload/Components/InventoryFilter/Components/ClearButton/index.js
|
249
288
|
- webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilter.fixtures.js
|
@@ -264,6 +303,11 @@ files:
|
|
264
303
|
- webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/integration.test.js
|
265
304
|
- webpack/ForemanInventoryUpload/Components/InventoryFilter/index.js
|
266
305
|
- webpack/ForemanInventoryUpload/Components/InventoryFilter/inventoryFilter.scss
|
306
|
+
- webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettings.js
|
307
|
+
- webpack/ForemanInventoryUpload/Components/InventorySettings/__tests__/InventorySettings.test.js
|
308
|
+
- webpack/ForemanInventoryUpload/Components/InventorySettings/__tests__/__snapshots__/InventorySettings.test.js.snap
|
309
|
+
- webpack/ForemanInventoryUpload/Components/InventorySettings/index.js
|
310
|
+
- webpack/ForemanInventoryUpload/Components/InventorySettings/inventorySettings.scss
|
267
311
|
- webpack/ForemanInventoryUpload/Components/NavContainer/NavContainer.fixtures.js
|
268
312
|
- webpack/ForemanInventoryUpload/Components/NavContainer/NavContainer.js
|
269
313
|
- webpack/ForemanInventoryUpload/Components/NavContainer/NavContainerHelper.js
|
@@ -274,6 +318,41 @@ files:
|
|
274
318
|
- webpack/ForemanInventoryUpload/Components/PageHeader/PageHeader.js
|
275
319
|
- webpack/ForemanInventoryUpload/Components/PageHeader/__tests__/PageHeader.test.js
|
276
320
|
- webpack/ForemanInventoryUpload/Components/PageHeader/__tests__/__snapshots__/PageHeader.test.js.snap
|
321
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/DocsButton/DocsButton.js
|
322
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/DocsButton/__tests__/DocsButton.test.js
|
323
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/DocsButton/__tests__/__snapshots__/DocsButton.test.js.snap
|
324
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/DocsButton/index.js
|
325
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/HistoryButton/HistoryButton.js
|
326
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/HistoryButton/__tests__/HistoryButton.test.js
|
327
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/HistoryButton/__tests__/__snapshots__/HistoryButton.test.js.snap
|
328
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/HistoryButton/index.js
|
329
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/PageDescription.js
|
330
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/__tests__/PageDescription.test.js
|
331
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/__tests__/__snapshots__/PageDescription.test.js.snap
|
332
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/index.js
|
333
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButton.js
|
334
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButtonActions.js
|
335
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButtonConstants.js
|
336
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButtonReducer.js
|
337
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButtonSelectors.js
|
338
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButton.test.js
|
339
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonActions.test.js
|
340
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonFixtures.js
|
341
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonReducer.test.js
|
342
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonSelectors.test.js
|
343
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButton.test.js.snap
|
344
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButtonActions.test.js.snap
|
345
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButtonReducer.test.js.snap
|
346
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButtonSelectors.test.js.snap
|
347
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/components/Modal.js
|
348
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/components/Toast.js
|
349
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/components/modal.scss
|
350
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/index.js
|
351
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/ToolbarButtons.js
|
352
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/__tests__/ToolbarButtons.test.js
|
353
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/__tests__/__snapshots__/ToolbarButtons.test.js.snap
|
354
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/index.js
|
355
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/toolbarButtons.scss
|
277
356
|
- webpack/ForemanInventoryUpload/Components/PageHeader/index.js
|
278
357
|
- webpack/ForemanInventoryUpload/Components/PageHeader/pageHeader.scss
|
279
358
|
- webpack/ForemanInventoryUpload/Components/ReportGenerate/ReportGenerate.fixtures.js
|
@@ -343,19 +422,73 @@ files:
|
|
343
422
|
- webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
|
344
423
|
- webpack/ForemanInventoryUpload/ForemanInventoryUpload.js
|
345
424
|
- webpack/ForemanInventoryUpload/ForemanInventoryUploadReducers.js
|
425
|
+
- webpack/ForemanInventoryUpload/SubscriptionsPageExtension/SubscriptionsPageExtensionActions.js
|
346
426
|
- webpack/ForemanInventoryUpload/__tests__/ForemanInventoryHelpers.test.js
|
347
427
|
- webpack/ForemanInventoryUpload/__tests__/ForemanInventoryUpload.test.js
|
348
428
|
- webpack/ForemanInventoryUpload/__tests__/__snapshots__/ForemanInventoryHelpers.test.js.snap
|
349
429
|
- webpack/ForemanInventoryUpload/__tests__/__snapshots__/ForemanInventoryUpload.test.js.snap
|
350
430
|
- webpack/ForemanInventoryUpload/index.js
|
351
431
|
- webpack/ForemanRhCloudHelpers.js
|
432
|
+
- webpack/ForemanRhCloudPages.js
|
352
433
|
- webpack/ForemanRhCloudReducers.js
|
353
434
|
- webpack/ForemanRhCloudSelectors.js
|
354
435
|
- webpack/ForemanRhCloudTestHelpers.js
|
436
|
+
- webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettings.js
|
437
|
+
- webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettingsActions.js
|
438
|
+
- webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettingsConstants.js
|
439
|
+
- webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettingsReducer.js
|
440
|
+
- webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettingsSelectors.js
|
441
|
+
- webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettings.test.js
|
442
|
+
- webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsActions.test.js
|
443
|
+
- webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsReducer.test.js
|
444
|
+
- webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsSelectors.test.js
|
445
|
+
- webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/__snapshots__/InsightsSettings.test.js.snap
|
446
|
+
- webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/__snapshots__/InsightsSettingsActions.test.js.snap
|
447
|
+
- webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/__snapshots__/InsightsSettingsReducer.test.js.snap
|
448
|
+
- webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/__snapshots__/InsightsSettingsSelectors.test.js.snap
|
449
|
+
- webpack/InsightsCloudSync/Components/InsightsSettings/index.js
|
450
|
+
- webpack/InsightsCloudSync/Components/InsightsSettings/insightsSettings.scss
|
451
|
+
- webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/InsightsSyncSwitcher.fixtures.js
|
452
|
+
- webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/InsightsSyncSwitcher.js
|
453
|
+
- webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/__tests__/InsightsSyncSwitcher.test.js
|
454
|
+
- webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/__tests__/__snapshots__/InsightsSyncSwitcher.test.js.snap
|
455
|
+
- webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/index.js
|
456
|
+
- webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/insightsSyncSwitcher.scss
|
457
|
+
- webpack/InsightsCloudSync/InsightsCloudSync.js
|
458
|
+
- webpack/InsightsCloudSync/InsightsCloudSync.test.js
|
459
|
+
- webpack/InsightsCloudSync/InsightsCloudSyncActions.js
|
460
|
+
- webpack/InsightsCloudSync/InsightsCloudSyncConstants.js
|
461
|
+
- webpack/InsightsCloudSync/InsightsCloudSyncHelpers.js
|
462
|
+
- webpack/InsightsCloudSync/InsightsCloudSyncReducers.js
|
463
|
+
- webpack/InsightsCloudSync/__snapshots__/InsightsCloudSync.test.js.snap
|
464
|
+
- webpack/InsightsCloudSync/__tests__/InsightsCloudSyncHelpers.test.js
|
465
|
+
- webpack/InsightsCloudSync/__tests__/__snapshots__/InsightsCloudSyncHelpers.test.js.snap
|
466
|
+
- webpack/InsightsCloudSync/index.js
|
467
|
+
- webpack/InsightsHostDetailsTab/InsightsTab.js
|
468
|
+
- webpack/InsightsHostDetailsTab/InsightsTab.scss
|
469
|
+
- webpack/InsightsHostDetailsTab/InsightsTabActions.js
|
470
|
+
- webpack/InsightsHostDetailsTab/InsightsTabConstants.js
|
471
|
+
- webpack/InsightsHostDetailsTab/InsightsTabReducer.js
|
472
|
+
- webpack/InsightsHostDetailsTab/InsightsTabSelectors.js
|
473
|
+
- webpack/InsightsHostDetailsTab/__tests__/InsightsTab.fixtures.js
|
474
|
+
- webpack/InsightsHostDetailsTab/__tests__/InsightsTab.test.js
|
475
|
+
- webpack/InsightsHostDetailsTab/__tests__/InsightsTabActions.test.js
|
476
|
+
- webpack/InsightsHostDetailsTab/__tests__/InsightsTabIntegration.test.js
|
477
|
+
- webpack/InsightsHostDetailsTab/__tests__/InsightsTabReducer.test.js
|
478
|
+
- webpack/InsightsHostDetailsTab/__tests__/InsightsTabSelectors.test.js
|
479
|
+
- webpack/InsightsHostDetailsTab/__tests__/__snapshots__/InsightsTab.test.js.snap
|
480
|
+
- webpack/InsightsHostDetailsTab/__tests__/__snapshots__/InsightsTabActions.test.js.snap
|
481
|
+
- webpack/InsightsHostDetailsTab/__tests__/__snapshots__/InsightsTabReducer.test.js.snap
|
482
|
+
- webpack/InsightsHostDetailsTab/__tests__/__snapshots__/InsightsTabSelectors.test.js.snap
|
483
|
+
- webpack/InsightsHostDetailsTab/components/ListItem/ListItem.js
|
484
|
+
- webpack/InsightsHostDetailsTab/components/ListItem/index.js
|
485
|
+
- webpack/InsightsHostDetailsTab/index.js
|
355
486
|
- webpack/__mocks__/foremanReact/API.js
|
356
487
|
- webpack/__mocks__/foremanReact/common/I18n.js
|
357
488
|
- webpack/__mocks__/foremanReact/common/helpers.js
|
358
489
|
- webpack/__mocks__/foremanReact/components/Layout/LayoutConstants.js
|
490
|
+
- webpack/__mocks__/foremanReact/constants.js
|
491
|
+
- webpack/__mocks__/foremanReact/redux/actions/toasts.js
|
359
492
|
- webpack/__tests__/ForemanRhCloudHelpers.test.js
|
360
493
|
- webpack/__tests__/ForemanRhCloudSelectors.test.js
|
361
494
|
- webpack/__tests__/ForemanRhCloudTestHelpers.test.js
|
@@ -369,6 +502,7 @@ files:
|
|
369
502
|
- webpack/stories/decorators/withCardsDecorator.js
|
370
503
|
- webpack/stories/index.js
|
371
504
|
- webpack/stories/index.scss
|
505
|
+
- webpack/subscriptions_extension_index.js
|
372
506
|
- webpack/test_setup.js
|
373
507
|
homepage: https://github.com/theforeman/foreman_rh_cloud
|
374
508
|
licenses:
|
@@ -395,12 +529,19 @@ specification_version: 4
|
|
395
529
|
summary: Summary of ForemanRhCloud.
|
396
530
|
test_files:
|
397
531
|
- test/controllers/uploads_controller_test.rb
|
532
|
+
- test/controllers/insights_sync/settings_controller_test.rb
|
398
533
|
- test/controllers/accounts_controller_test.rb
|
399
534
|
- test/controllers/reports_controller_test.rb
|
400
535
|
- test/test_plugin_helper.rb
|
536
|
+
- test/jobs/upload_report_job_test.rb
|
537
|
+
- test/jobs/insights_full_sync_test.rb
|
538
|
+
- test/jobs/inventory_full_sync_test.rb
|
401
539
|
- test/factories/inventory_upload_factories.rb
|
540
|
+
- test/factories/insights_factories.rb
|
402
541
|
- test/unit/shell_process_job_test.rb
|
403
542
|
- test/unit/metadata_generator_test.rb
|
543
|
+
- test/unit/insights_facet_test.rb
|
544
|
+
- test/unit/rh_cloud_http_proxy_test.rb
|
404
545
|
- test/unit/fact_helpers_test.rb
|
405
546
|
- test/unit/archived_report_generator_test.rb
|
406
547
|
- test/unit/slice_generator_test.rb
|