foreman-tasks 0.16.0 → 0.16.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. checksums.yaml +4 -4
  2. data/.babelrc +4 -1
  3. data/.eslintrc +4 -13
  4. data/app/assets/stylesheets/foreman_tasks/application.css.scss +0 -37
  5. data/app/controllers/foreman_tasks/api/tasks_controller.rb +9 -5
  6. data/app/controllers/foreman_tasks/tasks_controller.rb +23 -19
  7. data/app/helpers/foreman_tasks/foreman_tasks_helper.rb +28 -29
  8. data/app/lib/actions/bulk_action.rb +1 -1
  9. data/app/models/foreman_tasks/task.rb +1 -1
  10. data/app/models/foreman_tasks/task/dynflow_task.rb +30 -0
  11. data/app/services/foreman_tasks/troubleshooting_help_generator.rb +4 -0
  12. data/app/views/foreman_tasks/api/tasks/details.json.rabl +18 -0
  13. data/app/views/foreman_tasks/layouts/react.html.erb +1 -1
  14. data/app/views/foreman_tasks/tasks/index.html.erb +3 -0
  15. data/app/views/foreman_tasks/tasks/show.html.erb +10 -134
  16. data/config/routes.rb +3 -0
  17. data/lib/foreman_tasks/engine.rb +1 -1
  18. data/lib/foreman_tasks/tasks/export_tasks.rake +1 -2
  19. data/lib/foreman_tasks/version.rb +1 -1
  20. data/package.json +6 -20
  21. data/test/controllers/tasks_controller_test.rb +11 -0
  22. data/test/helpers/foreman_tasks/foreman_tasks_helper_test.rb +39 -0
  23. data/test/unit/actions/bulk_action_test.rb +2 -0
  24. data/test/unit/task_test.rb +4 -0
  25. data/webpack/ForemanTasks/Components/TaskDetails/Components/Errors.js +60 -0
  26. data/webpack/ForemanTasks/Components/TaskDetails/Components/Locks.js +46 -0
  27. data/webpack/ForemanTasks/Components/TaskDetails/Components/Raw.js +73 -0
  28. data/webpack/ForemanTasks/Components/TaskDetails/Components/RunningSteps.js +55 -0
  29. data/webpack/ForemanTasks/Components/TaskDetails/Components/Task.js +202 -0
  30. data/webpack/ForemanTasks/Components/TaskDetails/Components/TaskHelper.js +38 -0
  31. data/webpack/ForemanTasks/Components/TaskDetails/Components/TaskInfo.js +238 -0
  32. data/webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/Errors.test.js +36 -0
  33. data/webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/Locks.test.js +28 -0
  34. data/webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/Raw.test.js +27 -0
  35. data/webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/RunningSteps.test.js +29 -0
  36. data/webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/Task.test.js +18 -0
  37. data/webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/TaskHelper.test.js +77 -0
  38. data/webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/TaskInfo.test.js +60 -0
  39. data/webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/__snapshots__/Errors.test.js.snap +77 -0
  40. data/webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/__snapshots__/Locks.test.js.snap +108 -0
  41. data/webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/__snapshots__/Raw.test.js.snap +174 -0
  42. data/webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/__snapshots__/RunningSteps.test.js.snap +62 -0
  43. data/webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/__snapshots__/Task.test.js.snap +282 -0
  44. data/webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/__snapshots__/TaskHelper.test.js.snap +37 -0
  45. data/webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/__snapshots__/TaskInfo.test.js.snap +568 -0
  46. data/webpack/ForemanTasks/Components/TaskDetails/TaskDetails.js +87 -0
  47. data/webpack/ForemanTasks/Components/TaskDetails/TaskDetails.scss +63 -0
  48. data/webpack/ForemanTasks/Components/TaskDetails/TaskDetails.stories.js +5 -0
  49. data/webpack/ForemanTasks/Components/TaskDetails/TaskDetailsActions.js +109 -0
  50. data/webpack/ForemanTasks/Components/TaskDetails/TaskDetailsConstants.js +18 -0
  51. data/webpack/ForemanTasks/Components/TaskDetails/TaskDetailsReducer.js +44 -0
  52. data/webpack/ForemanTasks/Components/TaskDetails/TaskDetailsSelectors.js +83 -0
  53. data/webpack/ForemanTasks/Components/TaskDetails/TasksDetailsHelper.js +1 -0
  54. data/webpack/ForemanTasks/Components/TaskDetails/__tests__/TaskDetails.test.js +12 -0
  55. data/webpack/ForemanTasks/Components/TaskDetails/__tests__/TaskDetailsActions.test.js +20 -0
  56. data/webpack/ForemanTasks/Components/TaskDetails/__tests__/TaskDetailsReducer.test.js +33 -0
  57. data/webpack/ForemanTasks/Components/TaskDetails/__tests__/__snapshots__/TaskDetails.test.js.snap +97 -0
  58. data/webpack/ForemanTasks/Components/TaskDetails/__tests__/__snapshots__/TaskDetailsActions.test.js.snap +43 -0
  59. data/webpack/ForemanTasks/Components/TaskDetails/__tests__/__snapshots__/TaskDetailsReducer.test.js.snap +26 -0
  60. data/webpack/ForemanTasks/Components/TaskDetails/__tests__/__snapshots__/integration.test.js.snap +122 -0
  61. data/webpack/ForemanTasks/Components/TaskDetails/__tests__/integration.test.js +63 -0
  62. data/webpack/ForemanTasks/Components/TaskDetails/index.js +77 -0
  63. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/PausedTasksCard/PausedTasksCard.js +6 -1
  64. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/PausedTasksCard/__snapshots__/PausedTasksCard.test.js.snap +2 -0
  65. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/RunningTasksCard/RunningTasksCard.js +6 -1
  66. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/RunningTasksCard/__snapshots__/RunningTasksCard.test.js.snap +2 -0
  67. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/ScheduledTasksCard/ScheduledTasksCard.js +3 -6
  68. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/ScheduledTasksCard/ScheduledTasksCard.scss +0 -3
  69. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/ScheduledTasksCard/__snapshots__/ScheduledTasksCard.test.js.snap +3 -0
  70. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/StoppedTasksCard/StoppedTasksCard.js +2 -0
  71. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/StoppedTasksCard/StoppedTasksCard.scss +0 -4
  72. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/StoppedTasksCard/StoppedTasksCardHelper.js +3 -3
  73. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/StoppedTasksCard/__snapshots__/StoppedTasksCard.test.js.snap +495 -54
  74. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutCard/TasksDonutCard.js +1 -0
  75. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutCard/TasksDonutCard.scss +6 -0
  76. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutChart/TasksDonutChart.scss +0 -3
  77. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksLabelsRow/TasksLabelsRow.scss +1 -1
  78. data/webpack/ForemanTasks/Components/TasksDashboard/TasksDashboard.scss +2 -2
  79. data/webpack/ForemanTasks/Components/common/ClickConfirmation/index.js +83 -0
  80. data/webpack/ForemanTasks/ForemanTasksReducers.js +2 -0
  81. data/webpack/__mocks__/foremanReact/common/I18n.js +2 -0
  82. data/webpack/__mocks__/foremanReact/components/Layout/LayoutActions.js +2 -0
  83. data/webpack/index.js +5 -0
  84. metadata +46 -9
  85. data/app/views/foreman_tasks/tasks/_details.html.erb +0 -195
  86. data/app/views/foreman_tasks/tasks/_errors.html.erb +0 -42
  87. data/app/views/foreman_tasks/tasks/_locks.html.erb +0 -19
  88. data/app/views/foreman_tasks/tasks/_raw.html.erb +0 -28
  89. data/app/views/foreman_tasks/tasks/_running_steps.html.erb +0 -40
