foreman_leapp 4.2.0 → 4.3.0

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 (98) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/foreman_leapp/locale/de/foreman_leapp.js +2 -2
  3. data/app/assets/javascripts/foreman_leapp/locale/en/foreman_leapp.js +1 -1
  4. data/app/assets/javascripts/foreman_leapp/locale/fr/foreman_leapp.js +12 -12
  5. data/app/assets/javascripts/foreman_leapp/locale/ja/foreman_leapp.js +12 -12
  6. data/app/assets/javascripts/foreman_leapp/locale/ka/foreman_leapp.js +1 -1
  7. data/app/assets/javascripts/foreman_leapp/locale/ko/foreman_leapp.js +13 -13
  8. data/app/assets/javascripts/foreman_leapp/locale/zh_CN/foreman_leapp.js +12 -12
  9. data/app/controllers/api/v2/preupgrade_report_entries_controller.rb +17 -29
  10. data/app/controllers/concerns/foreman_leapp/preupgrade_report_entry_bulk_remediate.rb +69 -0
  11. data/config/routes.rb +1 -2
  12. data/lib/foreman_leapp/engine.rb +1 -12
  13. data/lib/foreman_leapp/version.rb +1 -1
  14. data/locale/de/LC_MESSAGES/foreman_leapp.mo +0 -0
  15. data/locale/de/foreman_leapp.po +3 -3
  16. data/locale/en/LC_MESSAGES/foreman_leapp.mo +0 -0
  17. data/locale/en/foreman_leapp.po +1 -1
  18. data/locale/foreman_leapp.pot +2 -2
  19. data/locale/fr/LC_MESSAGES/foreman_leapp.mo +0 -0
  20. data/locale/fr/foreman_leapp.po +13 -13
  21. data/locale/ja/LC_MESSAGES/foreman_leapp.mo +0 -0
  22. data/locale/ja/foreman_leapp.po +13 -13
  23. data/locale/ka/LC_MESSAGES/foreman_leapp.mo +0 -0
  24. data/locale/ka/foreman_leapp.po +1 -1
  25. data/locale/ko/LC_MESSAGES/foreman_leapp.mo +0 -0
  26. data/locale/ko/foreman_leapp.po +15 -16
  27. data/locale/zh_CN/LC_MESSAGES/foreman_leapp.mo +0 -0
  28. data/locale/zh_CN/foreman_leapp.po +13 -13
  29. data/package.json +0 -1
  30. data/test/functional/api/v2/preupgrade_report_entries_controller_test.rb +64 -0
  31. data/webpack/components/PreupgradeReportsTable/PreupgradeReportsTableHelpers.js +43 -16
  32. data/webpack/components/PreupgradeReportsTable/__tests__/PreupgradeReportsTable.test.js +41 -8
  33. data/webpack/components/PreupgradeReportsTable/index.js +64 -71
  34. data/webpack/index.js +0 -13
  35. metadata +3 -66
  36. data/app/controllers/preupgrade_reports_controller.rb +0 -17
  37. data/app/views/job_invocations/_leapp_preupgrade_report.html.erb +0 -11
  38. data/app/views/preupgrade_report_entries/base.json.rabl +0 -4
  39. data/app/views/preupgrade_reports/index.json.rabl +0 -3
  40. data/app/views/preupgrade_reports/show.json.rabl +0 -7
  41. data/test/functional/preupgrade_reports_controller_test.rb +0 -39
  42. data/webpack/components/PreupgradeReports/PreupgradeReports.js +0 -154
  43. data/webpack/components/PreupgradeReports/PreupgradeReportsActions.js +0 -31
  44. data/webpack/components/PreupgradeReports/PreupgradeReportsHelpers.js +0 -152
  45. data/webpack/components/PreupgradeReports/PreupgradeReportsReducer.js +0 -37
  46. data/webpack/components/PreupgradeReports/PreupgradeReportsSelectors.js +0 -18
  47. data/webpack/components/PreupgradeReports/__tests__/PreupgradeReports.fixtures.js +0 -129
  48. data/webpack/components/PreupgradeReports/__tests__/PreupgradeReports.test.js +0 -159
  49. data/webpack/components/PreupgradeReports/__tests__/PreupgradeReportsHelpers.test.js +0 -78
  50. data/webpack/components/PreupgradeReports/__tests__/PreupgradeReportsReducer.test.js +0 -44
  51. data/webpack/components/PreupgradeReports/__tests__/PreupgradeReportsSelectors.test.js +0 -28
  52. data/webpack/components/PreupgradeReports/__tests__/__snapshots__/PreupgradeReportsHelpers.test.js.snap +0 -489
  53. data/webpack/components/PreupgradeReports/__tests__/__snapshots__/PreupgradeReportsReducer.test.js.snap +0 -102
  54. data/webpack/components/PreupgradeReports/__tests__/__snapshots__/PreupgradeReportsSelectors.test.js.snap +0 -76
  55. data/webpack/components/PreupgradeReports/components/EntriesFilter.js +0 -121
  56. data/webpack/components/PreupgradeReports/components/EntriesFilter.scss +0 -3
  57. data/webpack/components/PreupgradeReports/components/EntriesFilter.test.js +0 -30
  58. data/webpack/components/PreupgradeReports/components/FixSelectedButton.js +0 -35
  59. data/webpack/components/PreupgradeReports/components/FixSelectedButton.test.js +0 -15
  60. data/webpack/components/PreupgradeReports/components/NoReports.js +0 -35
  61. data/webpack/components/PreupgradeReports/components/NoReports.test.js +0 -29
  62. data/webpack/components/PreupgradeReports/components/UpgradeAllButton.js +0 -28
  63. data/webpack/components/PreupgradeReports/components/UpgradeAllButton.test.js +0 -17
  64. data/webpack/components/PreupgradeReports/components/__snapshots__/EntriesFilter.test.js.snap +0 -330
  65. data/webpack/components/PreupgradeReports/components/__snapshots__/FixSelectedButton.test.js.snap +0 -40
  66. data/webpack/components/PreupgradeReports/components/__snapshots__/UpgradeAllButton.test.js.snap +0 -41
  67. data/webpack/components/PreupgradeReports/index.js +0 -57
  68. data/webpack/components/PreupgradeReportsList/PreupgradeReportList.scss +0 -37
  69. data/webpack/components/PreupgradeReportsList/__tests__/PreupgradeReportsList.test.js +0 -124
  70. data/webpack/components/PreupgradeReportsList/components/EmptyInfoItem.js +0 -16
  71. data/webpack/components/PreupgradeReportsList/components/InfoItem.js +0 -34
  72. data/webpack/components/PreupgradeReportsList/components/InhibitorInfoItem.js +0 -33
  73. data/webpack/components/PreupgradeReportsList/components/PreupgradeReportEntry.js +0 -64
  74. data/webpack/components/PreupgradeReportsList/components/PreupgradeReportsListHeader.js +0 -56
  75. data/webpack/components/PreupgradeReportsList/components/SortableHeaderItem.js +0 -50
  76. data/webpack/components/PreupgradeReportsList/components/__tests__/EmptyInfoItem.test.js +0 -13
  77. data/webpack/components/PreupgradeReportsList/components/__tests__/InhibitorInfoItem.test.js +0 -27
  78. data/webpack/components/PreupgradeReportsList/components/__tests__/PreupgradeReportEntry.fixtures.js +0 -38
  79. data/webpack/components/PreupgradeReportsList/components/__tests__/PreupgradeReportEntry.test.js +0 -14
  80. data/webpack/components/PreupgradeReportsList/components/__tests__/PreupgradeReportsListHeader.test.js +0 -14
  81. data/webpack/components/PreupgradeReportsList/components/__tests__/SortableHeaderItem.test.js +0 -29
  82. data/webpack/components/PreupgradeReportsList/components/__tests__/__snapshots__/EmptyInfoItem.test.js.snap +0 -8
  83. data/webpack/components/PreupgradeReportsList/components/__tests__/__snapshots__/InhibitorInfoItem.test.js.snap +0 -32
  84. data/webpack/components/PreupgradeReportsList/components/__tests__/__snapshots__/PreupgradeReportEntry.test.js.snap +0 -134
  85. data/webpack/components/PreupgradeReportsList/components/__tests__/__snapshots__/PreupgradeReportsListHeader.test.js.snap +0 -113
  86. data/webpack/components/PreupgradeReportsList/components/__tests__/__snapshots__/SortableHeaderItem.test.js.snap +0 -36
  87. data/webpack/components/PreupgradeReportsList/components/__tests__/__snapshots__/helpers.test.js.snap +0 -197
  88. data/webpack/components/PreupgradeReportsList/components/__tests__/helpers.test.js +0 -28
  89. data/webpack/components/PreupgradeReportsList/components/foreman_leapp.scss +0 -15
  90. data/webpack/components/PreupgradeReportsList/components/helpers.js +0 -186
  91. data/webpack/components/PreupgradeReportsList/components/images/i_severity-critical.svg +0 -61
  92. data/webpack/components/PreupgradeReportsList/components/images/i_severity-high.svg +0 -61
  93. data/webpack/components/PreupgradeReportsList/components/images/i_severity-low.svg +0 -62
  94. data/webpack/components/PreupgradeReportsList/components/images/i_severity-med.svg +0 -62
  95. data/webpack/components/PreupgradeReportsList/index.js +0 -61
  96. data/webpack/consts.js +0 -3
  97. data/webpack/csrf.js +0 -4
  98. data/webpack/reducer.js +0 -5
