foreman_rh_cloud 1.0.6 → 1.0.11
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 +4 -6
- 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 +11 -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 +4 -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 -0
- data/app/views/hosts/_insights_tab.html.erb +15 -0
- data/app/views/{foreman_inventory_upload/layouts/react.html.erb → layouts/foreman_rh_cloud/application.html.erb} +2 -2
- data/config/routes.rb +15 -1
- 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 +19 -1
- data/lib/foreman_inventory_upload/generators/fact_helpers.rb +43 -0
- 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 +7 -4
- data/lib/foreman_inventory_upload/generators/slice.rb +42 -14
- data/lib/foreman_inventory_upload/notifications/manifest_import_success_notification_override.rb +19 -0
- data/lib/foreman_rh_cloud.rb +13 -0
- data/lib/foreman_rh_cloud/engine.rb +44 -5
- 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 +103 -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 +99 -0
- data/lib/tasks/insights.rake +15 -0
- data/lib/tasks/{generator.rake → rh_cloud_inventory.rake} +7 -1
- 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/slice_generator_test.rb +199 -9
- data/webpack/ForemanInventoryUpload/Components/AccountList/AccountList.fixtures.js +14 -2
- data/webpack/ForemanInventoryUpload/Components/AccountList/AccountList.js +13 -10
- data/webpack/ForemanInventoryUpload/Components/AccountList/AccountListActions.js +6 -3
- data/webpack/ForemanInventoryUpload/Components/AccountList/AccountListHelper.js +10 -0
- data/webpack/ForemanInventoryUpload/Components/AccountList/AccountListReducer.js +11 -1
- data/webpack/ForemanInventoryUpload/Components/AccountList/AccountListSelectors.js +10 -1
- data/webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/EmptyResults.js +15 -0
- data/webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/__tests__/EmptyResults.test.js +13 -0
- data/webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/__tests__/__snapshots__/EmptyResults.test.js.snap +18 -0
- data/webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/emptyResults.scss +7 -0
- data/webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/index.js +1 -0
- data/webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItem/ListItem.js +1 -4
- data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountList.test.js +1 -0
- data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListActions.test.js +8 -1
- data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListHelper.test.js +12 -0
- data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListIntegration.test.js +1 -1
- data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListReducer.test.js +13 -0
- data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListSelectors.test.js +12 -8
- data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/__snapshots__/AccountList.test.js.snap +2 -3
- 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/AccountList/index.js +2 -0
- data/webpack/ForemanInventoryUpload/Components/AutoUploadSwitcher/AutoUploadSwitcher.js +6 -6
- data/webpack/ForemanInventoryUpload/Components/AutoUploadSwitcher/AutoUploadSwitcherActions.js +4 -1
- 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/DashboardActions.js +4 -3
- data/webpack/ForemanInventoryUpload/Components/Dashboard/DashboardSelectors.js +1 -1
- data/webpack/ForemanInventoryUpload/Components/Dashboard/__tests__/DashboardActions.test.js +2 -3
- data/webpack/ForemanInventoryUpload/Components/Dashboard/__tests__/DashboardIntegration.test.js +1 -1
- data/webpack/ForemanInventoryUpload/Components/Dashboard/__tests__/DashboardSelectors.test.js +3 -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/Components/ClearButton/ClearButton.js +26 -0
- data/webpack/ForemanInventoryUpload/Components/InventoryFilter/Components/ClearButton/index.js +1 -0
- data/webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilter.fixtures.js +2 -0
- data/webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilter.js +39 -0
- data/webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilterActions.js +16 -0
- data/webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilterConstants.js +3 -0
- data/webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilterReducer.js +36 -0
- data/webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilterSelectors.js +7 -0
- data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilter.test.js +14 -0
- data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilterActions.test.js +14 -0
- data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilterReducer.test.js +35 -0
- data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilterSelectors.test.js +21 -0
- data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/InventoryFilter.test.js.snap +25 -0
- data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/InventoryFilterActions.test.js.snap +17 -0
- data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/InventoryFilterReducer.test.js.snap +25 -0
- data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/InventoryFilterSelectors.test.js.snap +9 -0
- data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/integration.test.js.snap +40 -0
- data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/integration.test.js +18 -0
- data/webpack/ForemanInventoryUpload/Components/InventoryFilter/index.js +17 -0
- data/webpack/ForemanInventoryUpload/Components/InventoryFilter/inventoryFilter.scss +28 -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 +25 -6
- data/webpack/ForemanInventoryUpload/Components/PageHeader/__tests__/__snapshots__/PageHeader.test.js.snap +33 -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/PageHeader/pageHeader.scss +3 -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 +9 -0
- data/webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js +12 -0
- data/webpack/ForemanInventoryUpload/ForemanInventoryUpload.js +16 -8
- data/webpack/ForemanInventoryUpload/ForemanInventoryUploadReducers.js +6 -4
- data/webpack/ForemanInventoryUpload/SubscriptionsPageExtension/SubscriptionsPageExtensionActions.js +34 -0
- data/webpack/ForemanInventoryUpload/__tests__/ForemanInventoryHelpers.test.js +12 -0
- data/webpack/ForemanInventoryUpload/{ForemanInventoryUpload.test.js → __tests__/ForemanInventoryUpload.test.js} +1 -1
- data/webpack/ForemanInventoryUpload/__tests__/__snapshots__/ForemanInventoryHelpers.test.js.snap +5 -0
- data/webpack/ForemanInventoryUpload/{__snapshots__ → __tests__/__snapshots__}/ForemanInventoryUpload.test.js.snap +0 -0
- data/webpack/ForemanRhCloudHelpers.js +6 -0
- data/webpack/ForemanRhCloudPages.js +9 -0
- data/webpack/ForemanRhCloudReducers.js +12 -0
- data/webpack/ForemanRhCloudSelectors.js +10 -0
- data/webpack/ForemanRhCloudTestHelpers.js +20 -0
- 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/components/Layout/LayoutConstants.js +1 -0
- data/webpack/__mocks__/foremanReact/constants.js +5 -0
- data/webpack/__mocks__/foremanReact/redux/actions/toasts.js +8 -0
- data/webpack/__tests__/ForemanRhCloudHelpers.test.js +11 -0
- data/webpack/__tests__/ForemanRhCloudSelectors.test.js +22 -0
- data/webpack/__tests__/ForemanRhCloudTestHelpers.test.js +20 -0
- data/webpack/__tests__/__snapshots__/ForemanRhCloudHelpers.test.js.snap +3 -0
- data/webpack/__tests__/__snapshots__/ForemanRhCloudSelectors.test.js.snap +25 -0
- data/webpack/__tests__/__snapshots__/ForemanRhCloudTestHelpers.test.js.snap +39 -0
- data/webpack/index.js +3 -6
- data/webpack/stories/decorators/withCardsDecorator.js +1 -1
- data/webpack/subscriptions_extension_index.js +8 -0
- metadata +196 -17
- data/app/controllers/foreman_inventory_upload/react_controller.rb +0 -7
- data/test/unit/slice_generator_test.rb.orig +0 -280
- data/webpack/ForemanInventoryUpload/ForemanInventoryUploadSelectors.js +0 -4
@@ -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);
|
@@ -0,0 +1 @@
|
|
1
|
+
export const LAYOUT_CHANGE_ORG = 'LAYOUT_CHANGE_ORG';
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { testSelectorsSnapshotWithFixtures } from 'react-redux-test-utils';
|
2
|
+
import { foremanUrl } from '../ForemanRhCloudHelpers';
|
3
|
+
|
4
|
+
global.URL_PREFIX = 'MY_TEST_URL_PREFIX.example.com';
|
5
|
+
|
6
|
+
const fixtures = {
|
7
|
+
'should return foreman Url': () => foremanUrl('/test_path'),
|
8
|
+
};
|
9
|
+
|
10
|
+
describe('ForemanRhCloud helpers', () =>
|
11
|
+
testSelectorsSnapshotWithFixtures(fixtures));
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { testSelectorsSnapshotWithFixtures } from 'react-redux-test-utils';
|
2
|
+
import { rhCloudStateWrapper } from '../ForemanRhCloudTestHelpers';
|
3
|
+
import {
|
4
|
+
selectForemanRhCloud,
|
5
|
+
selectForemanInventoryUpload,
|
6
|
+
selectInsightsCloudSync,
|
7
|
+
} from '../ForemanRhCloudSelectors';
|
8
|
+
|
9
|
+
const state = rhCloudStateWrapper(
|
10
|
+
{ inventoryChild: {} },
|
11
|
+
{ insightsChild: {} }
|
12
|
+
);
|
13
|
+
|
14
|
+
const fixtures = {
|
15
|
+
'should return ForemanRhCloud': () => selectForemanRhCloud(state),
|
16
|
+
'should return ForemanInventoryUpload': () =>
|
17
|
+
selectForemanInventoryUpload(state),
|
18
|
+
'should return InsightsCloudSync': () => selectInsightsCloudSync(state),
|
19
|
+
};
|
20
|
+
|
21
|
+
describe('ForemanRhCloud selectors', () =>
|
22
|
+
testSelectorsSnapshotWithFixtures(fixtures));
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { testSelectorsSnapshotWithFixtures } from 'react-redux-test-utils';
|
2
|
+
import {
|
3
|
+
rhCloudStateWrapper,
|
4
|
+
inventoryStateWrapper,
|
5
|
+
insightsStateWrapper,
|
6
|
+
} from '../ForemanRhCloudTestHelpers';
|
7
|
+
|
8
|
+
const fixtures = {
|
9
|
+
'should return rhCloud wrapper': () =>
|
10
|
+
rhCloudStateWrapper({ inventoryChild: {} }, { insightsChild: {} }),
|
11
|
+
|
12
|
+
'should return inventory wrapper': () =>
|
13
|
+
inventoryStateWrapper({ inventoryChild: {} }),
|
14
|
+
|
15
|
+
'should return insights wrapper': () =>
|
16
|
+
insightsStateWrapper({ insightsChild: {} }),
|
17
|
+
};
|
18
|
+
|
19
|
+
describe('ForemanRhCloud helpers', () =>
|
20
|
+
testSelectorsSnapshotWithFixtures(fixtures));
|
@@ -0,0 +1,25 @@
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
2
|
+
|
3
|
+
exports[`ForemanRhCloud selectors should return ForemanInventoryUpload 1`] = `
|
4
|
+
Object {
|
5
|
+
"inventoryChild": Object {},
|
6
|
+
}
|
7
|
+
`;
|
8
|
+
|
9
|
+
exports[`ForemanRhCloud selectors should return ForemanRhCloud 1`] = `
|
10
|
+
Object {
|
11
|
+
"InsightsCloudSync": Object {
|
12
|
+
"insightsChild": Object {},
|
13
|
+
},
|
14
|
+
"hostInsights": Object {},
|
15
|
+
"inventoryUpload": Object {
|
16
|
+
"inventoryChild": Object {},
|
17
|
+
},
|
18
|
+
}
|
19
|
+
`;
|
20
|
+
|
21
|
+
exports[`ForemanRhCloud selectors should return InsightsCloudSync 1`] = `
|
22
|
+
Object {
|
23
|
+
"insightsChild": Object {},
|
24
|
+
}
|
25
|
+
`;
|
@@ -0,0 +1,39 @@
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
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
|
+
|
15
|
+
exports[`ForemanRhCloud helpers should return inventory wrapper 1`] = `
|
16
|
+
Object {
|
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 {},
|
34
|
+
"inventoryUpload": Object {
|
35
|
+
"inventoryChild": Object {},
|
36
|
+
},
|
37
|
+
},
|
38
|
+
}
|
39
|
+
`;
|
data/webpack/index.js
CHANGED
@@ -3,8 +3,8 @@
|
|
3
3
|
/* eslint-disable import/extensions */
|
4
4
|
import componentRegistry from 'foremanReact/components/componentRegistry';
|
5
5
|
import { registerReducer } from 'foremanReact/common/MountingService';
|
6
|
-
import reducers from './
|
7
|
-
import
|
6
|
+
import reducers from './ForemanRhCloudReducers';
|
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.11
|
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-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: katello
|
@@ -105,13 +105,29 @@ files:
|
|
105
105
|
- README.md
|
106
106
|
- Rakefile
|
107
107
|
- app/controllers/foreman_inventory_upload/accounts_controller.rb
|
108
|
-
- app/controllers/foreman_inventory_upload/react_controller.rb
|
109
108
|
- app/controllers/foreman_inventory_upload/reports_controller.rb
|
109
|
+
- app/controllers/foreman_inventory_upload/tasks_controller.rb
|
110
110
|
- app/controllers/foreman_inventory_upload/uploads_controller.rb
|
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
|
113
|
-
- app/
|
122
|
+
- app/overrides/hosts_list.rb
|
123
|
+
- app/views/foreman_rh_cloud/react/insights_cloud.html.erb
|
124
|
+
- app/views/foreman_rh_cloud/react/inventory_upload.html.erb
|
125
|
+
- app/views/hosts/_insights_tab.html.erb
|
126
|
+
- app/views/layouts/foreman_rh_cloud/application.html.erb
|
114
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
|
115
131
|
- lib/foreman_inventory_upload.rb
|
116
132
|
- lib/foreman_inventory_upload/async/async_helpers.rb
|
117
133
|
- lib/foreman_inventory_upload/async/generate_all_reports_job.rb
|
@@ -126,28 +142,40 @@ files:
|
|
126
142
|
- lib/foreman_inventory_upload/generators/metadata.rb
|
127
143
|
- lib/foreman_inventory_upload/generators/queries.rb
|
128
144
|
- lib/foreman_inventory_upload/generators/slice.rb
|
145
|
+
- lib/foreman_inventory_upload/notifications/manifest_import_success_notification_override.rb
|
129
146
|
- lib/foreman_inventory_upload/scripts/uploader.sh.erb
|
130
147
|
- lib/foreman_rh_cloud.rb
|
131
148
|
- lib/foreman_rh_cloud/engine.rb
|
132
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
|
133
155
|
- lib/tasks/foreman_rh_cloud_tasks.rake
|
134
|
-
- lib/tasks/
|
156
|
+
- lib/tasks/insights.rake
|
157
|
+
- lib/tasks/rh_cloud_inventory.rake
|
135
158
|
- locale/Makefile
|
136
159
|
- locale/en/foreman_rh_cloud.po
|
137
160
|
- locale/foreman_rh_cloud.pot
|
138
161
|
- locale/gemspec.rb
|
139
162
|
- package.json
|
140
163
|
- test/controllers/accounts_controller_test.rb
|
164
|
+
- test/controllers/insights_sync/settings_controller_test.rb
|
141
165
|
- test/controllers/reports_controller_test.rb
|
142
166
|
- test/controllers/uploads_controller_test.rb
|
167
|
+
- test/factories/insights_factories.rb
|
143
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
|
144
172
|
- test/test_plugin_helper.rb
|
145
173
|
- test/unit/archived_report_generator_test.rb
|
146
174
|
- test/unit/fact_helpers_test.rb
|
175
|
+
- test/unit/insights_facet_test.rb
|
147
176
|
- test/unit/metadata_generator_test.rb
|
148
177
|
- test/unit/shell_process_job_test.rb
|
149
178
|
- test/unit/slice_generator_test.rb
|
150
|
-
- test/unit/slice_generator_test.rb.orig
|
151
179
|
- webpack/ForemanInventoryUpload/Components/AccountList/AccountList.fixtures.js
|
152
180
|
- webpack/ForemanInventoryUpload/Components/AccountList/AccountList.js
|
153
181
|
- webpack/ForemanInventoryUpload/Components/AccountList/AccountList.stories.js
|
@@ -156,6 +184,11 @@ files:
|
|
156
184
|
- webpack/ForemanInventoryUpload/Components/AccountList/AccountListHelper.js
|
157
185
|
- webpack/ForemanInventoryUpload/Components/AccountList/AccountListReducer.js
|
158
186
|
- webpack/ForemanInventoryUpload/Components/AccountList/AccountListSelectors.js
|
187
|
+
- webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/EmptyResults.js
|
188
|
+
- webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/__tests__/EmptyResults.test.js
|
189
|
+
- webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/__tests__/__snapshots__/EmptyResults.test.js.snap
|
190
|
+
- webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/emptyResults.scss
|
191
|
+
- webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/index.js
|
159
192
|
- webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyState/EmptyState.fixtures.js
|
160
193
|
- webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyState/EmptyState.js
|
161
194
|
- webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyState/EmptyStateHelper.js
|
@@ -186,6 +219,7 @@ files:
|
|
186
219
|
- webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItemStatus/listItemStatus.scss
|
187
220
|
- webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountList.test.js
|
188
221
|
- webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListActions.test.js
|
222
|
+
- webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListHelper.test.js
|
189
223
|
- webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListIntegration.test.js
|
190
224
|
- webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListReducer.test.js
|
191
225
|
- webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListSelectors.test.js
|
@@ -238,6 +272,41 @@ files:
|
|
238
272
|
- webpack/ForemanInventoryUpload/Components/FullScreenModal/__tests__/__snapshots__/FullScreenModal.test.js.snap
|
239
273
|
- webpack/ForemanInventoryUpload/Components/FullScreenModal/fullScreenModal.scss
|
240
274
|
- webpack/ForemanInventoryUpload/Components/FullScreenModal/index.js
|
275
|
+
- webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.fixtures.js
|
276
|
+
- webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.js
|
277
|
+
- webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcherActions.js
|
278
|
+
- webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcherConstants.js
|
279
|
+
- webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/__tests__/HostObfuscationSwitcher.test.js
|
280
|
+
- webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/__tests__/HostObfuscationSwitcherActions.test.js
|
281
|
+
- webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/__tests__/__snapshots__/HostObfuscationSwitcher.test.js.snap
|
282
|
+
- webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/__tests__/__snapshots__/HostObfuscationSwitcherActions.test.js.snap
|
283
|
+
- webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/hostObfuscationSwitcher.scss
|
284
|
+
- webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/index.js
|
285
|
+
- webpack/ForemanInventoryUpload/Components/InventoryFilter/Components/ClearButton/ClearButton.js
|
286
|
+
- webpack/ForemanInventoryUpload/Components/InventoryFilter/Components/ClearButton/index.js
|
287
|
+
- webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilter.fixtures.js
|
288
|
+
- webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilter.js
|
289
|
+
- webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilterActions.js
|
290
|
+
- webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilterConstants.js
|
291
|
+
- webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilterReducer.js
|
292
|
+
- webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilterSelectors.js
|
293
|
+
- webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilter.test.js
|
294
|
+
- webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilterActions.test.js
|
295
|
+
- webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilterReducer.test.js
|
296
|
+
- webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilterSelectors.test.js
|
297
|
+
- webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/InventoryFilter.test.js.snap
|
298
|
+
- webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/InventoryFilterActions.test.js.snap
|
299
|
+
- webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/InventoryFilterReducer.test.js.snap
|
300
|
+
- webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/InventoryFilterSelectors.test.js.snap
|
301
|
+
- webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/integration.test.js.snap
|
302
|
+
- webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/integration.test.js
|
303
|
+
- webpack/ForemanInventoryUpload/Components/InventoryFilter/index.js
|
304
|
+
- webpack/ForemanInventoryUpload/Components/InventoryFilter/inventoryFilter.scss
|
305
|
+
- webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettings.js
|
306
|
+
- webpack/ForemanInventoryUpload/Components/InventorySettings/__tests__/InventorySettings.test.js
|
307
|
+
- webpack/ForemanInventoryUpload/Components/InventorySettings/__tests__/__snapshots__/InventorySettings.test.js.snap
|
308
|
+
- webpack/ForemanInventoryUpload/Components/InventorySettings/index.js
|
309
|
+
- webpack/ForemanInventoryUpload/Components/InventorySettings/inventorySettings.scss
|
241
310
|
- webpack/ForemanInventoryUpload/Components/NavContainer/NavContainer.fixtures.js
|
242
311
|
- webpack/ForemanInventoryUpload/Components/NavContainer/NavContainer.js
|
243
312
|
- webpack/ForemanInventoryUpload/Components/NavContainer/NavContainerHelper.js
|
@@ -248,7 +317,43 @@ files:
|
|
248
317
|
- webpack/ForemanInventoryUpload/Components/PageHeader/PageHeader.js
|
249
318
|
- webpack/ForemanInventoryUpload/Components/PageHeader/__tests__/PageHeader.test.js
|
250
319
|
- webpack/ForemanInventoryUpload/Components/PageHeader/__tests__/__snapshots__/PageHeader.test.js.snap
|
320
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/DocsButton/DocsButton.js
|
321
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/DocsButton/__tests__/DocsButton.test.js
|
322
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/DocsButton/__tests__/__snapshots__/DocsButton.test.js.snap
|
323
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/DocsButton/index.js
|
324
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/HistoryButton/HistoryButton.js
|
325
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/HistoryButton/__tests__/HistoryButton.test.js
|
326
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/HistoryButton/__tests__/__snapshots__/HistoryButton.test.js.snap
|
327
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/HistoryButton/index.js
|
328
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/PageDescription.js
|
329
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/__tests__/PageDescription.test.js
|
330
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/__tests__/__snapshots__/PageDescription.test.js.snap
|
331
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/index.js
|
332
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButton.js
|
333
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButtonActions.js
|
334
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButtonConstants.js
|
335
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButtonReducer.js
|
336
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButtonSelectors.js
|
337
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButton.test.js
|
338
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonActions.test.js
|
339
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonFixtures.js
|
340
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonReducer.test.js
|
341
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonSelectors.test.js
|
342
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButton.test.js.snap
|
343
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButtonActions.test.js.snap
|
344
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButtonReducer.test.js.snap
|
345
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButtonSelectors.test.js.snap
|
346
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/components/Modal.js
|
347
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/components/Toast.js
|
348
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/components/modal.scss
|
349
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/index.js
|
350
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/ToolbarButtons.js
|
351
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/__tests__/ToolbarButtons.test.js
|
352
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/__tests__/__snapshots__/ToolbarButtons.test.js.snap
|
353
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/index.js
|
354
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/toolbarButtons.scss
|
251
355
|
- webpack/ForemanInventoryUpload/Components/PageHeader/index.js
|
356
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/pageHeader.scss
|
252
357
|
- webpack/ForemanInventoryUpload/Components/ReportGenerate/ReportGenerate.fixtures.js
|
253
358
|
- webpack/ForemanInventoryUpload/Components/ReportGenerate/ReportGenerate.js
|
254
359
|
- webpack/ForemanInventoryUpload/Components/ReportGenerate/ReportGenerateHelper.js
|
@@ -312,15 +417,83 @@ files:
|
|
312
417
|
- webpack/ForemanInventoryUpload/Components/Terminal/__tests__/__snapshots__/Terminal.test.js.snap
|
313
418
|
- webpack/ForemanInventoryUpload/Components/Terminal/index.js
|
314
419
|
- webpack/ForemanInventoryUpload/Components/Terminal/terminal.scss
|
420
|
+
- webpack/ForemanInventoryUpload/ForemanInventoryConstants.js
|
421
|
+
- webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
|
315
422
|
- webpack/ForemanInventoryUpload/ForemanInventoryUpload.js
|
316
|
-
- webpack/ForemanInventoryUpload/ForemanInventoryUpload.test.js
|
317
423
|
- webpack/ForemanInventoryUpload/ForemanInventoryUploadReducers.js
|
318
|
-
- webpack/ForemanInventoryUpload/
|
319
|
-
- webpack/ForemanInventoryUpload/
|
424
|
+
- webpack/ForemanInventoryUpload/SubscriptionsPageExtension/SubscriptionsPageExtensionActions.js
|
425
|
+
- webpack/ForemanInventoryUpload/__tests__/ForemanInventoryHelpers.test.js
|
426
|
+
- webpack/ForemanInventoryUpload/__tests__/ForemanInventoryUpload.test.js
|
427
|
+
- webpack/ForemanInventoryUpload/__tests__/__snapshots__/ForemanInventoryHelpers.test.js.snap
|
428
|
+
- webpack/ForemanInventoryUpload/__tests__/__snapshots__/ForemanInventoryUpload.test.js.snap
|
320
429
|
- webpack/ForemanInventoryUpload/index.js
|
430
|
+
- webpack/ForemanRhCloudHelpers.js
|
431
|
+
- webpack/ForemanRhCloudPages.js
|
432
|
+
- webpack/ForemanRhCloudReducers.js
|
433
|
+
- webpack/ForemanRhCloudSelectors.js
|
434
|
+
- webpack/ForemanRhCloudTestHelpers.js
|
435
|
+
- webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettings.js
|
436
|
+
- webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettingsActions.js
|
437
|
+
- webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettingsConstants.js
|
438
|
+
- webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettingsReducer.js
|
439
|
+
- webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettingsSelectors.js
|
440
|
+
- webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettings.test.js
|
441
|
+
- webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsActions.test.js
|
442
|
+
- webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsReducer.test.js
|
443
|
+
- webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsSelectors.test.js
|
444
|
+
- webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/__snapshots__/InsightsSettings.test.js.snap
|
445
|
+
- webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/__snapshots__/InsightsSettingsActions.test.js.snap
|
446
|
+
- webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/__snapshots__/InsightsSettingsReducer.test.js.snap
|
447
|
+
- webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/__snapshots__/InsightsSettingsSelectors.test.js.snap
|
448
|
+
- webpack/InsightsCloudSync/Components/InsightsSettings/index.js
|
449
|
+
- webpack/InsightsCloudSync/Components/InsightsSettings/insightsSettings.scss
|
450
|
+
- webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/InsightsSyncSwitcher.fixtures.js
|
451
|
+
- webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/InsightsSyncSwitcher.js
|
452
|
+
- webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/__tests__/InsightsSyncSwitcher.test.js
|
453
|
+
- webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/__tests__/__snapshots__/InsightsSyncSwitcher.test.js.snap
|
454
|
+
- webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/index.js
|
455
|
+
- webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/insightsSyncSwitcher.scss
|
456
|
+
- webpack/InsightsCloudSync/InsightsCloudSync.js
|
457
|
+
- webpack/InsightsCloudSync/InsightsCloudSync.test.js
|
458
|
+
- webpack/InsightsCloudSync/InsightsCloudSyncActions.js
|
459
|
+
- webpack/InsightsCloudSync/InsightsCloudSyncConstants.js
|
460
|
+
- webpack/InsightsCloudSync/InsightsCloudSyncHelpers.js
|
461
|
+
- webpack/InsightsCloudSync/InsightsCloudSyncReducers.js
|
462
|
+
- webpack/InsightsCloudSync/__snapshots__/InsightsCloudSync.test.js.snap
|
463
|
+
- webpack/InsightsCloudSync/__tests__/InsightsCloudSyncHelpers.test.js
|
464
|
+
- webpack/InsightsCloudSync/__tests__/__snapshots__/InsightsCloudSyncHelpers.test.js.snap
|
465
|
+
- webpack/InsightsCloudSync/index.js
|
466
|
+
- webpack/InsightsHostDetailsTab/InsightsTab.js
|
467
|
+
- webpack/InsightsHostDetailsTab/InsightsTab.scss
|
468
|
+
- webpack/InsightsHostDetailsTab/InsightsTabActions.js
|
469
|
+
- webpack/InsightsHostDetailsTab/InsightsTabConstants.js
|
470
|
+
- webpack/InsightsHostDetailsTab/InsightsTabReducer.js
|
471
|
+
- webpack/InsightsHostDetailsTab/InsightsTabSelectors.js
|
472
|
+
- webpack/InsightsHostDetailsTab/__tests__/InsightsTab.fixtures.js
|
473
|
+
- webpack/InsightsHostDetailsTab/__tests__/InsightsTab.test.js
|
474
|
+
- webpack/InsightsHostDetailsTab/__tests__/InsightsTabActions.test.js
|
475
|
+
- webpack/InsightsHostDetailsTab/__tests__/InsightsTabIntegration.test.js
|
476
|
+
- webpack/InsightsHostDetailsTab/__tests__/InsightsTabReducer.test.js
|
477
|
+
- webpack/InsightsHostDetailsTab/__tests__/InsightsTabSelectors.test.js
|
478
|
+
- webpack/InsightsHostDetailsTab/__tests__/__snapshots__/InsightsTab.test.js.snap
|
479
|
+
- webpack/InsightsHostDetailsTab/__tests__/__snapshots__/InsightsTabActions.test.js.snap
|
480
|
+
- webpack/InsightsHostDetailsTab/__tests__/__snapshots__/InsightsTabReducer.test.js.snap
|
481
|
+
- webpack/InsightsHostDetailsTab/__tests__/__snapshots__/InsightsTabSelectors.test.js.snap
|
482
|
+
- webpack/InsightsHostDetailsTab/components/ListItem/ListItem.js
|
483
|
+
- webpack/InsightsHostDetailsTab/components/ListItem/index.js
|
484
|
+
- webpack/InsightsHostDetailsTab/index.js
|
321
485
|
- webpack/__mocks__/foremanReact/API.js
|
322
486
|
- webpack/__mocks__/foremanReact/common/I18n.js
|
323
487
|
- webpack/__mocks__/foremanReact/common/helpers.js
|
488
|
+
- webpack/__mocks__/foremanReact/components/Layout/LayoutConstants.js
|
489
|
+
- webpack/__mocks__/foremanReact/constants.js
|
490
|
+
- webpack/__mocks__/foremanReact/redux/actions/toasts.js
|
491
|
+
- webpack/__tests__/ForemanRhCloudHelpers.test.js
|
492
|
+
- webpack/__tests__/ForemanRhCloudSelectors.test.js
|
493
|
+
- webpack/__tests__/ForemanRhCloudTestHelpers.test.js
|
494
|
+
- webpack/__tests__/__snapshots__/ForemanRhCloudHelpers.test.js.snap
|
495
|
+
- webpack/__tests__/__snapshots__/ForemanRhCloudSelectors.test.js.snap
|
496
|
+
- webpack/__tests__/__snapshots__/ForemanRhCloudTestHelpers.test.js.snap
|
324
497
|
- webpack/index.js
|
325
498
|
- webpack/stories/ForemanInventoryUploadReducers.js
|
326
499
|
- webpack/stories/configureStore.js
|
@@ -328,6 +501,7 @@ files:
|
|
328
501
|
- webpack/stories/decorators/withCardsDecorator.js
|
329
502
|
- webpack/stories/index.js
|
330
503
|
- webpack/stories/index.scss
|
504
|
+
- webpack/subscriptions_extension_index.js
|
331
505
|
- webpack/test_setup.js
|
332
506
|
homepage: https://github.com/theforeman/foreman_rh_cloud
|
333
507
|
licenses:
|
@@ -348,19 +522,24 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
348
522
|
- !ruby/object:Gem::Version
|
349
523
|
version: '0'
|
350
524
|
requirements: []
|
351
|
-
rubygems_version: 3.0.
|
525
|
+
rubygems_version: 3.0.8
|
352
526
|
signing_key:
|
353
527
|
specification_version: 4
|
354
528
|
summary: Summary of ForemanRhCloud.
|
355
529
|
test_files:
|
356
|
-
- test/controllers/uploads_controller_test.rb
|
357
|
-
- test/controllers/accounts_controller_test.rb
|
358
|
-
- test/controllers/reports_controller_test.rb
|
359
530
|
- test/test_plugin_helper.rb
|
360
531
|
- test/factories/inventory_upload_factories.rb
|
361
|
-
- test/
|
532
|
+
- test/factories/insights_factories.rb
|
533
|
+
- test/controllers/reports_controller_test.rb
|
534
|
+
- test/controllers/uploads_controller_test.rb
|
535
|
+
- test/controllers/accounts_controller_test.rb
|
536
|
+
- test/controllers/insights_sync/settings_controller_test.rb
|
537
|
+
- test/unit/slice_generator_test.rb
|
362
538
|
- test/unit/metadata_generator_test.rb
|
363
|
-
- test/unit/
|
364
|
-
- test/unit/
|
539
|
+
- test/unit/shell_process_job_test.rb
|
540
|
+
- test/unit/insights_facet_test.rb
|
365
541
|
- test/unit/archived_report_generator_test.rb
|
366
|
-
- test/unit/
|
542
|
+
- test/unit/fact_helpers_test.rb
|
543
|
+
- test/jobs/inventory_full_sync_test.rb
|
544
|
+
- test/jobs/insights_full_sync_test.rb
|
545
|
+
- test/jobs/upload_report_job_test.rb
|