foreman_rh_cloud 1.0.5 → 2.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -0
- data/app/controllers/foreman_inventory_upload/accounts_controller.rb +2 -6
- data/app/controllers/foreman_rh_cloud/react_controller.rb +8 -0
- data/app/models/setting/rh_cloud.rb +1 -0
- data/app/views/foreman_rh_cloud/react/inventory_upload.html.erb +1 -0
- data/app/views/{foreman_inventory_upload/layouts/react.html.erb → layouts/foreman_rh_cloud/application.html.erb} +2 -2
- data/config/routes.rb +4 -1
- data/lib/foreman_inventory_upload/async/async_helpers.rb +13 -0
- data/lib/foreman_inventory_upload/async/shell_process.rb +3 -1
- data/lib/foreman_inventory_upload/async/upload_report_job.rb +1 -5
- data/lib/foreman_inventory_upload/generators/fact_helpers.rb +56 -0
- data/lib/foreman_inventory_upload/generators/queries.rb +6 -0
- data/lib/foreman_inventory_upload/generators/slice.rb +14 -9
- data/lib/foreman_rh_cloud/engine.rb +17 -5
- data/lib/foreman_rh_cloud/version.rb +1 -1
- data/package.json +20 -100
- data/test/factories/inventory_upload_factories.rb +13 -13
- data/test/unit/archived_report_generator_test.rb +1 -0
- data/test/unit/fact_helpers_test.rb +29 -0
- data/test/unit/slice_generator_test.rb +206 -20
- data/webpack/ForemanInventoryUpload/Components/AccountList/AccountList.fixtures.js +6 -2
- data/webpack/ForemanInventoryUpload/Components/AccountList/AccountList.js +13 -10
- data/webpack/ForemanInventoryUpload/Components/AccountList/AccountList.stories.js +5 -14
- data/webpack/ForemanInventoryUpload/Components/AccountList/AccountListActions.js +3 -2
- data/webpack/ForemanInventoryUpload/Components/AccountList/AccountListHelper.js +10 -0
- data/webpack/ForemanInventoryUpload/Components/AccountList/AccountListSelectors.js +1 -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/EmptyState/__tests__/EmptyState.test.js +1 -1
- data/webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/__tests__/ErrorState.test.js +1 -1
- data/webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItem/ListItem.js +1 -4
- data/webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItem/__tests__/ListItem.test.js +1 -1
- data/webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItemStatus/__tests__/ListItemStatus.test.js +1 -1
- data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountList.test.js +2 -1
- data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListActions.test.js +1 -1
- data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListHelper.test.js +12 -0
- data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListIntegration.test.js +2 -2
- data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListReducer.test.js +1 -1
- data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListSelectors.test.js +8 -9
- data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/__snapshots__/AccountList.test.js.snap +2 -3
- data/webpack/ForemanInventoryUpload/Components/AccountList/index.js +2 -0
- data/webpack/ForemanInventoryUpload/Components/AutoUploadSwitcher/AutoUploadSwitcherActions.js +4 -1
- data/webpack/ForemanInventoryUpload/Components/AutoUploadSwitcher/__tests__/AutoUploadSwitcher.test.js +1 -1
- data/webpack/ForemanInventoryUpload/Components/AutoUploadSwitcher/__tests__/AutoUploadSwitcherActions.test.js +1 -1
- data/webpack/ForemanInventoryUpload/Components/Dashboard/Dashboard.fixtures.js +13 -9
- data/webpack/ForemanInventoryUpload/Components/Dashboard/Dashboard.stories.js +5 -15
- data/webpack/ForemanInventoryUpload/Components/Dashboard/DashboardActions.js +4 -3
- data/webpack/ForemanInventoryUpload/Components/Dashboard/DashboardSelectors.js +1 -1
- data/webpack/ForemanInventoryUpload/Components/Dashboard/__tests__/Dashboard.test.js +1 -2
- data/webpack/ForemanInventoryUpload/Components/Dashboard/__tests__/DashboardActions.test.js +17 -5
- data/webpack/ForemanInventoryUpload/Components/Dashboard/__tests__/DashboardIntegration.test.js +2 -2
- data/webpack/ForemanInventoryUpload/Components/Dashboard/__tests__/DashboardReducer.test.js +1 -1
- data/webpack/ForemanInventoryUpload/Components/Dashboard/__tests__/DashboardSelectors.test.js +4 -3
- data/webpack/ForemanInventoryUpload/Components/FileDownload/__tests__/FileDownload.test.js +1 -1
- data/webpack/ForemanInventoryUpload/Components/FullScreenModal/__tests__/FullScreenModal.test.js +1 -1
- 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 +31 -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/NavContainer/NavContainer.fixtures.js +5 -2
- data/webpack/ForemanInventoryUpload/Components/NavContainer/__tests__/NavContainer.test.js +1 -2
- data/webpack/ForemanInventoryUpload/Components/NavContainer/__tests__/__snapshots__/NavContainer.test.js.snap +1 -1
- data/webpack/ForemanInventoryUpload/Components/PageHeader/PageHeader.js +12 -3
- data/webpack/ForemanInventoryUpload/Components/PageHeader/__tests__/PageHeader.test.js +1 -1
- data/webpack/ForemanInventoryUpload/Components/PageHeader/__tests__/__snapshots__/PageHeader.test.js.snap +11 -2
- data/webpack/ForemanInventoryUpload/Components/PageHeader/pageHeader.scss +3 -0
- data/webpack/ForemanInventoryUpload/Components/ReportGenerate/__tests__/ReportGenerate.test.js +1 -1
- data/webpack/ForemanInventoryUpload/Components/ReportUpload/__tests__/ReportUpload.test.js +1 -1
- data/webpack/ForemanInventoryUpload/Components/ScheduledRun/__tests__/ScheduledRun.test.js +1 -1
- data/webpack/ForemanInventoryUpload/Components/StatusChart/__tests__/StatusChart.test.js +1 -1
- data/webpack/ForemanInventoryUpload/Components/TabBody/__tests__/TabBody.test.js +1 -1
- data/webpack/ForemanInventoryUpload/Components/TabContainer/__tests__/TabContainer.test.js +1 -1
- data/webpack/ForemanInventoryUpload/Components/TabFooter/__tests__/TabFooter.test.js +1 -1
- data/webpack/ForemanInventoryUpload/Components/TabHeader/__tests__/TabHeader.test.js +1 -1
- data/webpack/ForemanInventoryUpload/Components/Terminal/Terminal.js +1 -1
- data/webpack/ForemanInventoryUpload/Components/Terminal/__tests__/Terminal.test.js +1 -2
- data/webpack/ForemanInventoryUpload/ForemanInventoryConstants.js +3 -0
- data/webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js +4 -0
- data/webpack/ForemanInventoryUpload/ForemanInventoryUpload.js +16 -8
- data/webpack/ForemanInventoryUpload/ForemanInventoryUploadReducers.js +4 -4
- data/webpack/ForemanInventoryUpload/__tests__/ForemanInventoryHelpers.test.js +9 -0
- data/webpack/ForemanInventoryUpload/{ForemanInventoryUpload.test.js → __tests__/ForemanInventoryUpload.test.js} +2 -2
- data/webpack/ForemanInventoryUpload/__tests__/__snapshots__/ForemanInventoryHelpers.test.js.snap +3 -0
- data/webpack/ForemanInventoryUpload/{__snapshots__ → __tests__/__snapshots__}/ForemanInventoryUpload.test.js.snap +0 -0
- data/webpack/ForemanRhCloudHelpers.js +6 -0
- data/webpack/ForemanRhCloudReducers.js +8 -0
- data/webpack/ForemanRhCloudSelectors.js +3 -0
- data/webpack/ForemanRhCloudTestHelpers.js +5 -0
- data/webpack/__mocks__/foremanReact/components/Layout/LayoutConstants.js +1 -0
- data/webpack/__tests__/ForemanRhCloudHelpers.test.js +11 -0
- data/webpack/__tests__/ForemanRhCloudSelectors.test.js +17 -0
- data/webpack/__tests__/ForemanRhCloudTestHelpers.test.js +10 -0
- data/webpack/__tests__/__snapshots__/ForemanRhCloudHelpers.test.js.snap +3 -0
- data/webpack/__tests__/__snapshots__/ForemanRhCloudSelectors.test.js.snap +15 -0
- data/webpack/__tests__/__snapshots__/ForemanRhCloudTestHelpers.test.js.snap +11 -0
- data/webpack/index.js +1 -1
- metadata +52 -14
- data/app/controllers/foreman_inventory_upload/react_controller.rb +0 -7
- data/webpack/ForemanInventoryUpload/ForemanInventoryUploadSelectors.js +0 -4
- data/webpack/stories/ForemanInventoryUploadReducers.js +0 -3
- data/webpack/stories/configureStore.js +0 -15
- data/webpack/stories/decorators/index.js +0 -1
- data/webpack/stories/decorators/withCardsDecorator.js +0 -14
- data/webpack/stories/index.js +0 -10
- data/webpack/stories/index.scss +0 -7
- data/webpack/test_setup.js +0 -6
@@ -0,0 +1,10 @@
|
|
1
|
+
import { testSelectorsSnapshotWithFixtures } from '@theforeman/test';
|
2
|
+
import { inventoryStateWrapper } from '../ForemanRhCloudTestHelpers';
|
3
|
+
|
4
|
+
const fixtures = {
|
5
|
+
'should return inventory wrapper': () =>
|
6
|
+
inventoryStateWrapper({ inventoryChildren: null }),
|
7
|
+
};
|
8
|
+
|
9
|
+
describe('ForemanRhCloud helpers', () =>
|
10
|
+
testSelectorsSnapshotWithFixtures(fixtures));
|
@@ -0,0 +1,15 @@
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
2
|
+
|
3
|
+
exports[`ForemanRhCloud selectors should return ForemanInventoryUpload 1`] = `
|
4
|
+
Object {
|
5
|
+
"inventoryReducersNamespaces": Object {},
|
6
|
+
}
|
7
|
+
`;
|
8
|
+
|
9
|
+
exports[`ForemanRhCloud selectors should return ForemanRhCloud 1`] = `
|
10
|
+
Object {
|
11
|
+
"inventoryUpload": Object {
|
12
|
+
"inventoryReducersNamespaces": Object {},
|
13
|
+
},
|
14
|
+
}
|
15
|
+
`;
|
data/webpack/index.js
CHANGED
@@ -3,7 +3,7 @@
|
|
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 './
|
6
|
+
import reducers from './ForemanRhCloudReducers';
|
7
7
|
import ForemanInventoryUpload from './ForemanInventoryUpload';
|
8
8
|
|
9
9
|
// register reducers
|
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:
|
4
|
+
version: 2.0.7
|
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-05-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: katello
|
@@ -105,14 +105,16 @@ 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
|
110
109
|
- app/controllers/foreman_inventory_upload/uploads_controller.rb
|
110
|
+
- app/controllers/foreman_rh_cloud/react_controller.rb
|
111
111
|
- app/helpers/foreman_inventory_upload_helper.rb
|
112
112
|
- app/models/setting/rh_cloud.rb
|
113
|
-
- app/views/
|
113
|
+
- app/views/foreman_rh_cloud/react/inventory_upload.html.erb
|
114
|
+
- app/views/layouts/foreman_rh_cloud/application.html.erb
|
114
115
|
- config/routes.rb
|
115
116
|
- lib/foreman_inventory_upload.rb
|
117
|
+
- lib/foreman_inventory_upload/async/async_helpers.rb
|
116
118
|
- lib/foreman_inventory_upload/async/generate_all_reports_job.rb
|
117
119
|
- lib/foreman_inventory_upload/async/generate_report_job.rb
|
118
120
|
- lib/foreman_inventory_upload/async/progress_output.rb
|
@@ -142,6 +144,7 @@ files:
|
|
142
144
|
- test/factories/inventory_upload_factories.rb
|
143
145
|
- test/test_plugin_helper.rb
|
144
146
|
- test/unit/archived_report_generator_test.rb
|
147
|
+
- test/unit/fact_helpers_test.rb
|
145
148
|
- test/unit/metadata_generator_test.rb
|
146
149
|
- test/unit/shell_process_job_test.rb
|
147
150
|
- test/unit/slice_generator_test.rb
|
@@ -153,6 +156,11 @@ files:
|
|
153
156
|
- webpack/ForemanInventoryUpload/Components/AccountList/AccountListHelper.js
|
154
157
|
- webpack/ForemanInventoryUpload/Components/AccountList/AccountListReducer.js
|
155
158
|
- webpack/ForemanInventoryUpload/Components/AccountList/AccountListSelectors.js
|
159
|
+
- webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/EmptyResults.js
|
160
|
+
- webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/__tests__/EmptyResults.test.js
|
161
|
+
- webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/__tests__/__snapshots__/EmptyResults.test.js.snap
|
162
|
+
- webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/emptyResults.scss
|
163
|
+
- webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/index.js
|
156
164
|
- webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyState/EmptyState.fixtures.js
|
157
165
|
- webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyState/EmptyState.js
|
158
166
|
- webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyState/EmptyStateHelper.js
|
@@ -183,6 +191,7 @@ files:
|
|
183
191
|
- webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItemStatus/listItemStatus.scss
|
184
192
|
- webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountList.test.js
|
185
193
|
- webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListActions.test.js
|
194
|
+
- webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListHelper.test.js
|
186
195
|
- webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListIntegration.test.js
|
187
196
|
- webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListReducer.test.js
|
188
197
|
- webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListSelectors.test.js
|
@@ -235,6 +244,26 @@ files:
|
|
235
244
|
- webpack/ForemanInventoryUpload/Components/FullScreenModal/__tests__/__snapshots__/FullScreenModal.test.js.snap
|
236
245
|
- webpack/ForemanInventoryUpload/Components/FullScreenModal/fullScreenModal.scss
|
237
246
|
- webpack/ForemanInventoryUpload/Components/FullScreenModal/index.js
|
247
|
+
- webpack/ForemanInventoryUpload/Components/InventoryFilter/Components/ClearButton/ClearButton.js
|
248
|
+
- webpack/ForemanInventoryUpload/Components/InventoryFilter/Components/ClearButton/index.js
|
249
|
+
- webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilter.fixtures.js
|
250
|
+
- webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilter.js
|
251
|
+
- webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilterActions.js
|
252
|
+
- webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilterConstants.js
|
253
|
+
- webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilterReducer.js
|
254
|
+
- webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilterSelectors.js
|
255
|
+
- webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilter.test.js
|
256
|
+
- webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilterActions.test.js
|
257
|
+
- webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilterReducer.test.js
|
258
|
+
- webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilterSelectors.test.js
|
259
|
+
- webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/InventoryFilter.test.js.snap
|
260
|
+
- webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/InventoryFilterActions.test.js.snap
|
261
|
+
- webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/InventoryFilterReducer.test.js.snap
|
262
|
+
- webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/InventoryFilterSelectors.test.js.snap
|
263
|
+
- webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/integration.test.js.snap
|
264
|
+
- webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/integration.test.js
|
265
|
+
- webpack/ForemanInventoryUpload/Components/InventoryFilter/index.js
|
266
|
+
- webpack/ForemanInventoryUpload/Components/InventoryFilter/inventoryFilter.scss
|
238
267
|
- webpack/ForemanInventoryUpload/Components/NavContainer/NavContainer.fixtures.js
|
239
268
|
- webpack/ForemanInventoryUpload/Components/NavContainer/NavContainer.js
|
240
269
|
- webpack/ForemanInventoryUpload/Components/NavContainer/NavContainerHelper.js
|
@@ -246,6 +275,7 @@ files:
|
|
246
275
|
- webpack/ForemanInventoryUpload/Components/PageHeader/__tests__/PageHeader.test.js
|
247
276
|
- webpack/ForemanInventoryUpload/Components/PageHeader/__tests__/__snapshots__/PageHeader.test.js.snap
|
248
277
|
- webpack/ForemanInventoryUpload/Components/PageHeader/index.js
|
278
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/pageHeader.scss
|
249
279
|
- webpack/ForemanInventoryUpload/Components/ReportGenerate/ReportGenerate.fixtures.js
|
250
280
|
- webpack/ForemanInventoryUpload/Components/ReportGenerate/ReportGenerate.js
|
251
281
|
- webpack/ForemanInventoryUpload/Components/ReportGenerate/ReportGenerateHelper.js
|
@@ -309,23 +339,30 @@ files:
|
|
309
339
|
- webpack/ForemanInventoryUpload/Components/Terminal/__tests__/__snapshots__/Terminal.test.js.snap
|
310
340
|
- webpack/ForemanInventoryUpload/Components/Terminal/index.js
|
311
341
|
- webpack/ForemanInventoryUpload/Components/Terminal/terminal.scss
|
342
|
+
- webpack/ForemanInventoryUpload/ForemanInventoryConstants.js
|
343
|
+
- webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
|
312
344
|
- webpack/ForemanInventoryUpload/ForemanInventoryUpload.js
|
313
|
-
- webpack/ForemanInventoryUpload/ForemanInventoryUpload.test.js
|
314
345
|
- webpack/ForemanInventoryUpload/ForemanInventoryUploadReducers.js
|
315
|
-
- webpack/ForemanInventoryUpload/
|
316
|
-
- webpack/ForemanInventoryUpload/
|
346
|
+
- webpack/ForemanInventoryUpload/__tests__/ForemanInventoryHelpers.test.js
|
347
|
+
- webpack/ForemanInventoryUpload/__tests__/ForemanInventoryUpload.test.js
|
348
|
+
- webpack/ForemanInventoryUpload/__tests__/__snapshots__/ForemanInventoryHelpers.test.js.snap
|
349
|
+
- webpack/ForemanInventoryUpload/__tests__/__snapshots__/ForemanInventoryUpload.test.js.snap
|
317
350
|
- webpack/ForemanInventoryUpload/index.js
|
351
|
+
- webpack/ForemanRhCloudHelpers.js
|
352
|
+
- webpack/ForemanRhCloudReducers.js
|
353
|
+
- webpack/ForemanRhCloudSelectors.js
|
354
|
+
- webpack/ForemanRhCloudTestHelpers.js
|
318
355
|
- webpack/__mocks__/foremanReact/API.js
|
319
356
|
- webpack/__mocks__/foremanReact/common/I18n.js
|
320
357
|
- webpack/__mocks__/foremanReact/common/helpers.js
|
358
|
+
- webpack/__mocks__/foremanReact/components/Layout/LayoutConstants.js
|
359
|
+
- webpack/__tests__/ForemanRhCloudHelpers.test.js
|
360
|
+
- webpack/__tests__/ForemanRhCloudSelectors.test.js
|
361
|
+
- webpack/__tests__/ForemanRhCloudTestHelpers.test.js
|
362
|
+
- webpack/__tests__/__snapshots__/ForemanRhCloudHelpers.test.js.snap
|
363
|
+
- webpack/__tests__/__snapshots__/ForemanRhCloudSelectors.test.js.snap
|
364
|
+
- webpack/__tests__/__snapshots__/ForemanRhCloudTestHelpers.test.js.snap
|
321
365
|
- webpack/index.js
|
322
|
-
- webpack/stories/ForemanInventoryUploadReducers.js
|
323
|
-
- webpack/stories/configureStore.js
|
324
|
-
- webpack/stories/decorators/index.js
|
325
|
-
- webpack/stories/decorators/withCardsDecorator.js
|
326
|
-
- webpack/stories/index.js
|
327
|
-
- webpack/stories/index.scss
|
328
|
-
- webpack/test_setup.js
|
329
366
|
homepage: https://github.com/theforeman/foreman_rh_cloud
|
330
367
|
licenses:
|
331
368
|
- GPL-3.0
|
@@ -357,5 +394,6 @@ test_files:
|
|
357
394
|
- test/factories/inventory_upload_factories.rb
|
358
395
|
- test/unit/shell_process_job_test.rb
|
359
396
|
- test/unit/metadata_generator_test.rb
|
397
|
+
- test/unit/fact_helpers_test.rb
|
360
398
|
- test/unit/archived_report_generator_test.rb
|
361
399
|
- test/unit/slice_generator_test.rb
|
@@ -1,15 +0,0 @@
|
|
1
|
-
import { applyMiddleware, compose, createStore } from 'redux';
|
2
|
-
import thunkMiddleware from 'redux-thunk';
|
3
|
-
import rootReducer from './ForemanInventoryUploadReducers';
|
4
|
-
|
5
|
-
export default function configureStore(preloadedState) {
|
6
|
-
const middlewares = [thunkMiddleware];
|
7
|
-
const middlewareEnhancer = applyMiddleware(...middlewares);
|
8
|
-
|
9
|
-
const enhancers = [middlewareEnhancer];
|
10
|
-
const composedEnhancers = compose(...enhancers);
|
11
|
-
|
12
|
-
const store = createStore(rootReducer, preloadedState, composedEnhancers);
|
13
|
-
|
14
|
-
return store;
|
15
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from './withCardsDecorator';
|
@@ -1,14 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
|
3
|
-
export const withCardsDecorator = storyFn => (
|
4
|
-
<div
|
5
|
-
style={{
|
6
|
-
width: '100%',
|
7
|
-
height: '100vh',
|
8
|
-
backgroundColor: '#F5F5F5',
|
9
|
-
padding: '50px',
|
10
|
-
}}
|
11
|
-
>
|
12
|
-
<div style={{ width: '300px', margin: 'auto' }}>{storyFn()}</div>
|
13
|
-
</div>
|
14
|
-
);
|
data/webpack/stories/index.js
DELETED
data/webpack/stories/index.scss
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
$img-path: '~patternfly/dist/img/';
|
2
|
-
$font-path: '~patternfly/dist/fonts/';
|
3
|
-
$icon-font-path: '~patternfly/dist/fonts/';
|
4
|
-
|
5
|
-
@import '~patternfly/dist/sass/patternfly';
|
6
|
-
@import '~patternfly-react/dist/sass/patternfly-react';
|
7
|
-
@import '~font-awesome-sass/assets/stylesheets/_font-awesome';
|