foreman-tasks 12.1.1 → 12.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +2 -0
  3. data/app/views/foreman_tasks/api/tasks/show.json.rabl +1 -1
  4. data/foreman-tasks.gemspec +1 -3
  5. data/lib/foreman_tasks/version.rb +1 -1
  6. data/test/controllers/api/tasks_controller_test.rb +2 -2
  7. data/webpack/ForemanTasks/Components/TaskDetails/Components/Errors.js +25 -5
  8. data/webpack/ForemanTasks/Components/TaskDetails/Components/RunningSteps.js +12 -4
  9. data/webpack/ForemanTasks/Components/TaskDetails/Components/TaskInfo.js +217 -201
  10. data/webpack/ForemanTasks/Components/TaskDetails/Components/TaskSkeleton.js +30 -34
  11. data/webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/Dependencies.test.js +30 -30
  12. data/webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/Errors.test.js +50 -27
  13. data/webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/Raw.test.js +44 -22
  14. data/webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/RunningSteps.test.js +56 -24
  15. data/webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/Task.test.js +42 -22
  16. data/webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/TaskInfo.test.js +45 -54
  17. data/webpack/ForemanTasks/Components/TaskDetails/TaskDetails.js +65 -25
  18. data/webpack/ForemanTasks/Components/TaskDetails/__tests__/TaskDetails.test.js +37 -13
  19. data/webpack/ForemanTasks/Components/TaskDetails/__tests__/TaskDetailsActions.test.js +53 -8
  20. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/PausedTasksCard/PausedTasksCard.test.js +53 -7
  21. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/RunningTasksCard/RunningTasksCard.test.js +53 -7
  22. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/ScheduledTasksCard/ScheduledTasksCard.js +5 -4
  23. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/ScheduledTasksCard/ScheduledTasksCard.test.js +44 -14
  24. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/StoppedTasksCard/StoppedTasksCard.js +6 -5
  25. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutCard/TasksDonutCard.js +5 -4
  26. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutCard/TasksDonutCard.scss +3 -8
  27. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutCard/TasksDonutCard.test.js +75 -34
  28. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutChart/TasksDonutChart.test.js +57 -34
  29. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutChart/TasksDonutChartHelper.test.js +23 -9
  30. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/TasksCardsGrid.fixtures.js +14 -11
  31. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/TasksCardsGrid.js +19 -21
  32. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/TasksCardsGrid.test.js +63 -14
  33. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksTimeRow/Components/TimeDropDown/TimeDropDown.js +9 -17
  34. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksTimeRow/Components/TimeDropDown/TimeDropDown.test.js +49 -13
  35. metadata +2 -45
  36. data/webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/__snapshots__/Errors.test.js.snap +0 -77
  37. data/webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/__snapshots__/Raw.test.js.snap +0 -174
  38. data/webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/__snapshots__/RunningSteps.test.js.snap +0 -62
  39. data/webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/__snapshots__/Task.test.js.snap +0 -127
  40. data/webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/__snapshots__/TaskInfo.test.js.snap +0 -580
  41. data/webpack/ForemanTasks/Components/TaskDetails/__tests__/__snapshots__/TaskDetails.test.js.snap +0 -172
  42. data/webpack/ForemanTasks/Components/TaskDetails/__tests__/__snapshots__/TaskDetailsActions.test.js.snap +0 -52
  43. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/PausedTasksCard/__snapshots__/PausedTasksCard.test.js.snap +0 -38
  44. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/RunningTasksCard/__snapshots__/RunningTasksCard.test.js.snap +0 -38
  45. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/ScheduledTasksCard/__snapshots__/ScheduledTasksCard.test.js.snap +0 -97
  46. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutCard/__snapshots__/TasksDonutCard.test.js.snap +0 -183
  47. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutChart/__snapshots__/TasksDonutChart.test.js.snap +0 -302
  48. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutChart/__snapshots__/TasksDonutChartHelper.test.js.snap +0 -21
  49. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/__snapshots__/TasksCardsGrid.test.js.snap +0 -210
  50. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksTimeRow/Components/TimeDropDown/__snapshots__/TimeDropDown.test.js.snap +0 -85
@@ -99,15 +99,29 @@ describe('TasksDonutChartHelper', () => {
99
99
  });
100
100
 