@@ -0,0 +1,282 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`Task rendering render with some Props 1`] = `
4
+ <Fragment>
5
+ <ClickConfirmation
6
+ body="This will unlock the resources that the task is running against. Please note that this might lead to inconsistent state and should be used with caution, after making sure that the task can't be resumed."
7
+ closeModal={[Function]}
8
+ confirmAction="Unlock"
9
+ confirmType="warning"
10
+ confirmationMessage="I understand that this may cause harm and have working database backups of all backend services."
11
+ path="/foreman_tasks/tasks/test/unlock"
12
+ showModal={false}
13
+ title="Unlock"
14
+ />
15
+ <ClickConfirmation
16
+ body="Resources will be unlocked and will not prevent other tasks from being run. As the task might be still running, it should be avoided to use this unless you are really sure the task got stuck"
17
+ closeModal={[Function]}
18
+ confirmAction="Force Unlock"
19
+ confirmType="danger"
20
+ confirmationMessage="I understand that this may cause harm and have working database backups of all backend services."
21
+ path="/foreman_tasks/tasks/test/force_unlock"
22
+ showModal={false}
23
+ title="Force Unlock"
24
+ />
25
+ <Grid
26
+ bsClass="container"
27
+ componentClass="div"
28
+ fluid={false}
29
+ >
30
+ <Row
31
+ bsClass="row"
32
+ componentClass="div"
33
+ >
34
+ <Col
35
+ bsClass="col"
36
+ componentClass="div"
37
+ xs={12}
38
+ >
39
+ <Button
40
+ active={false}
41
+ block={false}
42
+ bsClass="btn"
43
+ bsSize="small"
44
+ bsStyle="default"
45
+ className="reload-button"
46
+ disabled={false}
47
+ hidden={false}
48
+ onClick={[Function]}
49
+ >
50
+ <span
51
+ className="glyphicon glyphicon-refresh "
52
+ />
53
+ Start auto-reloading
54
+ </Button>
55
+ <Button
56
+ active={false}
57
+ block={false}
58
+ bsClass="btn"
59
+ bsSize="small"
60
+ bsStyle="default"
61
+ disabled={false}
62
+ href="/foreman_tasks/dynflow/"
63
+ >
64
+ Dynflow console
65
+ </Button>
66
+ <Button
67
+ active={false}
68
+ block={false}
69
+ bsClass="btn"
70
+ bsSize="small"
71
+ bsStyle="primary"
72
+ data-method="post"
73
+ disabled={true}
74
+ href="/foreman_tasks/tasks/test/resume"
75
+ >
76
+ Resume
77
+ </Button>
78
+ <Button
79
+ active={false}
80
+ block={false}
81
+ bsClass="btn"
82
+ bsSize="small"
83
+ bsStyle="default"
84
+ data-method="post"
85
+ disabled={true}
86
+ href="/foreman_tasks/tasks/test/cancel"
87
+ >
88
+ Cancel
89
+ </Button>
90
+ <Button
91
+ active={false}
92
+ block={false}
93
+ bsClass="btn"
94
+ bsSize="small"
95
+ bsStyle="default"
96
+ disabled={false}
97
+ href="/foreman_tasks/tasks/test/sub_tasks"
98
+ >
99
+ Sub tasks
100
+ </Button>
101
+ <Button
102
+ active={false}
103
+ block={false}
104
+ bsClass="btn"
105
+ bsSize="small"
106
+ bsStyle="default"
107
+ disabled={false}
108
+ onClick={[Function]}
109
+ >
110
+ Unlock
111
+ </Button>
112
+ <Button
113
+ active={false}
114
+ block={false}
115
+ bsClass="btn"
116
+ bsSize="small"
117
+ bsStyle="default"
118
+ disabled={false}
119
+ onClick={[Function]}
120
+ >
121
+ Force Unlock
122
+ </Button>
123
+ </Col>
124
+ </Row>
125
+ <TaskInfo
126
+ action=""
127
+ allowDangerousActions={true}
128
+ cancellable={false}
129
+ endedAt=""
130
+ error={Array []}
131
+ externalId=""
132
+ hasSubTasks={true}
133
+ help=""
134
+ id="test"
135
+ output=""
136
+ parentTask=""
137
+ progress={0}
138
+ refetchTaskDetails={[Function]}
139
+ result="error"
140
+ resumable={false}
141
+ showForceUnlockModal={false}
142
+ showUnlockModal={false}
143
+ startAt=""
144
+ startBefore=""
145
+ startedAt=""
146
+ state="paused"
147
+ taskReload={false}
148
+ taskReloadStart={[Function]}
149
+ taskReloadStop={[Function]}
150
+ timeoutId={null}
151
+ toggleForceUnlockModal={[Function]}
152
+ toggleUnlockModal={[Function]}
153
+ username=""
154
+ usernamePath=""
155
+ />
156
+ </Grid>
157
+ </Fragment>
158
+ `;
159
+
160
+ exports[`Task rendering render without Props 1`] = `
161
+ <Fragment>
162
+ <ClickConfirmation
163
+ body="This will unlock the resources that the task is running against. Please note that this might lead to inconsistent state and should be used with caution, after making sure that the task can't be resumed."
164
+ closeModal={[Function]}
165
+ confirmAction="Unlock"
166
+ confirmType="warning"
167
+ confirmationMessage="I understand that this may cause harm and have working database backups of all backend services."
168
+ path="/foreman_tasks/tasks/test/unlock"
169
+ showModal={false}
170
+ title="Unlock"
171
+ />
172
+ <ClickConfirmation
173
+ body="Resources will be unlocked and will not prevent other tasks from being run. As the task might be still running, it should be avoided to use this unless you are really sure the task got stuck"
174
+ closeModal={[Function]}
175
+ confirmAction="Force Unlock"
176
+ confirmType="danger"
177
+ confirmationMessage="I understand that this may cause harm and have working database backups of all backend services."
178
+ path="/foreman_tasks/tasks/test/force_unlock"
179
+ showModal={false}
180
+ title="Force Unlock"
181
+ />
182
+ <Grid
183
+ bsClass="container"
184
+ componentClass="div"
185
+ fluid={false}
186
+ >
187
+ <Row
188
+ bsClass="row"
189
+ componentClass="div"
190
+ >
191
+ <Col
192
+ bsClass="col"
193
+ componentClass="div"
194
+ xs={12}
195
+ >
196
+ <Button
197
+ active={false}
198
+ block={false}
199
+ bsClass="btn"
200
+ bsSize="small"
201
+ bsStyle="default"
202
+ className="reload-button"
203
+ disabled={false}
204
+ hidden={true}
205
+ onClick={[Function]}
206
+ >
207
+ <span
208
+ className="glyphicon glyphicon-refresh "
209
+ />
210
+ Start auto-reloading
211
+ </Button>
212
+ <Button
213
+ active={false}
214
+ block={false}
215
+ bsClass="btn"
216
+ bsSize="small"
217
+ bsStyle="default"
218
+ disabled={false}
219
+ href="/foreman_tasks/dynflow/"
220
+ >
221
+ Dynflow console
222
+ </Button>
223
+ <Button
224
+ active={false}
225
+ block={false}
226
+ bsClass="btn"
227
+ bsSize="small"
228
+ bsStyle="primary"
229
+ data-method="post"
230
+ disabled={true}
231
+ href="/foreman_tasks/tasks/test/resume"
232
+ >
233
+ Resume
234
+ </Button>
235
+ <Button
236
+ active={false}
237
+ block={false}
238
+ bsClass="btn"
239
+ bsSize="small"
240
+ bsStyle="default"
241
+ data-method="post"
242
+ disabled={true}
243
+ href="/foreman_tasks/tasks/test/cancel"
244
+ >
245
+ Cancel
246
+ </Button>
247
+ </Col>
248
+ </Row>
249
+ <TaskInfo
250
+ action=""
251
+ allowDangerousActions={false}
252
+ cancellable={false}
253
+ endedAt=""
254
+ error={Array []}
255
+ externalId=""
256
+ hasSubTasks={false}
257
+ help=""
258
+ id="test"
259
+ output=""
260
+ parentTask=""
261
+ progress={0}
262
+ refetchTaskDetails={[Function]}
263
+ result="error"
264
+ resumable={false}
265
+ showForceUnlockModal={false}
266
+ showUnlockModal={false}
267
+ startAt=""
268
+ startBefore=""
269
+ startedAt=""
270
+ state=""
271
+ taskReload={false}
272
+ taskReloadStart={[Function]}
273
+ taskReloadStop={[Function]}
274
+ timeoutId={null}
275
+ toggleForceUnlockModal={[Function]}
276
+ toggleUnlockModal={[Function]}
277
+ username=""
278
+ usernamePath=""
279
+ />
280
+ </Grid>
281
+ </Fragment>
282
+ `;
@@ -0,0 +1,37 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`timeInWords should work for future days 1`] = `
4
+ <span>
5
+ in 5 days
6
+ </span>
7
+ `;
8
+
9
+ exports[`timeInWords should work for future hours 1`] = `
10
+ <span>
11
+ in 5 hours
12
+ </span>
13
+ `;
14
+
15
+ exports[`timeInWords should work for future minutes 1`] = `
16
+ <span>
17
+ in 5 minutes
18
+ </span>
19
+ `;
20
+
21
+ exports[`timeInWords should work for past days 1`] = `
22
+ <span>
23
+ 5 days ago
24
+ </span>
25
+ `;
26
+
27
+ exports[`timeInWords should work for past hours 1`] = `
28
+ <span>
29
+ 5 hours ago
30
+ </span>
31
+ `;
32
+
33
+ exports[`timeInWords should work for past minutes 1`] = `
34
+ <span>
35
+ 5 minutes ago
36
+ </span>
37
+ `;
@@ -0,0 +1,568 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`TaskInfo rendering render with Props 1`] = `
4
+ <Grid
5
+ bsClass="container"
6
+ componentClass="div"
7
+ fluid={false}
8
+ >
9
+ <br />
10
+ <Row
11
+ bsClass="row"
12
+ componentClass="div"
13
+ key="0"
14
+ >
15
+ <Col
16
+ bsClass="col"
17
+ componentClass="div"
18
+ md={2}
19
+ sm={6}
20
+ >
21
+ <span
22
+ className="list-group-item-heading"
23
+ >
24
+ Name
25
+ :
26
+ </span>
27
+ </Col>
28
+ <Col
29
+ bsClass="col"
30
+ componentClass="div"
31
+ md={5}
32
+ sm={6}
33
+ >
34
+ <span>
35
+ <EllipisWithTooltip>
36
+ Monitor Event Queue
37
+ </EllipisWithTooltip>
38
+ </span>
39
+ </Col>
40
+ <Col
41
+ bsClass="col"
42
+ componentClass="div"
43
+ md={2}
44
+ sm={6}
45
+ >
46
+ <span
47
+ className="list-group-item-heading"
48
+ >
49
+ Start at
50
+ :
51
+ </span>
52
+ </Col>
53
+ <Col
54
+ bsClass="col"
55
+ componentClass="div"
56
+ md={3}
57
+ sm={6}
58
+ >
59
+ <FormattedRelative
60
+ updateInterval={10000}
61
+ value={2019-06-17T13:04:09.000Z}
62
+ />
63
+ </Col>
64
+ </Row>
65
+ <Row
66
+ bsClass="row"
67
+ componentClass="div"
68
+ key="1"
69
+ >
70
+ <Col
71
+ bsClass="col"
72
+ componentClass="div"
73
+ md={2}
74
+ sm={6}
75
+ >
76
+ <span
77
+ className="list-group-item-heading"
78
+ >
79
+ Result
80
+ :
81
+ </span>
82
+ </Col>
83
+ <Col
84
+ bsClass="col"
85
+ componentClass="div"
86
+ md={5}
87
+ sm={6}
88
+ >
89
+ <span>
90
+ <i
91
+ className="task-status pficon-help"
92
+ />
93
+ <span>
94
+
95
+ error
96
+ </span>
97
+ </span>
98
+ </Col>
99
+ <Col
100
+ bsClass="col"
101
+ componentClass="div"
102
+ md={2}
103
+ sm={6}
104
+ >
105
+ <span
106
+ className="list-group-item-heading"
107
+ >
108
+ Started at
109
+ :
110
+ </span>
111
+ </Col>
112
+ <Col
113
+ bsClass="col"
114
+ componentClass="div"
115
+ md={3}
116
+ sm={6}
117
+ >
118
+ <FormattedRelative
119
+ updateInterval={10000}
120
+ value={2019-06-17T13:04:09.000Z}
121
+ />
122
+ </Col>
123
+ </Row>
124
+ <Row
125
+ bsClass="row"
126
+ componentClass="div"
127
+ key="2"
128
+ >
129
+ <Col
130
+ bsClass="col"
131
+ componentClass="div"
132
+ md={2}
133
+ sm={6}
134
+ >
135
+ <span
136
+ className="list-group-item-heading"
137
+ >
138
+ Triggered by
139
+ :
140
+ </span>
141
+ </Col>
142
+ <Col
143
+ bsClass="col"
144
+ componentClass="div"
145
+ md={5}
146
+ sm={6}
147
+ >
148
+ <span>
149
+ admin
150
+ </span>
151
+ </Col>
152
+ <Col
153
+ bsClass="col"
154
+ componentClass="div"
155
+ md={2}
156
+ sm={6}
157
+ >
158
+ <span
159
+ className="list-group-item-heading"
160
+ >
161
+ Ended at
162
+ :
163
+ </span>
164
+ </Col>
165
+ <Col
166
+ bsClass="col"
167
+ componentClass="div"
168
+ md={3}
169
+ sm={6}
170
+ >
171
+ N/A
172
+ </Col>
173
+ </Row>
174
+ <Row
175
+ bsClass="row"
176
+ componentClass="div"
177
+ key="3"
178
+ >
179
+ <Col
180
+ bsClass="col"
181
+ componentClass="div"
182
+ md={2}
183
+ sm={6}
184
+ >
185
+ <span
186
+ className="list-group-item-heading"
187
+ >
188
+ Execution type
189
+ :
190
+ </span>
191
+ </Col>
192
+ <Col
193
+ bsClass="col"
194
+ componentClass="div"
195
+ md={5}
196
+ sm={6}
197
+ >
198
+ <span>
199
+ Immediate
200
+ </span>
201
+ </Col>
202
+ <Col
203
+ bsClass="col"
204
+ componentClass="div"
205
+ md={2}
206
+ sm={6}
207
+ >
208
+ <span
209
+ className="list-group-item-heading"
210
+ >
211
+ Start before
212
+ :
213
+ </span>
214
+ </Col>
215
+ <Col
216
+ bsClass="col"
217
+ componentClass="div"
218
+ md={3}
219
+ sm={6}
220
+ >
221
+ -
222
+ </Col>
223
+ </Row>
224
+ <br />
225
+ <Row
226
+ bsClass="row"
227
+ componentClass="div"
228
+ >
229
+ <Col
230
+ bsClass="col"
231
+ componentClass="div"
232
+ xs={6}
233
+ >
234
+ <div
235
+ className="progress-description"
236
+ >
237
+ <span
238
+ className="list-group-item-heading"
239
+ >
240
+ State
241
+ :
242
+ </span>
243
+ paused
244
+ </div>
245
+ </Col>
246
+ <Col
247
+ bsClass="col"
248
+ className="progress-label-top-right"
249
+ componentClass="div"
250
+ xs={3}
251
+ xsOffset={3}
252
+ >
253
+ <span>
254
+ 0.5% Complete
255
+ </span>
256
+ </Col>
257
+ <Col
258
+ bsClass="col"
259
+ componentClass="div"
260
+ xs={12}
261
+ >
262
+ <ProgressBar
263
+ active={false}
264
+ bsClass="progress-bar"
265
+ bsStyle="danger"
266
+ isChild={false}
267
+ max={100}
268
+ min={0}
269
+ now={0.5}
270
+ srOnly={false}
271
+ striped={true}
272
+ />
273
+ </Col>
274
+ </Row>
275
+ <br />
276
+ <Row
277
+ bsClass="row"
278
+ componentClass="div"
279
+ >
280
+ <Col
281
+ bsClass="col"
282
+ componentClass="div"
283
+ xs={12}
284
+ >
285
+ <p>
286
+ <span>
287
+ <b>
288
+ Troubleshooting
289
+ </b>
290
+ </span>
291
+ </p>
292
+ <p>
293
+ A paused task represents a process that has not finished properly. Any task in paused state can lead to potential inconsistency and needs to be resolved.
294
+ <br />
295
+ The recommended approach is to investigate the error messages below and in 'errors' tab, address the primary cause of the issue and resume the task.
296
+ <br />
297
+ </p>
298
+ </Col>
299
+ </Row>
300
+ </Grid>
301
+ `;
302
+
303
+ exports[`TaskInfo rendering render without Props 1`] = `
304
+ <Grid
305
+ bsClass="container"
306
+ componentClass="div"
307
+ fluid={false}
308
+ >
309
+ <br />
310
+ <Row
311
+ bsClass="row"
312
+ componentClass="div"
313
+ key="0"
314
+ >
315
+ <Col
316
+ bsClass="col"
317
+ componentClass="div"
318
+ md={2}
319
+ sm={6}
320
+ >
321
+ <span
322
+ className="list-group-item-heading"
323
+ >
324
+ Name
325
+ :
326
+ </span>
327
+ </Col>
328
+ <Col
329
+ bsClass="col"
330
+ componentClass="div"
331
+ md={5}
332
+ sm={6}
333
+ >
334
+ <span>
335
+ <EllipisWithTooltip>
336
+ N/A
337
+ </EllipisWithTooltip>
338
+ </span>
339
+ </Col>
340
+ <Col
341
+ bsClass="col"
342
+ componentClass="div"
343
+ md={2}
344
+ sm={6}
345
+ >
346
+ <span
347
+ className="list-group-item-heading"
348
+ >
349
+ Start at
350
+ :
351
+ </span>
352
+ </Col>
353
+ <Col
354
+ bsClass="col"
355
+ componentClass="div"
356
+ md={3}
357
+ sm={6}
358
+ >
359
+ N/A
360
+ </Col>
361
+ </Row>
362
+ <Row
363
+ bsClass="row"
364
+ componentClass="div"
365
+ key="1"
366
+ >
367
+ <Col
368
+ bsClass="col"
369
+ componentClass="div"
370
+ md={2}
371
+ sm={6}
372
+ >
373
+ <span
374
+ className="list-group-item-heading"
375
+ >
376
+ Result
377
+ :
378
+ </span>
379
+ </Col>
380
+ <Col
381
+ bsClass="col"
382
+ componentClass="div"
383
+ md={5}
384
+ sm={6}
385
+ >
386
+ <span>
387
+ <i
388
+ className="task-status pficon-help"
389
+ />
390
+ <span>
391
+
392
+ error
393
+ </span>
394
+ </span>
395
+ </Col>
396
+ <Col
397
+ bsClass="col"
398
+ componentClass="div"
399
+ md={2}
400
+ sm={6}
401
+ >
402
+ <span
403
+ className="list-group-item-heading"
404
+ >
405
+ Started at
406
+ :
407
+ </span>
408
+ </Col>
409
+ <Col
410
+ bsClass="col"
411
+ componentClass="div"
412
+ md={3}
413
+ sm={6}
414
+ >
415
+ N/A
416
+ </Col>
417
+ </Row>
418
+ <Row
419
+ bsClass="row"
420
+ componentClass="div"
421
+ key="2"
422
+ >
423
+ <Col
424
+ bsClass="col"
425
+ componentClass="div"
426
+ md={2}
427
+ sm={6}
428
+ >
429
+ <span
430
+ className="list-group-item-heading"
431
+ >
432
+ Triggered by
433
+ :
434
+ </span>
435
+ </Col>
436
+ <Col
437
+ bsClass="col"
438
+ componentClass="div"
439
+ md={5}
440
+ sm={6}
441
+ >
442
+ <span />
443
+ </Col>
444
+ <Col
445
+ bsClass="col"
446
+ componentClass="div"
447
+ md={2}
448
+ sm={6}
449
+ >
450
+ <span
451
+ className="list-group-item-heading"
452
+ >
453
+ Ended at
454
+ :
455
+ </span>
456
+ </Col>
457
+ <Col
458
+ bsClass="col"
459
+ componentClass="div"
460
+ md={3}
461
+ sm={6}
462
+ >
463
+ N/A
464
+ </Col>
465
+ </Row>
466
+ <Row
467
+ bsClass="row"
468
+ componentClass="div"
469
+ key="3"
470
+ >
471
+ <Col
472
+ bsClass="col"
473
+ componentClass="div"
474
+ md={2}
475
+ sm={6}
476
+ >
477
+ <span
478
+ className="list-group-item-heading"
479
+ >
480
+ Execution type
481
+ :
482
+ </span>
483
+ </Col>
484
+ <Col
485
+ bsClass="col"
486
+ componentClass="div"
487
+ md={5}
488
+ sm={6}
489
+ >
490
+ <span>
491
+ Delayed
492
+ </span>
493
+ </Col>
494
+ <Col
495
+ bsClass="col"
496
+ componentClass="div"
497
+ md={2}
498
+ sm={6}
499
+ >
500
+ <span
501
+ className="list-group-item-heading"
502
+ >
503
+ Start before
504
+ :
505
+ </span>
506
+ </Col>
507
+ <Col
508
+ bsClass="col"
509
+ componentClass="div"
510
+ md={3}
511
+ sm={6}
512
+ >
513
+ -
514
+ </Col>
515
+ </Row>
516
+ <br />
517
+ <Row
518
+ bsClass="row"
519
+ componentClass="div"
520
+ >
521
+ <Col
522
+ bsClass="col"
523
+ componentClass="div"
524
+ xs={6}
525
+ >
526
+ <div
527
+ className="progress-description"
528
+ >
529
+ <span
530
+ className="list-group-item-heading"
531
+ >
532
+ State
533
+ :
534
+ </span>
535
+ </div>
536
+ </Col>
537
+ <Col
538
+ bsClass="col"
539
+ className="progress-label-top-right"
540
+ componentClass="div"
541
+ xs={3}
542
+ xsOffset={3}
543
+ >
544
+ <span>
545
+ 0% Complete
546
+ </span>
547
+ </Col>
548
+ <Col
549
+ bsClass="col"
550
+ componentClass="div"
551
+ xs={12}
552
+ >
553
+ <ProgressBar
554
+ active={false}
555
+ bsClass="progress-bar"
556
+ bsStyle="danger"
557
+ isChild={false}
558
+ max={100}
559
+ min={0}
560
+ now={0}
561
+ srOnly={false}
562
+ striped={true}
563
+ />
564
+ </Col>
565
+ </Row>
566
+ <br />
567
+ </Grid>
568
+ `;