foreman_rh_cloud 0.9.7 → 0.9.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 +66 -0
- data/lib/foreman_rh_cloud/engine.rb +34 -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 +52 -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 +65 -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: 0.9.
|
4
|
+
version: 0.9.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
|
@@ -78,13 +78,28 @@ files:
|
|
78
78
|
- Rakefile
|
79
79
|
- app/controllers/foreman_inventory_upload/accounts_controller.rb
|
80
80
|
- app/controllers/foreman_inventory_upload/reports_controller.rb
|
81
|
+
- app/controllers/foreman_inventory_upload/tasks_controller.rb
|
81
82
|
- app/controllers/foreman_inventory_upload/uploads_controller.rb
|
82
83
|
- app/controllers/foreman_rh_cloud/react_controller.rb
|
84
|
+
- app/controllers/insights_cloud/hits_controller.rb
|
85
|
+
- app/controllers/insights_cloud/settings_controller.rb
|
86
|
+
- app/controllers/insights_cloud/tasks_controller.rb
|
83
87
|
- app/helpers/foreman_inventory_upload_helper.rb
|
88
|
+
- app/helpers/foreman_inventory_upload_host_helper.rb
|
89
|
+
- app/models/concerns/rh_cloud_host.rb
|
90
|
+
- app/models/insights_facet.rb
|
91
|
+
- app/models/insights_hit.rb
|
92
|
+
- app/models/inventory_sync/inventory_status.rb
|
84
93
|
- app/models/setting/rh_cloud.rb
|
94
|
+
- app/overrides/hosts_list.rb
|
95
|
+
- app/views/foreman_rh_cloud/react/insights_cloud.html.erb
|
85
96
|
- app/views/foreman_rh_cloud/react/inventory_upload.html.erb
|
97
|
+
- app/views/hosts/_insights_tab.html.erb
|
86
98
|
- app/views/layouts/foreman_rh_cloud/application.html.erb
|
87
99
|
- config/routes.rb
|
100
|
+
- db/migrate/20191215104806_create_insights_hits.foreman_inventory_upload.rb
|
101
|
+
- db/migrate/20191216062008_create_insights_facets.foreman_inventory_upload.rb
|
102
|
+
- db/migrate/20200727111529_add_uuid_column_to_insights_facets.foreman_rh_cloud.rb
|
88
103
|
- lib/foreman_inventory_upload.rb
|
89
104
|
- lib/foreman_inventory_upload/async/async_helpers.rb
|
90
105
|
- lib/foreman_inventory_upload/async/generate_all_reports_job.rb
|
@@ -99,25 +114,39 @@ files:
|
|
99
114
|
- lib/foreman_inventory_upload/generators/metadata.rb
|
100
115
|
- lib/foreman_inventory_upload/generators/queries.rb
|
101
116
|
- lib/foreman_inventory_upload/generators/slice.rb
|
117
|
+
- lib/foreman_inventory_upload/notifications/manifest_import_success_notification_override.rb
|
102
118
|
- lib/foreman_inventory_upload/scripts/uploader.sh.erb
|
103
119
|
- lib/foreman_rh_cloud.rb
|
104
120
|
- lib/foreman_rh_cloud/engine.rb
|
105
121
|
- lib/foreman_rh_cloud/version.rb
|
122
|
+
- lib/insights_cloud.rb
|
123
|
+
- lib/insights_cloud/async/insights_full_sync.rb
|
124
|
+
- lib/insights_cloud/async/insights_scheduled_sync.rb
|
125
|
+
- lib/inventory_sync/async/host_result.rb
|
126
|
+
- lib/inventory_sync/async/inventory_full_sync.rb
|
106
127
|
- lib/tasks/foreman_rh_cloud_tasks.rake
|
107
|
-
- lib/tasks/
|
128
|
+
- lib/tasks/insights.rake
|
129
|
+
- lib/tasks/rh_cloud_inventory.rake
|
108
130
|
- locale/Makefile
|
109
131
|
- locale/en/foreman_rh_cloud.po
|
110
132
|
- locale/foreman_rh_cloud.pot
|
111
133
|
- locale/gemspec.rb
|
112
134
|
- package.json
|
113
135
|
- test/controllers/accounts_controller_test.rb
|
136
|
+
- test/controllers/insights_sync/settings_controller_test.rb
|
114
137
|
- test/controllers/reports_controller_test.rb
|
115
138
|
- test/controllers/uploads_controller_test.rb
|
139
|
+
- test/factories/insights_factories.rb
|
116
140
|
- test/factories/inventory_upload_factories.rb
|
141
|
+
- test/jobs/insights_full_sync_test.rb
|
142
|
+
- test/jobs/inventory_full_sync_test.rb
|
143
|
+
- test/jobs/upload_report_job_test.rb
|
117
144
|
- test/test_plugin_helper.rb
|
118
145
|
- test/unit/archived_report_generator_test.rb
|
119
146
|
- test/unit/fact_helpers_test.rb
|
147
|
+
- test/unit/insights_facet_test.rb
|
120
148
|
- test/unit/metadata_generator_test.rb
|
149
|
+
- test/unit/rh_cloud_http_proxy_test.rb
|
121
150
|
- test/unit/shell_process_job_test.rb
|
122
151
|
- test/unit/slice_generator_test.rb
|
123
152
|
- webpack/ForemanInventoryUpload/Components/AccountList/AccountList.fixtures.js
|
@@ -216,6 +245,16 @@ files:
|
|
216
245
|
- webpack/ForemanInventoryUpload/Components/FullScreenModal/__tests__/__snapshots__/FullScreenModal.test.js.snap
|
217
246
|
- webpack/ForemanInventoryUpload/Components/FullScreenModal/fullScreenModal.scss
|
218
247
|
- webpack/ForemanInventoryUpload/Components/FullScreenModal/index.js
|
248
|
+
- webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.fixtures.js
|
249
|
+
- webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.js
|
250
|
+
- webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcherActions.js
|
251
|
+
- webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcherConstants.js
|
252
|
+
- webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/__tests__/HostObfuscationSwitcher.test.js
|
253
|
+
- webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/__tests__/HostObfuscationSwitcherActions.test.js
|
254
|
+
- webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/__tests__/__snapshots__/HostObfuscationSwitcher.test.js.snap
|
255
|
+
- webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/__tests__/__snapshots__/HostObfuscationSwitcherActions.test.js.snap
|
256
|
+
- webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/hostObfuscationSwitcher.scss
|
257
|
+
- webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/index.js
|
219
258
|
- webpack/ForemanInventoryUpload/Components/InventoryFilter/Components/ClearButton/ClearButton.js
|
220
259
|
- webpack/ForemanInventoryUpload/Components/InventoryFilter/Components/ClearButton/index.js
|
221
260
|
- webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilter.fixtures.js
|
@@ -236,6 +275,11 @@ files:
|
|
236
275
|
- webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/integration.test.js
|
237
276
|
- webpack/ForemanInventoryUpload/Components/InventoryFilter/index.js
|
238
277
|
- webpack/ForemanInventoryUpload/Components/InventoryFilter/inventoryFilter.scss
|
278
|
+
- webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettings.js
|
279
|
+
- webpack/ForemanInventoryUpload/Components/InventorySettings/__tests__/InventorySettings.test.js
|
280
|
+
- webpack/ForemanInventoryUpload/Components/InventorySettings/__tests__/__snapshots__/InventorySettings.test.js.snap
|
281
|
+
- webpack/ForemanInventoryUpload/Components/InventorySettings/index.js
|
282
|
+
- webpack/ForemanInventoryUpload/Components/InventorySettings/inventorySettings.scss
|
239
283
|
- webpack/ForemanInventoryUpload/Components/NavContainer/NavContainer.fixtures.js
|
240
284
|
- webpack/ForemanInventoryUpload/Components/NavContainer/NavContainer.js
|
241
285
|
- webpack/ForemanInventoryUpload/Components/NavContainer/NavContainerHelper.js
|
@@ -246,6 +290,41 @@ files:
|
|
246
290
|
- webpack/ForemanInventoryUpload/Components/PageHeader/PageHeader.js
|
247
291
|
- webpack/ForemanInventoryUpload/Components/PageHeader/__tests__/PageHeader.test.js
|
248
292
|
- webpack/ForemanInventoryUpload/Components/PageHeader/__tests__/__snapshots__/PageHeader.test.js.snap
|
293
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/DocsButton/DocsButton.js
|
294
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/DocsButton/__tests__/DocsButton.test.js
|
295
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/DocsButton/__tests__/__snapshots__/DocsButton.test.js.snap
|
296
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/DocsButton/index.js
|
297
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/HistoryButton/HistoryButton.js
|
298
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/HistoryButton/__tests__/HistoryButton.test.js
|
299
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/HistoryButton/__tests__/__snapshots__/HistoryButton.test.js.snap
|
300
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/HistoryButton/index.js
|
301
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/PageDescription.js
|
302
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/__tests__/PageDescription.test.js
|
303
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/__tests__/__snapshots__/PageDescription.test.js.snap
|
304
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/index.js
|
305
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButton.js
|
306
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButtonActions.js
|
307
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButtonConstants.js
|
308
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButtonReducer.js
|
309
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButtonSelectors.js
|
310
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButton.test.js
|
311
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonActions.test.js
|
312
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonFixtures.js
|
313
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonReducer.test.js
|
314
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonSelectors.test.js
|
315
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButton.test.js.snap
|
316
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButtonActions.test.js.snap
|
317
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButtonReducer.test.js.snap
|
318
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButtonSelectors.test.js.snap
|
319
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/components/Modal.js
|
320
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/components/Toast.js
|
321
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/components/modal.scss
|
322
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/index.js
|
323
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/ToolbarButtons.js
|
324
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/__tests__/ToolbarButtons.test.js
|
325
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/__tests__/__snapshots__/ToolbarButtons.test.js.snap
|
326
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/index.js
|
327
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/toolbarButtons.scss
|
249
328
|
- webpack/ForemanInventoryUpload/Components/PageHeader/index.js
|
250
329
|
- webpack/ForemanInventoryUpload/Components/PageHeader/pageHeader.scss
|
251
330
|
- webpack/ForemanInventoryUpload/Components/ReportGenerate/ReportGenerate.fixtures.js
|
@@ -315,19 +394,73 @@ files:
|
|
315
394
|
- webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
|
316
395
|
- webpack/ForemanInventoryUpload/ForemanInventoryUpload.js
|
317
396
|
- webpack/ForemanInventoryUpload/ForemanInventoryUploadReducers.js
|
397
|
+
- webpack/ForemanInventoryUpload/SubscriptionsPageExtension/SubscriptionsPageExtensionActions.js
|
318
398
|
- webpack/ForemanInventoryUpload/__tests__/ForemanInventoryHelpers.test.js
|
319
399
|
- webpack/ForemanInventoryUpload/__tests__/ForemanInventoryUpload.test.js
|
320
400
|
- webpack/ForemanInventoryUpload/__tests__/__snapshots__/ForemanInventoryHelpers.test.js.snap
|
321
401
|
- webpack/ForemanInventoryUpload/__tests__/__snapshots__/ForemanInventoryUpload.test.js.snap
|
322
402
|
- webpack/ForemanInventoryUpload/index.js
|
323
403
|
- webpack/ForemanRhCloudHelpers.js
|
404
|
+
- webpack/ForemanRhCloudPages.js
|
324
405
|
- webpack/ForemanRhCloudReducers.js
|
325
406
|
- webpack/ForemanRhCloudSelectors.js
|
326
407
|
- webpack/ForemanRhCloudTestHelpers.js
|
408
|
+
- webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettings.js
|
409
|
+
- webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettingsActions.js
|
410
|
+
- webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettingsConstants.js
|
411
|
+
- webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettingsReducer.js
|
412
|
+
- webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettingsSelectors.js
|
413
|
+
- webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettings.test.js
|
414
|
+
- webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsActions.test.js
|
415
|
+
- webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsReducer.test.js
|
416
|
+
- webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsSelectors.test.js
|
417
|
+
- webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/__snapshots__/InsightsSettings.test.js.snap
|
418
|
+
- webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/__snapshots__/InsightsSettingsActions.test.js.snap
|
419
|
+
- webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/__snapshots__/InsightsSettingsReducer.test.js.snap
|
420
|
+
- webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/__snapshots__/InsightsSettingsSelectors.test.js.snap
|
421
|
+
- webpack/InsightsCloudSync/Components/InsightsSettings/index.js
|
422
|
+
- webpack/InsightsCloudSync/Components/InsightsSettings/insightsSettings.scss
|
423
|
+
- webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/InsightsSyncSwitcher.fixtures.js
|
424
|
+
- webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/InsightsSyncSwitcher.js
|
425
|
+
- webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/__tests__/InsightsSyncSwitcher.test.js
|
426
|
+
- webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/__tests__/__snapshots__/InsightsSyncSwitcher.test.js.snap
|
427
|
+
- webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/index.js
|
428
|
+
- webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/insightsSyncSwitcher.scss
|
429
|
+
- webpack/InsightsCloudSync/InsightsCloudSync.js
|
430
|
+
- webpack/InsightsCloudSync/InsightsCloudSync.test.js
|
431
|
+
- webpack/InsightsCloudSync/InsightsCloudSyncActions.js
|
432
|
+
- webpack/InsightsCloudSync/InsightsCloudSyncConstants.js
|
433
|
+
- webpack/InsightsCloudSync/InsightsCloudSyncHelpers.js
|
434
|
+
- webpack/InsightsCloudSync/InsightsCloudSyncReducers.js
|
435
|
+
- webpack/InsightsCloudSync/__snapshots__/InsightsCloudSync.test.js.snap
|
436
|
+
- webpack/InsightsCloudSync/__tests__/InsightsCloudSyncHelpers.test.js
|
437
|
+
- webpack/InsightsCloudSync/__tests__/__snapshots__/InsightsCloudSyncHelpers.test.js.snap
|
438
|
+
- webpack/InsightsCloudSync/index.js
|
439
|
+
- webpack/InsightsHostDetailsTab/InsightsTab.js
|
440
|
+
- webpack/InsightsHostDetailsTab/InsightsTab.scss
|
441
|
+
- webpack/InsightsHostDetailsTab/InsightsTabActions.js
|
442
|
+
- webpack/InsightsHostDetailsTab/InsightsTabConstants.js
|
443
|
+
- webpack/InsightsHostDetailsTab/InsightsTabReducer.js
|
444
|
+
- webpack/InsightsHostDetailsTab/InsightsTabSelectors.js
|
445
|
+
- webpack/InsightsHostDetailsTab/__tests__/InsightsTab.fixtures.js
|
446
|
+
- webpack/InsightsHostDetailsTab/__tests__/InsightsTab.test.js
|
447
|
+
- webpack/InsightsHostDetailsTab/__tests__/InsightsTabActions.test.js
|
448
|
+
- webpack/InsightsHostDetailsTab/__tests__/InsightsTabIntegration.test.js
|
449
|
+
- webpack/InsightsHostDetailsTab/__tests__/InsightsTabReducer.test.js
|
450
|
+
- webpack/InsightsHostDetailsTab/__tests__/InsightsTabSelectors.test.js
|
451
|
+
- webpack/InsightsHostDetailsTab/__tests__/__snapshots__/InsightsTab.test.js.snap
|
452
|
+
- webpack/InsightsHostDetailsTab/__tests__/__snapshots__/InsightsTabActions.test.js.snap
|
453
|
+
- webpack/InsightsHostDetailsTab/__tests__/__snapshots__/InsightsTabReducer.test.js.snap
|
454
|
+
- webpack/InsightsHostDetailsTab/__tests__/__snapshots__/InsightsTabSelectors.test.js.snap
|
455
|
+
- webpack/InsightsHostDetailsTab/components/ListItem/ListItem.js
|
456
|
+
- webpack/InsightsHostDetailsTab/components/ListItem/index.js
|
457
|
+
- webpack/InsightsHostDetailsTab/index.js
|
327
458
|
- webpack/__mocks__/foremanReact/API.js
|
328
459
|
- webpack/__mocks__/foremanReact/common/I18n.js
|
329
460
|
- webpack/__mocks__/foremanReact/common/helpers.js
|
330
461
|
- webpack/__mocks__/foremanReact/components/Layout/LayoutConstants.js
|
462
|
+
- webpack/__mocks__/foremanReact/constants.js
|
463
|
+
- webpack/__mocks__/foremanReact/redux/actions/toasts.js
|
331
464
|
- webpack/__tests__/ForemanRhCloudHelpers.test.js
|
332
465
|
- webpack/__tests__/ForemanRhCloudSelectors.test.js
|
333
466
|
- webpack/__tests__/ForemanRhCloudTestHelpers.test.js
|
@@ -341,6 +474,7 @@ files:
|
|
341
474
|
- webpack/stories/decorators/withCardsDecorator.js
|
342
475
|
- webpack/stories/index.js
|
343
476
|
- webpack/stories/index.scss
|
477
|
+
- webpack/subscriptions_extension_index.js
|
344
478
|
- webpack/test_setup.js
|
345
479
|
homepage: https://github.com/theforeman/foreman_rh_cloud
|
346
480
|
licenses:
|
@@ -367,12 +501,19 @@ specification_version: 4
|
|
367
501
|
summary: Summary of ForemanRhCloud.
|
368
502
|
test_files:
|
369
503
|
- test/controllers/uploads_controller_test.rb
|
504
|
+
- test/controllers/insights_sync/settings_controller_test.rb
|
370
505
|
- test/controllers/accounts_controller_test.rb
|
371
506
|
- test/controllers/reports_controller_test.rb
|
372
507
|
- test/test_plugin_helper.rb
|
508
|
+
- test/jobs/upload_report_job_test.rb
|
509
|
+
- test/jobs/insights_full_sync_test.rb
|
510
|
+
- test/jobs/inventory_full_sync_test.rb
|
373
511
|
- test/factories/inventory_upload_factories.rb
|
512
|
+
- test/factories/insights_factories.rb
|
374
513
|
- test/unit/shell_process_job_test.rb
|
375
514
|
- test/unit/metadata_generator_test.rb
|
515
|
+
- test/unit/insights_facet_test.rb
|
516
|
+
- test/unit/rh_cloud_http_proxy_test.rb
|
376
517
|
- test/unit/fact_helpers_test.rb
|
377
518
|
- test/unit/archived_report_generator_test.rb
|
378
519
|
- test/unit/slice_generator_test.rb
|