101
101
  it('should create chart-data', () => {
102
- expect(
103
- createChartData({
104
- last: 1,
105
- older: 3,
106
- time: '24h',
107
- onLastClick: jest.fn(),
108
- onOlderClick: jest.fn(),
109
- })
110
- ).toMatchSnapshot();
102
+ const onLastClick = jest.fn();
103
+ const onOlderClick = jest.fn();
104
+ const result = createChartData({
105
+ last: 1,
106
+ older: 3,
107
+ time: '24h',
108
+ onLastClick,
109
+ onOlderClick,
110
+ });
111
+
112
+ expect(result.columns).toEqual([
113
+ [LAST, 1],
114
+ [OLDER, 3],
115
+ ]);
116
+ expect(result.names[LAST]).toMatch(/1/);
117
+ expect(result.names[LAST]).toMatch(/24h/);
118
+ expect(result.names[OLDER]).toMatch(/3/);
119
+ expect(result.names[OLDER]).toMatch(/24h/);
120
+
121
+ result.onItemClick(LAST);
122
+ expect(onLastClick).toHaveBeenCalledTimes(1);
123
+ result.onItemClick(OLDER);
124
+ expect(onOlderClick).toHaveBeenCalledTimes(1);
111
125
  });
112
126
 
113
127
  it('should update chart-title', () => {
@@ -8,18 +8,21 @@ export const MOCKED_DATA = {
8
8
  older: 5,
9
9
  },
10
10
  stopped: {
11
- error: {
12
- total: 8,
13
- last: 1,
14
- },
15
- warning: {
16
- total: 20,
17
- last: 2,
18
- },
19
- success: {
20
- total: 25,
21
- last: 3,
11
+ results: {
12
+ error: {
13
+ total: 8,
14
+ last: 1,
15
+ },
16
+ warning: {
17
+ total: 20,
18
+ last: 2,
19
+ },
20
+ success: {
21
+ total: 25,
22
+ last: 3,
23
+ },
22
24
  },
25
+ other: 0,
23
26
  },
24
27
  scheduled: 1,
25
28
  };
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import { CardGrid } from 'patternfly-react';
3
+ import { Grid, GridItem } from '@patternfly/react-core';
4
4
  import { noop } from 'foremanReact/common/helpers';
5
5
 
6
6
  import RunningTasksCard from './Components/RunningTasksCard/RunningTasksCard';
@@ -15,26 +15,24 @@ import {
15
15
  import { timePropType, queryPropType } from '../../TasksDashboardPropTypes';
16
16
 
17
17
  const TasksCardsGrid = ({ time, query, data, updateQuery }) => (
18
- <CardGrid matchHeight fluid>
19
- <CardGrid.Row>
20
- {[
21
- [TASKS_DASHBOARD_AVAILABLE_QUERY_STATES.RUNNING, RunningTasksCard],
22
- [TASKS_DASHBOARD_AVAILABLE_QUERY_STATES.PAUSED, PausedTasksCard],
23
- [TASKS_DASHBOARD_AVAILABLE_QUERY_STATES.STOPPED, StoppedTasksCard],
24
- [TASKS_DASHBOARD_AVAILABLE_QUERY_STATES.SCHEDULED, ScheduledTasksCard],
25
- ].map(([key, Card]) => (
26
- <CardGrid.Col key={key}>
27
- <Card
28
- matchHeight
29
- data={data[key]}
30
- query={query}
31
- time={time}
32
- updateQuery={updateQuery}
33
- />
34
- </CardGrid.Col>
35
- ))}
36
- </CardGrid.Row>
37
- </CardGrid>
18
+ <Grid hasGutter className="tasks-cards-grid">
19
+ {[
20
+ [TASKS_DASHBOARD_AVAILABLE_QUERY_STATES.RUNNING, RunningTasksCard],
21
+ [TASKS_DASHBOARD_AVAILABLE_QUERY_STATES.PAUSED, PausedTasksCard],
22
+ [TASKS_DASHBOARD_AVAILABLE_QUERY_STATES.STOPPED, StoppedTasksCard],
23
+ [TASKS_DASHBOARD_AVAILABLE_QUERY_STATES.SCHEDULED, ScheduledTasksCard],
24
+ ].map(([key, Card]) => (
25
+ <GridItem key={key} sm={12} xl={6} xl2={3}>
26
+ <Card
27
+ isFullHeight
28
+ data={data[key]}
29
+ query={query}
30
+ time={time}
31
+ updateQuery={updateQuery}
32
+ />
33
+ </GridItem>
34
+ ))}
35
+ </Grid>
38
36
  );
39
37
 
40
38
  TasksCardsGrid.propTypes = {
@@ -1,5 +1,6 @@
1
- import { testComponentSnapshotsWithFixtures } from '@theforeman/test';
2
-
1
+ import React from 'react';
2
+ import { render } from '@testing-library/react';
3
+ import '@testing-library/jest-dom';
3
4
  import {
4
5
  TASKS_DASHBOARD_AVAILABLE_TIMES,
5
6
  TASKS_DASHBOARD_AVAILABLE_QUERY_STATES,
@@ -7,15 +8,63 @@ import {
7
8
  import { MOCKED_DATA } from './TasksCardsGrid.fixtures';
8
9
  import TasksCardsGrid from './TasksCardsGrid';
9
10
 
10
- const fixtures = {
11
- 'render with minimal props': {},
12
- 'render with props': {
13
- time: TASKS_DASHBOARD_AVAILABLE_TIMES.WEEK,
14
- query: { state: TASKS_DASHBOARD_AVAILABLE_QUERY_STATES.RUNNING },
15
- data: MOCKED_DATA,
16
- updateQuery: jest.fn(),
17
- },
18
- };
19
-
20
- describe('TasksCardsGrid', () =>
21
- testComponentSnapshotsWithFixtures(TasksCardsGrid, fixtures));
11
+ jest.mock('./Components/TasksDonutChart/TasksDonutChart', () => {
12
+ const React = require('react');
13
+ const Stub = () => <div data-testid="tasks-donut-chart-stub" />;
14
+ Stub.displayName = 'TasksDonutChart';
15
+ return Stub;
16
+ });
17
+
18
+ describe('TasksCardsGrid layout', () => {
19
+ it('uses PatternFly Grid with gutter and four responsive columns', () => {
20
+ const { container } = render(<TasksCardsGrid />);
21
+ const grid = container.querySelector('.tasks-cards-grid');
22
+ expect(grid).toBeInTheDocument();
23
+
24
+ const items = Array.from(grid.children);
25
+ expect(items).toHaveLength(4);
26
+
27
+ items.forEach(item => {
28
+ expect(item).toHaveClass('pf-m-12-col-on-sm');
29
+ expect(item).toHaveClass('pf-m-6-col-on-xl');
30
+ expect(item).toHaveClass('pf-m-3-col-on-2xl');
31
+ });
32
+ });
33
+
34
+ it('renders each card full-height and reflects dashboard query and data', () => {
35
+ const updateQuery = jest.fn();
36
+ const query = { state: TASKS_DASHBOARD_AVAILABLE_QUERY_STATES.RUNNING };
37
+ const { container } = render(
38
+ <TasksCardsGrid
39
+ query={query}
40
+ updateQuery={updateQuery}
41
+ time={TASKS_DASHBOARD_AVAILABLE_TIMES.WEEK}
42
+ data={MOCKED_DATA}
43
+ />
44
+ );
45
+
46
+ const cardIds = [
47
+ 'running-tasks-card',
48
+ 'paused-tasks-card',
49
+ 'stopped-tasks-card',
50
+ 'scheduled-tasks-card',
51
+ ];
52
+
53
+ cardIds.forEach(id => {
54
+ const card = container.querySelector(`#${id}`);
55
+ expect(card).toBeInTheDocument();
56
+ expect(card).toHaveClass('pf-m-full-height');
57
+ });
58
+
59
+ expect(container.querySelector('#running-tasks-card')).toHaveClass(
60
+ 'selected-tasks-card'
61
+ );
62
+
63
+ const scheduledDataEl = container.querySelector(
64
+ '#scheduled-tasks-card .scheduled-data'
65
+ );
66
+ expect(scheduledDataEl?.textContent).toContain(
67
+ String(MOCKED_DATA[TASKS_DASHBOARD_AVAILABLE_QUERY_STATES.SCHEDULED])
68
+ );
69
+ });
70
+ });
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import { DropdownButton, MenuItem } from 'patternfly-react';
3
+ import { SimpleDropdown } from '@patternfly/react-templates';
4
4
  import { noop } from 'foremanReact/common/helpers';
5
5
 
6
6
  import { TASKS_DASHBOARD_AVAILABLE_TIMES } from '../../../../TasksDashboardConstants';
@@ -9,29 +9,21 @@ import { getQueryValueText } from '../../../../TasksDashboardHelper';
9
9
  const TimeDropDown = ({ id, className, selectedTime, onChange, ...props }) => {
10
10
  const availableTimes = Object.keys(TASKS_DASHBOARD_AVAILABLE_TIMES).map(
11
11
  key => ({
12
- key,
13
- text: getQueryValueText(key),
14
- active: key === selectedTime,
12
+ value: key,
13
+ content: getQueryValueText(key),
14
+ onClick: () => key === selectedTime || onChange(key),
15
15
  })
16
16
  );
17
17
 
18
18
  return (
19
- <DropdownButton
19
+ <SimpleDropdown
20
20
  id={id}
21
21
  className={className}
22
- title={getQueryValueText(selectedTime)}
22
+ toggleVariant="plainText"
23
+ toggleContent={getQueryValueText(selectedTime)}
24
+ initialItems={availableTimes}
23
25
  {...props}
24
- >
25
- {availableTimes.map(({ key, text, active }) => (
26
- <MenuItem
27
- key={key}
28
- active={active}
29
- onClick={() => active || onChange(key)}
30
- >
31
- {text}
32
- </MenuItem>
33
- ))}
34
- </DropdownButton>
26
+ />
35
27
  );
36
28
  };
37
29
 
@@ -1,19 +1,55 @@
1
- import { testComponentSnapshotsWithFixtures } from '@theforeman/test';
1
+ import React from 'react';
2
+ import { render, screen, fireEvent, waitFor, within } from '@testing-library/react';
3
+ import '@testing-library/jest-dom';
2
4
 
3
5
  import { TASKS_DASHBOARD_AVAILABLE_TIMES } from '../../../../TasksDashboardConstants';
4
6
  import TimeDropDown from './TimeDropDown';
5
7
 
6
- const createRequiredProps = () => ({ id: 'some-id' });
8
+ describe('TimeDropDown interactions', () => {
9
+ beforeEach(() => {
10
+ jest.clearAllMocks();
11
+ });
7
12
 
8
- const fixtures = {
9
- 'render with minimal props': { ...createRequiredProps() },
10
- 'render with all props': {
11
- ...createRequiredProps(),
12
- className: 'some-class',
13
- selectedTime: TASKS_DASHBOARD_AVAILABLE_TIMES.WEEK,
14
- onChange: jest.fn(),
15
- },
16
- };
13
+ it('calls onChange when a different time option is selected', async () => {
14
+ const onChange = jest.fn();
17
15
 
18
- describe('TimeDropDown', () =>
19
- testComponentSnapshotsWithFixtures(TimeDropDown, fixtures));
16
+ render(
17
+ <TimeDropDown
18
+ id="time-dropdown"
19
+ selectedTime={TASKS_DASHBOARD_AVAILABLE_TIMES.H24}
20
+ onChange={onChange}
21
+ />
22
+ );
23
+
24
+ fireEvent.click(screen.getByRole('button', { name: /24h/i }));
25
+
26
+ const menu = await screen.findByRole('menu');
27
+ fireEvent.click(within(menu).getByRole('menuitem', { name: /^12h$/i }));
28
+
29
+ await waitFor(() => {
30
+ expect(onChange).toHaveBeenCalledTimes(1);
31
+ expect(onChange).toHaveBeenCalledWith(
32
+ TASKS_DASHBOARD_AVAILABLE_TIMES.H12
33
+ );
34
+ });
35
+ });
36
+
37
+ it('does not call onChange when the already-selected option is clicked', async () => {
38
+ const onChange = jest.fn();
39
+
40
+ render(
41
+ <TimeDropDown
42
+ id="time-dropdown"
43
+ selectedTime={TASKS_DASHBOARD_AVAILABLE_TIMES.WEEK}
44
+ onChange={onChange}
45
+ />
46
+ );
47
+
48
+ fireEvent.click(screen.getByRole('button', { name: /^week$/i }));
49
+
50
+ const menu = await screen.findByRole('menu');
51
+ fireEvent.click(within(menu).getByRole('menuitem', { name: /^week$/i }));
52
+
53
+ expect(onChange).not.toHaveBeenCalled();
54
+ });
55
+ });
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman-tasks
3
3
  version: !ruby/object:Gem::Version
4
- version: 12.1.1
4
+ version: 12.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Nečas
@@ -65,20 +65,6 @@ dependencies:
65
65
  - - ">="
66
66
  - !ruby/object:Gem::Version
67
67
  version: '0'
68
- - !ruby/object:Gem::Dependency
69
- name: factory_bot_rails
70
- requirement: !ruby/object:Gem::Requirement
71
- requirements:
72
- - - "~>"
73
- - !ruby/object:Gem::Version
74
- version: 4.8.0
75
- type: :development
76
- prerelease: false
77
- version_requirements: !ruby/object:Gem::Requirement
78
- requirements:
79
- - - "~>"
80
- - !ruby/object:Gem::Version
81
- version: 4.8.0
82
68
  - !ruby/object:Gem::Dependency
83
69
  name: sqlite3
84
70
  requirement: !ruby/object:Gem::Requirement
@@ -93,20 +79,6 @@ dependencies:
93
79
  - - ">="
94
80
  - !ruby/object:Gem::Version
95
81
  version: '0'
96
- - !ruby/object:Gem::Dependency
97
- name: theforeman-rubocop
98
- requirement: !ruby/object:Gem::Requirement
99
- requirements:
100
- - - "~>"
101
- - !ruby/object:Gem::Version
102
- version: 0.1.0
103
- type: :development
104
- prerelease: false
105
- version_requirements: !ruby/object:Gem::Requirement
106
- requirements:
107
- - - "~>"
108
- - !ruby/object:Gem::Version
109
- version: 0.1.0
110
82
  description: |
111
83
  The goal of this plugin is to unify the way of showing task statuses across the Foreman instance.
112
84
  It defines Task model for keeping the information about the tasks and Lock for assigning the tasks
@@ -417,12 +389,7 @@ files:
417
389
  - webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/TaskButtons.test.js
418
390
  - webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/TaskHelper.test.js
419
391
  - webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/TaskInfo.test.js
420
- - webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/__snapshots__/Errors.test.js.snap
421
392
  - webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/__snapshots__/Locks.test.js.snap
422
- - webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/__snapshots__/Raw.test.js.snap
423
- - webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/__snapshots__/RunningSteps.test.js.snap
424
- - webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/__snapshots__/Task.test.js.snap
425
- - webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/__snapshots__/TaskInfo.test.js.snap
426
393
  - webpack/ForemanTasks/Components/TaskDetails/TaskDetails.js
427
394
  - webpack/ForemanTasks/Components/TaskDetails/TaskDetails.scss
428
395
  - webpack/ForemanTasks/Components/TaskDetails/TaskDetailsActions.js
@@ -432,19 +399,14 @@ files:
432
399
  - webpack/ForemanTasks/Components/TaskDetails/__tests__/TaskDetails.fixtures.js
433
400
  - webpack/ForemanTasks/Components/TaskDetails/__tests__/TaskDetails.test.js
434
401
  - webpack/ForemanTasks/Components/TaskDetails/__tests__/TaskDetailsActions.test.js
435
- - webpack/ForemanTasks/Components/TaskDetails/__tests__/__snapshots__/TaskDetails.test.js.snap
436
- - webpack/ForemanTasks/Components/TaskDetails/__tests__/__snapshots__/TaskDetailsActions.test.js.snap
437
402
  - webpack/ForemanTasks/Components/TaskDetails/index.js
438
403
  - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/PausedTasksCard/PausedTasksCard.js
439
404
  - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/PausedTasksCard/PausedTasksCard.test.js
440
- - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/PausedTasksCard/__snapshots__/PausedTasksCard.test.js.snap
441
405
  - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/RunningTasksCard/RunningTasksCard.js
442
406
  - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/RunningTasksCard/RunningTasksCard.test.js
443
- - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/RunningTasksCard/__snapshots__/RunningTasksCard.test.js.snap
444
407
  - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/ScheduledTasksCard/ScheduledTasksCard.js
445
408
  - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/ScheduledTasksCard/ScheduledTasksCard.scss
446
409
  - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/ScheduledTasksCard/ScheduledTasksCard.test.js
447
- - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/ScheduledTasksCard/__snapshots__/ScheduledTasksCard.test.js.snap
448
410
  - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/StoppedTasksCard/OtherInfo.js
449
411
  - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/StoppedTasksCard/OtherInfo.test.js
450
412
  - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/StoppedTasksCard/StoppedTasksCard.js
@@ -454,25 +416,20 @@ files:
454
416
  - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutCard/TasksDonutCard.js
455
417
  - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutCard/TasksDonutCard.scss
456
418
  - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutCard/TasksDonutCard.test.js
457
- - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutCard/__snapshots__/TasksDonutCard.test.js.snap
458
419
  - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutChart/TasksDonutChart.js
459
420
  - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutChart/TasksDonutChart.scss
460
421
  - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutChart/TasksDonutChart.test.js
461
422
  - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutChart/TasksDonutChartConstants.js
462
423
  - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutChart/TasksDonutChartHelper.js
463
424
  - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutChart/TasksDonutChartHelper.test.js
464
- - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutChart/__snapshots__/TasksDonutChart.test.js.snap
465
- - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutChart/__snapshots__/TasksDonutChartHelper.test.js.snap
466
425
  - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/TasksCardsGrid.fixtures.js
467
426
  - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/TasksCardsGrid.js
468
427
  - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/TasksCardsGrid.test.js
469
- - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/__snapshots__/TasksCardsGrid.test.js.snap
470
428
  - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksLabelsRow/TasksLabelsRow.js
471
429
  - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksLabelsRow/TasksLabelsRow.scss
472
430
  - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksLabelsRow/TasksLabelsRow.test.js
473
431
  - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksTimeRow/Components/TimeDropDown/TimeDropDown.js
474
432
  - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksTimeRow/Components/TimeDropDown/TimeDropDown.test.js
475
- - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksTimeRow/Components/TimeDropDown/__snapshots__/TimeDropDown.test.js.snap
476
433
  - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksTimeRow/TasksTimeRow.js
477
434
  - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksTimeRow/TasksTimeRow.scss
478
435
  - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksTimeRow/TasksTimeRow.test.js
@@ -553,7 +510,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
553
510
  - !ruby/object:Gem::Version
554
511
  version: '0'
555
512
  requirements: []
556
- rubygems_version: 4.0.6
513
+ rubygems_version: 4.0.10
557
514
  specification_version: 4
558
515
  summary: Foreman plugin for showing tasks information for resources and users
559
516
  test_files:
@@ -1,77 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`Errors rendering render with Props 1`] = `
4
- <div>
5
- <Alert
6
- className=""
7
- key="0"
8
- onDismiss={null}
9
- type="error"
10
- >
11
- <span>
12
- Action
13
- :
14
- </span>
15
- <span>
16
- <pre>
17
- Actions::Katello::EventQueue::Monitor
18
- </pre>
19
- </span>
20
- <span>
21
- Input
22
- :
23
- </span>
24
- <span>
25
- <pre>
26
- {"locale"=&gt;"en",
27
- "current_request_id"=&gt;nil,
28
- "current_user_id"=&gt;4,
29
- "current_organization_id"=&gt;nil,
30
- "current_location_id"=&gt;nil}
31
-
32
- </pre>
33
- </span>
34
- <span>
35
- Output
36
- :
37
- </span>
38
- <span>
39
- <pre>
40
- {}
41
-
42
- </pre>
43
- </span>
44
- <span>
45
- Exception
46
- :
47
- </span>
48
- <span>
49
- <pre>
50
- RuntimeError
51
- :
52
- Action Actions::Katello::EventQueue::Monitor is already active
53
- </pre>
54
- </span>
55
- <span>
56
- Backtrace
57
- :
58
- </span>
59
- <span>
60
- <pre>
61
- /home/vagrant/.gem/ruby/gems/dynflow-1.2.3/lib/dynflow/action/singleton.rb:15:in \`rescue in singleton_lock!'
62
- /home/vagrant/.gem/ruby/gems/dynflow-1.2.3/lib/dynflow/action/singleton.rb:12:in \`singleton_lock!'
63
- </pre>
64
- </span>
65
- </Alert>
66
- </div>
67
- `;
68
-
69
- exports[`Errors rendering render without Props 1`] = `
70
- <Alert
71
- className=""
72
- onDismiss={null}
73
- type="success"
74
- >
75
- No errors
76
- </Alert>
77
- `;