@@ -1,489 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`PreupgradeReportsHelpers should collect ids for job invocation from reports 1`] = `
4
- Object {
5
- "entryIds": Array [],
6
- "hostIds": Array [],
7
- }
8
- `;
9
-
10
- exports[`PreupgradeReportsHelpers should detect a fixable entry in reports 1`] = `true`;
11
-
12
- exports[`PreupgradeReportsHelpers should detect empty object 1`] = `true`;
13
-
14
- exports[`PreupgradeReportsHelpers should detect entry is fixable 1`] = `true`;
15
-
16
- exports[`PreupgradeReportsHelpers should detect entry is not fixable when not having a command 1`] = `false`;
17
-
18
- exports[`PreupgradeReportsHelpers should detect entry is not fixable when not having remediations 1`] = `false`;
19
-
20
- exports[`PreupgradeReportsHelpers should detect no entry is fixable 1`] = `false`;
21
-
22
- exports[`PreupgradeReportsHelpers should detect non-empty object 1`] = `false`;
23
-
24
- exports[`PreupgradeReportsHelpers should filter entries by host 1`] = `
25
- Array [
26
- Object {
27
- "flags": Array [
28
- "inhibitor",
29
- ],
30
- "hostname": "foo.example.com",
31
- "id": 44,
32
- "severity": "high",
33
- "title": "Octocat is not happy",
34
- },
35
- Object {
36
- "flags": Array [],
37
- "hostname": "foo.example.com",
38
- "id": 45,
39
- "severity": "low",
40
- "title": "Not enough credits",
41
- },
42
- Object {
43
- "flags": Array [],
44
- "hostname": "foo.example.com",
45
- "id": 46,
46
- "severity": "medium",
47
- "title": "SELinux is turned off",
48
- },
49
- Object {
50
- "flags": Array [],
51
- "hostname": "foo.example.com",
52
- "id": 47,
53
- "severity": "medium",
54
- "title": "Root password is too short",
55
- },
56
- Object {
57
- "flags": Array [],
58
- "hostname": "foo.example.com",
59
- "id": 49,
60
- "severity": "high",
61
- "title": "No chocolate chip cookies in cookie jar",
62
- },
63
- ]
64
- `;
65
-
66
- exports[`PreupgradeReportsHelpers should filter entries by inhibitor 1`] = `
67
- Array [
68
- Object {
69
- "flags": Array [
70
- "inhibitor",
71
- ],
72
- "hostname": "foo.example.com",
73
- "id": 44,
74
- "severity": "high",
75
- "title": "Octocat is not happy",
76
- },
77
- ]
78
- `;
79
-
80
- exports[`PreupgradeReportsHelpers should filter entries by remediations 1`] = `
81
- Array [
82
- Object {
83
- "detail": Object {
84
- "remediations": Array [
85
- Object {
86
- "type": "command",
87
- },
88
- ],
89
- },
90
- "severity": "high",
91
- "title": "Octocat is not happy",
92
- },
93
- ]
94
- `;
95
-
96
- exports[`PreupgradeReportsHelpers should filter entries by severity 1`] = `
97
- Array [
98
- Object {
99
- "flags": Array [],
100
- "hostname": "host.example.com",
101
- "id": 43,
102
- "severity": "medium",
103
- "title": "I am broken too",
104
- },
105
- Object {
106
- "flags": Array [],
107
- "hostname": "foo.example.com",
108
- "id": 46,
109
- "severity": "medium",
110
- "title": "SELinux is turned off",
111
- },
112
- Object {
113
- "flags": Array [],
114
- "hostname": "foo.example.com",
115
- "id": 47,
116
- "severity": "medium",
117
- "title": "Root password is too short",
118
- },
119
- ]
120
- `;
121
-
122
- exports[`PreupgradeReportsHelpers should filter entries by title 1`] = `
123
- Array [
124
- Object {
125
- "flags": Array [],
126
- "hostname": "host.example.com",
127
- "id": 43,
128
- "severity": "medium",
129
- "title": "I am broken too",
130
- },
131
- ]
132
- `;
133
-
134
- exports[`PreupgradeReportsHelpers should return entries page 1`] = `
135
- Array [
136
- Object {
137
- "flags": Array [],
138
- "hostname": "foo.example.com",
139
- "id": 45,
140
- "severity": "low",
141
- "title": "Not enough credits",
142
- },
143
- Object {
144
- "flags": Array [],
145
- "hostname": "foo.example.com",
146
- "id": 46,
147
- "severity": "medium",
148
- "title": "SELinux is turned off",
149
- },
150
- Object {
151
- "flags": Array [],
152
- "hostname": "foo.example.com",
153
- "id": 47,
154
- "severity": "medium",
155
- "title": "Root password is too short",
156
- },
157
- ]
158
- `;
159
-
160
- exports[`PreupgradeReportsHelpers should return fixable entries 1`] = `
161
- Array [
162
- Object {
163
- "detail": Object {
164
- "remediations": Array [
165
- Object {
166
- "type": "command",
167
- },
168
- ],
169
- },
170
- "severity": "high",
171
- "title": "Octocat is not happy",
172
- },
173
- ]
174
- `;
175
-
176
- exports[`PreupgradeReportsHelpers should return flattened entrues 1`] = `
177
- Array [
178
- Object {
179
- "flags": Array [],
180
- "hostname": "host.example.com",
181
- "id": 42,
182
- "severity": "info",
183
- "title": "Fix me!",
184
- },
185
- Object {
186
- "flags": Array [],
187
- "hostname": "host.example.com",
188
- "id": 43,
189
- "severity": "medium",
190
- "title": "I am broken too",
191
- },
192
- Object {
193
- "flags": Array [
194
- "inhibitor",
195
- ],
196
- "hostname": "foo.example.com",
197
- "id": 44,
198
- "severity": "high",
199
- "title": "Octocat is not happy",
200
- },
201
- Object {
202
- "flags": Array [],
203
- "hostname": "foo.example.com",
204
- "id": 45,
205
- "severity": "low",
206
- "title": "Not enough credits",
207
- },
208
- Object {
209
- "flags": Array [],
210
- "hostname": "foo.example.com",
211
- "id": 46,
212
- "severity": "medium",
213
- "title": "SELinux is turned off",
214
- },
215
- Object {
216
- "flags": Array [],
217
- "hostname": "foo.example.com",
218
- "id": 47,
219
- "severity": "medium",
220
- "title": "Root password is too short",
221
- },
222
- Object {
223
- "flags": Array [],
224
- "hostname": "foo.example.com",
225
- "id": 49,
226
- "severity": "high",
227
- "title": "No chocolate chip cookies in cookie jar",
228
- },
229
- ]
230
- `;
231
-
232
- exports[`PreupgradeReportsHelpers should sort entries by hostname 1`] = `
233
- Array [
234
- Object {
235
- "flags": Array [
236
- "inhibitor",
237
- ],
238
- "hostname": "foo.example.com",
239
- "id": 44,
240
- "severity": "high",
241
- "title": "Octocat is not happy",
242
- },
243
- Object {
244
- "flags": Array [],
245
- "hostname": "foo.example.com",
246
- "id": 45,
247
- "severity": "low",
248
- "title": "Not enough credits",
249
- },
250
- Object {
251
- "flags": Array [],
252
- "hostname": "foo.example.com",
253
- "id": 46,
254
- "severity": "medium",
255
- "title": "SELinux is turned off",
256
- },
257
- Object {
258
- "flags": Array [],
259
- "hostname": "foo.example.com",
260
- "id": 47,
261
- "severity": "medium",
262
- "title": "Root password is too short",
263
- },
264
- Object {
265
- "flags": Array [],
266
- "hostname": "foo.example.com",
267
- "id": 49,
268
- "severity": "high",
269
- "title": "No chocolate chip cookies in cookie jar",
270
- },
271
- Object {
272
- "flags": Array [],
273
- "hostname": "host.example.com",
274
- "id": 42,
275
- "severity": "info",
276
- "title": "Fix me!",
277
- },
278
- Object {
279
- "flags": Array [],
280
- "hostname": "host.example.com",
281
- "id": 43,
282
- "severity": "medium",
283
- "title": "I am broken too",
284
- },
285
- ]
286
- `;
287
-
288
- exports[`PreupgradeReportsHelpers should sort entries by remediations 1`] = `
289
- Array [
290
- Object {
291
- "detail": Object {
292
- "remediations": Array [
293
- Object {
294
- "type": "hint",
295
- },
296
- ],
297
- },
298
- "severity": "info",
299
- "title": "Fix me!",
300
- },
301
- Object {
302
- "detail": Object {
303
- "remediations": Array [
304
- Object {
305
- "type": "command",
306
- },
307
- ],
308
- },
309
- "severity": "high",
310
- "title": "Octocat is not happy",
311
- },
312
- Object {
313
- "severity": "medium",
314
- "title": "I am broken too",
315
- },
316
- Object {
317
- "severity": "low",
318
- "title": "Not enough credits",
319
- },
320
- ]
321
- `;
322
-
323
- exports[`PreupgradeReportsHelpers should sort entries by severity 1`] = `
324
- Array [
325
- Object {
326
- "flags": Array [],
327
- "hostname": "host.example.com",
328
- "id": 42,
329
- "severity": "info",
330
- "title": "Fix me!",
331
- },
332
- Object {
333
- "flags": Array [],
334
- "hostname": "foo.example.com",
335
- "id": 45,
336
- "severity": "low",
337
- "title": "Not enough credits",
338
- },
339
- Object {
340
- "flags": Array [],
341
- "hostname": "host.example.com",
342
- "id": 43,
343
- "severity": "medium",
344
- "title": "I am broken too",
345
- },
346
- Object {
347
- "flags": Array [],
348
- "hostname": "foo.example.com",
349
- "id": 46,
350
- "severity": "medium",
351
- "title": "SELinux is turned off",
352
- },
353
- Object {
354
- "flags": Array [],
355
- "hostname": "foo.example.com",
356
- "id": 47,
357
- "severity": "medium",
358
- "title": "Root password is too short",
359
- },
360
- Object {
361
- "flags": Array [
362
- "inhibitor",
363
- ],
364
- "hostname": "foo.example.com",
365
- "id": 44,
366
- "severity": "high",
367
- "title": "Octocat is not happy",
368
- },
369
- Object {
370
- "flags": Array [],
371
- "hostname": "foo.example.com",
372
- "id": 49,
373
- "severity": "high",
374
- "title": "No chocolate chip cookies in cookie jar",
375
- },
376
- ]
377
- `;
378
-
379
- exports[`PreupgradeReportsHelpers should sort entries by title in ascending order 1`] = `
380
- Array [
381
- Object {
382
- "flags": Array [],
383
- "hostname": "host.example.com",
384
- "id": 42,
385
- "severity": "info",
386
- "title": "Fix me!",
387
- },
388
- Object {
389
- "flags": Array [],
390
- "hostname": "host.example.com",
391
- "id": 43,
392
- "severity": "medium",
393
- "title": "I am broken too",
394
- },
395
- Object {
396
- "flags": Array [],
397
- "hostname": "foo.example.com",
398
- "id": 49,
399
- "severity": "high",
400
- "title": "No chocolate chip cookies in cookie jar",
401
- },
402
- Object {
403
- "flags": Array [],
404
- "hostname": "foo.example.com",
405
- "id": 45,
406
- "severity": "low",
407
- "title": "Not enough credits",
408
- },
409
- Object {
410
- "flags": Array [
411
- "inhibitor",
412
- ],
413
- "hostname": "foo.example.com",
414
- "id": 44,
415
- "severity": "high",
416
- "title": "Octocat is not happy",
417
- },
418
- Object {
419
- "flags": Array [],
420
- "hostname": "foo.example.com",
421
- "id": 47,
422
- "severity": "medium",
423
- "title": "Root password is too short",
424
- },
425
- Object {
426
- "flags": Array [],
427
- "hostname": "foo.example.com",
428
- "id": 46,
429
- "severity": "medium",
430
- "title": "SELinux is turned off",
431
- },
432
- ]
433
- `;
434
-
435
- exports[`PreupgradeReportsHelpers should sort entries by title in descending order 1`] = `
436
- Array [
437
- Object {
438
- "flags": Array [],
439
- "hostname": "foo.example.com",
440
- "id": 46,
441
- "severity": "medium",
442
- "title": "SELinux is turned off",
443
- },
444
- Object {
445
- "flags": Array [],
446
- "hostname": "foo.example.com",
447
- "id": 47,
448
- "severity": "medium",
449
- "title": "Root password is too short",
450
- },
451
- Object {
452
- "flags": Array [
453
- "inhibitor",
454
- ],
455
- "hostname": "foo.example.com",
456
- "id": 44,
457
- "severity": "high",
458
- "title": "Octocat is not happy",
459
- },
460
- Object {
461
- "flags": Array [],
462
- "hostname": "foo.example.com",
463
- "id": 45,
464
- "severity": "low",
465
- "title": "Not enough credits",
466
- },
467
- Object {
468
- "flags": Array [],
469
- "hostname": "foo.example.com",
470
- "id": 49,
471
- "severity": "high",
472
- "title": "No chocolate chip cookies in cookie jar",
473
- },
474
- Object {
475
- "flags": Array [],
476
- "hostname": "host.example.com",
477
- "id": 43,
478
- "severity": "medium",
479
- "title": "I am broken too",
480
- },
481
- Object {
482
- "flags": Array [],
483
- "hostname": "host.example.com",
484
- "id": 42,
485
- "severity": "info",
486
- "title": "Fix me!",
487
- },
488
- ]
489
- `;
@@ -1,102 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`PreupgradeReportsReducer should return initial state 1`] = `
4
- Object {
5
- "error": Object {},
6
- "loadingPreupgradeReports": false,
7
- "preupgradeReports": Array [],
8
- "reportsExpected": false,
9
- }
10
- `;
11
-
12
- exports[`PreupgradeReportsReducer should show error on request failure 1`] = `
13
- Object {
14
- "error": Object {
15
- "errorMsg": "This is error",
16
- "statusText": "Not good",
17
- },
18
- "loadingPreupgradeReports": false,
19
- "preupgradeReports": Array [],
20
- "reportsExpected": false,
21
- }
22
- `;
23
-
24
- exports[`PreupgradeReportsReducer should start loading reports on request 1`] = `
25
- Object {
26
- "error": Object {},
27
- "loadingPreupgradeReports": true,
28
- "preupgradeReports": Array [],
29
- "reportsExpected": false,
30
- }
31
- `;
32
-
33
- exports[`PreupgradeReportsReducer should stop loading on reports success 1`] = `
34
- Object {
35
- "error": Object {},
36
- "loadingPreupgradeReports": false,
37
- "preupgradeReports": Array [
38
- Object {
39
- "entries": Array [
40
- Object {
41
- "flags": Array [],
42
- "hostname": "host.example.com",
43
- "id": 42,
44
- "severity": "info",
45
- "title": "Fix me!",
46
- },
47
- Object {
48
- "flags": Array [],
49
- "hostname": "host.example.com",
50
- "id": 43,
51
- "severity": "medium",
52
- "title": "I am broken too",
53
- },
54
- ],
55
- "hostId": 5,
56
- },
57
- Object {
58
- "entries": Array [
59
- Object {
60
- "flags": Array [
61
- "inhibitor",
62
- ],
63
- "hostname": "foo.example.com",
64
- "id": 44,
65
- "severity": "high",
66
- "title": "Octocat is not happy",
67
- },
68
- Object {
69
- "flags": Array [],
70
- "hostname": "foo.example.com",
71
- "id": 45,
72
- "severity": "low",
73
- "title": "Not enough credits",
74
- },
75
- Object {
76
- "flags": Array [],
77
- "hostname": "foo.example.com",
78
- "id": 46,
79
- "severity": "medium",
80
- "title": "SELinux is turned off",
81
- },
82
- Object {
83
- "flags": Array [],
84
- "hostname": "foo.example.com",
85
- "id": 47,
86
- "severity": "medium",
87
- "title": "Root password is too short",
88
- },
89
- Object {
90
- "flags": Array [],
91
- "hostname": "foo.example.com",
92
- "id": 49,
93
- "severity": "high",
94
- "title": "No chocolate chip cookies in cookie jar",
95
- },
96
- ],
97
- "hostId": 6,
98
- },
99
- ],
100
- "reportsExpected": true,
101
- }
102
- `;
@@ -1,76 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`PreupgradeReportsSelectors should return error 1`] = `
4
- Object {
5
- "errorMsg": "Error",
6
- "statusText": "Status text",
7
- }
8
- `;
9
-
10
- exports[`PreupgradeReportsSelectors should return loading state 1`] = `false`;
11
-
12
- exports[`PreupgradeReportsSelectors should return preupgrade reports 1`] = `
13
- Array [
14
- Object {
15
- "entries": Array [
16
- Object {
17
- "flags": Array [],
18
- "hostname": "host.example.com",
19
- "id": 42,
20
- "severity": "info",
21
- "title": "Fix me!",
22
- },
23
- Object {
24
- "flags": Array [],
25
- "hostname": "host.example.com",
26
- "id": 43,
27
- "severity": "medium",
28
- "title": "I am broken too",
29
- },
30
- ],
31
- "hostId": 5,
32
- },
33
- Object {
34
- "entries": Array [
35
- Object {
36
- "flags": Array [
37
- "inhibitor",
38
- ],
39
- "hostname": "foo.example.com",
40
- "id": 44,
41
- "severity": "high",
42
- "title": "Octocat is not happy",
43
- },
44
- Object {
45
- "flags": Array [],
46
- "hostname": "foo.example.com",
47
- "id": 45,
48
- "severity": "low",
49
- "title": "Not enough credits",
50
- },
51
- Object {
52
- "flags": Array [],
53
- "hostname": "foo.example.com",
54
- "id": 46,
55
- "severity": "medium",
56
- "title": "SELinux is turned off",
57
- },
58
- Object {
59
- "flags": Array [],
60
- "hostname": "foo.example.com",
61
- "id": 47,
62
- "severity": "medium",
63
- "title": "Root password is too short",
64
- },
65
- Object {
66
- "flags": Array [],
67
- "hostname": "foo.example.com",
68
- "id": 49,
69
- "severity": "high",
70
- "title": "No chocolate chip cookies in cookie jar",
71
- },
72
- ],
73
- "hostId": 6,
74
- },
75
- ]
76
- `;