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.
- checksums.yaml +4 -4
- data/app/assets/javascripts/foreman_leapp/locale/de/foreman_leapp.js +2 -2
- data/app/assets/javascripts/foreman_leapp/locale/en/foreman_leapp.js +1 -1
- data/app/assets/javascripts/foreman_leapp/locale/fr/foreman_leapp.js +12 -12
- data/app/assets/javascripts/foreman_leapp/locale/ja/foreman_leapp.js +12 -12
- data/app/assets/javascripts/foreman_leapp/locale/ka/foreman_leapp.js +1 -1
- data/app/assets/javascripts/foreman_leapp/locale/ko/foreman_leapp.js +13 -13
- data/app/assets/javascripts/foreman_leapp/locale/zh_CN/foreman_leapp.js +12 -12
- data/app/controllers/api/v2/preupgrade_report_entries_controller.rb +17 -29
- data/app/controllers/concerns/foreman_leapp/preupgrade_report_entry_bulk_remediate.rb +69 -0
- data/config/routes.rb +1 -2
- data/lib/foreman_leapp/engine.rb +1 -12
- data/lib/foreman_leapp/version.rb +1 -1
- data/locale/de/LC_MESSAGES/foreman_leapp.mo +0 -0
- data/locale/de/foreman_leapp.po +3 -3
- data/locale/en/LC_MESSAGES/foreman_leapp.mo +0 -0
- data/locale/en/foreman_leapp.po +1 -1
- data/locale/foreman_leapp.pot +2 -2
- data/locale/fr/LC_MESSAGES/foreman_leapp.mo +0 -0
- data/locale/fr/foreman_leapp.po +13 -13
- data/locale/ja/LC_MESSAGES/foreman_leapp.mo +0 -0
- data/locale/ja/foreman_leapp.po +13 -13
- data/locale/ka/LC_MESSAGES/foreman_leapp.mo +0 -0
- data/locale/ka/foreman_leapp.po +1 -1
- data/locale/ko/LC_MESSAGES/foreman_leapp.mo +0 -0
- data/locale/ko/foreman_leapp.po +15 -16
- data/locale/zh_CN/LC_MESSAGES/foreman_leapp.mo +0 -0
- data/locale/zh_CN/foreman_leapp.po +13 -13
- data/package.json +0 -1
- data/test/functional/api/v2/preupgrade_report_entries_controller_test.rb +64 -0
- data/webpack/components/PreupgradeReportsTable/PreupgradeReportsTableHelpers.js +43 -16
- data/webpack/components/PreupgradeReportsTable/__tests__/PreupgradeReportsTable.test.js +41 -8
- data/webpack/components/PreupgradeReportsTable/index.js +64 -71
- data/webpack/index.js +0 -13
- metadata +3 -66
- data/app/controllers/preupgrade_reports_controller.rb +0 -17
- data/app/views/job_invocations/_leapp_preupgrade_report.html.erb +0 -11
- data/app/views/preupgrade_report_entries/base.json.rabl +0 -4
- data/app/views/preupgrade_reports/index.json.rabl +0 -3
- data/app/views/preupgrade_reports/show.json.rabl +0 -7
- data/test/functional/preupgrade_reports_controller_test.rb +0 -39
- data/webpack/components/PreupgradeReports/PreupgradeReports.js +0 -154
- data/webpack/components/PreupgradeReports/PreupgradeReportsActions.js +0 -31
- data/webpack/components/PreupgradeReports/PreupgradeReportsHelpers.js +0 -152
- data/webpack/components/PreupgradeReports/PreupgradeReportsReducer.js +0 -37
- data/webpack/components/PreupgradeReports/PreupgradeReportsSelectors.js +0 -18
- data/webpack/components/PreupgradeReports/__tests__/PreupgradeReports.fixtures.js +0 -129
- data/webpack/components/PreupgradeReports/__tests__/PreupgradeReports.test.js +0 -159
- data/webpack/components/PreupgradeReports/__tests__/PreupgradeReportsHelpers.test.js +0 -78
- data/webpack/components/PreupgradeReports/__tests__/PreupgradeReportsReducer.test.js +0 -44
- data/webpack/components/PreupgradeReports/__tests__/PreupgradeReportsSelectors.test.js +0 -28
- data/webpack/components/PreupgradeReports/__tests__/__snapshots__/PreupgradeReportsHelpers.test.js.snap +0 -489
- data/webpack/components/PreupgradeReports/__tests__/__snapshots__/PreupgradeReportsReducer.test.js.snap +0 -102
- data/webpack/components/PreupgradeReports/__tests__/__snapshots__/PreupgradeReportsSelectors.test.js.snap +0 -76
- data/webpack/components/PreupgradeReports/components/EntriesFilter.js +0 -121
- data/webpack/components/PreupgradeReports/components/EntriesFilter.scss +0 -3
- data/webpack/components/PreupgradeReports/components/EntriesFilter.test.js +0 -30
- data/webpack/components/PreupgradeReports/components/FixSelectedButton.js +0 -35
- data/webpack/components/PreupgradeReports/components/FixSelectedButton.test.js +0 -15
- data/webpack/components/PreupgradeReports/components/NoReports.js +0 -35
- data/webpack/components/PreupgradeReports/components/NoReports.test.js +0 -29
- data/webpack/components/PreupgradeReports/components/UpgradeAllButton.js +0 -28
- data/webpack/components/PreupgradeReports/components/UpgradeAllButton.test.js +0 -17
- data/webpack/components/PreupgradeReports/components/__snapshots__/EntriesFilter.test.js.snap +0 -330
- data/webpack/components/PreupgradeReports/components/__snapshots__/FixSelectedButton.test.js.snap +0 -40
- data/webpack/components/PreupgradeReports/components/__snapshots__/UpgradeAllButton.test.js.snap +0 -41
- data/webpack/components/PreupgradeReports/index.js +0 -57
- data/webpack/components/PreupgradeReportsList/PreupgradeReportList.scss +0 -37
- data/webpack/components/PreupgradeReportsList/__tests__/PreupgradeReportsList.test.js +0 -124
- data/webpack/components/PreupgradeReportsList/components/EmptyInfoItem.js +0 -16
- data/webpack/components/PreupgradeReportsList/components/InfoItem.js +0 -34
- data/webpack/components/PreupgradeReportsList/components/InhibitorInfoItem.js +0 -33
- data/webpack/components/PreupgradeReportsList/components/PreupgradeReportEntry.js +0 -64
- data/webpack/components/PreupgradeReportsList/components/PreupgradeReportsListHeader.js +0 -56
- data/webpack/components/PreupgradeReportsList/components/SortableHeaderItem.js +0 -50
- data/webpack/components/PreupgradeReportsList/components/__tests__/EmptyInfoItem.test.js +0 -13
- data/webpack/components/PreupgradeReportsList/components/__tests__/InhibitorInfoItem.test.js +0 -27
- data/webpack/components/PreupgradeReportsList/components/__tests__/PreupgradeReportEntry.fixtures.js +0 -38
- data/webpack/components/PreupgradeReportsList/components/__tests__/PreupgradeReportEntry.test.js +0 -14
- data/webpack/components/PreupgradeReportsList/components/__tests__/PreupgradeReportsListHeader.test.js +0 -14
- data/webpack/components/PreupgradeReportsList/components/__tests__/SortableHeaderItem.test.js +0 -29
- data/webpack/components/PreupgradeReportsList/components/__tests__/__snapshots__/EmptyInfoItem.test.js.snap +0 -8
- data/webpack/components/PreupgradeReportsList/components/__tests__/__snapshots__/InhibitorInfoItem.test.js.snap +0 -32
- data/webpack/components/PreupgradeReportsList/components/__tests__/__snapshots__/PreupgradeReportEntry.test.js.snap +0 -134
- data/webpack/components/PreupgradeReportsList/components/__tests__/__snapshots__/PreupgradeReportsListHeader.test.js.snap +0 -113
- data/webpack/components/PreupgradeReportsList/components/__tests__/__snapshots__/SortableHeaderItem.test.js.snap +0 -36
- data/webpack/components/PreupgradeReportsList/components/__tests__/__snapshots__/helpers.test.js.snap +0 -197
- data/webpack/components/PreupgradeReportsList/components/__tests__/helpers.test.js +0 -28
- data/webpack/components/PreupgradeReportsList/components/foreman_leapp.scss +0 -15
- data/webpack/components/PreupgradeReportsList/components/helpers.js +0 -186
- data/webpack/components/PreupgradeReportsList/components/images/i_severity-critical.svg +0 -61
- data/webpack/components/PreupgradeReportsList/components/images/i_severity-high.svg +0 -61
- data/webpack/components/PreupgradeReportsList/components/images/i_severity-low.svg +0 -62
- data/webpack/components/PreupgradeReportsList/components/images/i_severity-med.svg +0 -62
- data/webpack/components/PreupgradeReportsList/index.js +0 -61
- data/webpack/consts.js +0 -3
- data/webpack/csrf.js +0 -4
- data/webpack/reducer.js +0 -5
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`InhibitorInfoItem should render when inhibitor 1`] = `
|
|
4
|
-
<InfoItem
|
|
5
|
-
itemId="inhibitor-5"
|
|
6
|
-
tooltipText="This issue inhibits the upgrade."
|
|
7
|
-
>
|
|
8
|
-
<span>
|
|
9
|
-
<Icon
|
|
10
|
-
className="severity-high"
|
|
11
|
-
name="security"
|
|
12
|
-
type="pf"
|
|
13
|
-
/>
|
|
14
|
-
Inhibitor
|
|
15
|
-
</span>
|
|
16
|
-
</InfoItem>
|
|
17
|
-
`;
|
|
18
|
-
|
|
19
|
-
exports[`InhibitorInfoItem should render when not inhibitor 1`] = `
|
|
20
|
-
<EmptyInfoItem
|
|
21
|
-
attr="inhibitor"
|
|
22
|
-
entry={
|
|
23
|
-
Object {
|
|
24
|
-
"flags": Array [],
|
|
25
|
-
"id": 5,
|
|
26
|
-
"preupgradeReportId": 7,
|
|
27
|
-
"severity": "low",
|
|
28
|
-
"title": "no title",
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
/>
|
|
32
|
-
`;
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`PreupgradeReportEntry should render 1`] = `
|
|
4
|
-
<ListViewItem
|
|
5
|
-
actions={null}
|
|
6
|
-
additionalInfo={
|
|
7
|
-
Array [
|
|
8
|
-
<ListViewInfoItem
|
|
9
|
-
className=""
|
|
10
|
-
stacked={false}
|
|
11
|
-
>
|
|
12
|
-
<Icon
|
|
13
|
-
name="cluster"
|
|
14
|
-
type="pf"
|
|
15
|
-
/>
|
|
16
|
-
|
|
17
|
-
</ListViewInfoItem>,
|
|
18
|
-
<ListViewInfoItem
|
|
19
|
-
className=""
|
|
20
|
-
stacked={false}
|
|
21
|
-
>
|
|
22
|
-
<img
|
|
23
|
-
alt="Low Risk Factor"
|
|
24
|
-
className="severity-img"
|
|
25
|
-
src={[Function]}
|
|
26
|
-
/>
|
|
27
|
-
</ListViewInfoItem>,
|
|
28
|
-
<EmptyInfoItem
|
|
29
|
-
attr="remediation"
|
|
30
|
-
entry={
|
|
31
|
-
Object {
|
|
32
|
-
"id": 5,
|
|
33
|
-
"preupgradeReportId": 7,
|
|
34
|
-
"severity": "low",
|
|
35
|
-
"title": "no title",
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
/>,
|
|
39
|
-
<InhibitorInfoItem
|
|
40
|
-
entry={
|
|
41
|
-
Object {
|
|
42
|
-
"id": 5,
|
|
43
|
-
"preupgradeReportId": 7,
|
|
44
|
-
"severity": "low",
|
|
45
|
-
"title": "no title",
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
/>,
|
|
49
|
-
]
|
|
50
|
-
}
|
|
51
|
-
checkboxInput={
|
|
52
|
-
<input
|
|
53
|
-
checked={false}
|
|
54
|
-
disabled={true}
|
|
55
|
-
onChange={[Function]}
|
|
56
|
-
type="checkbox"
|
|
57
|
-
value={false}
|
|
58
|
-
/>
|
|
59
|
-
}
|
|
60
|
-
compoundExpand={false}
|
|
61
|
-
compoundExpanded={false}
|
|
62
|
-
description="no title"
|
|
63
|
-
heading={null}
|
|
64
|
-
hideCloseIcon={false}
|
|
65
|
-
initExpanded={false}
|
|
66
|
-
key="5"
|
|
67
|
-
leftContent={null}
|
|
68
|
-
onCloseCompoundExpand={[Function]}
|
|
69
|
-
onExpand={[Function]}
|
|
70
|
-
onExpandClose={[Function]}
|
|
71
|
-
stacked={true}
|
|
72
|
-
>
|
|
73
|
-
<Grid
|
|
74
|
-
bsClass="container"
|
|
75
|
-
componentClass="div"
|
|
76
|
-
fluid={true}
|
|
77
|
-
>
|
|
78
|
-
<Row
|
|
79
|
-
bsClass="row"
|
|
80
|
-
componentClass="div"
|
|
81
|
-
>
|
|
82
|
-
<Col
|
|
83
|
-
bsClass="col"
|
|
84
|
-
componentClass="div"
|
|
85
|
-
md={1}
|
|
86
|
-
>
|
|
87
|
-
<strong>
|
|
88
|
-
Title
|
|
89
|
-
</strong>
|
|
90
|
-
</Col>
|
|
91
|
-
<Col
|
|
92
|
-
bsClass="col"
|
|
93
|
-
componentClass="div"
|
|
94
|
-
md={8}
|
|
95
|
-
>
|
|
96
|
-
no title
|
|
97
|
-
</Col>
|
|
98
|
-
</Row>
|
|
99
|
-
<Row
|
|
100
|
-
bsClass="row"
|
|
101
|
-
className="top-padded"
|
|
102
|
-
componentClass="div"
|
|
103
|
-
>
|
|
104
|
-
<Col
|
|
105
|
-
bsClass="col"
|
|
106
|
-
componentClass="div"
|
|
107
|
-
md={1}
|
|
108
|
-
>
|
|
109
|
-
<strong>
|
|
110
|
-
Risk Factor
|
|
111
|
-
</strong>
|
|
112
|
-
</Col>
|
|
113
|
-
<Col
|
|
114
|
-
bsClass="col"
|
|
115
|
-
componentClass="div"
|
|
116
|
-
md={8}
|
|
117
|
-
>
|
|
118
|
-
<img
|
|
119
|
-
alt="Low Risk Factor"
|
|
120
|
-
className="severity-img"
|
|
121
|
-
key="5-7-sv5"
|
|
122
|
-
src={[Function]}
|
|
123
|
-
/>
|
|
124
|
-
|
|
125
|
-
low
|
|
126
|
-
</Col>
|
|
127
|
-
</Row>
|
|
128
|
-
<div />
|
|
129
|
-
<div />
|
|
130
|
-
<div />
|
|
131
|
-
<div />
|
|
132
|
-
</Grid>
|
|
133
|
-
</ListViewItem>
|
|
134
|
-
`;
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`PreupgradeReportsListHeader should render 1`] = `
|
|
4
|
-
<ListViewItem
|
|
5
|
-
actions={null}
|
|
6
|
-
additionalInfo={
|
|
7
|
-
Array [
|
|
8
|
-
<InfoItem
|
|
9
|
-
itemId="0"
|
|
10
|
-
tooltipText=""
|
|
11
|
-
>
|
|
12
|
-
<strong>
|
|
13
|
-
<SortableHeaderItem
|
|
14
|
-
changeSort={[Function]}
|
|
15
|
-
sort={
|
|
16
|
-
Object {
|
|
17
|
-
"attribute": "",
|
|
18
|
-
"order": "asc",
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
title="Host"
|
|
22
|
-
value="hostname"
|
|
23
|
-
/>
|
|
24
|
-
</strong>
|
|
25
|
-
</InfoItem>,
|
|
26
|
-
<InfoItem
|
|
27
|
-
itemId="1"
|
|
28
|
-
tooltipText=""
|
|
29
|
-
>
|
|
30
|
-
<strong>
|
|
31
|
-
<SortableHeaderItem
|
|
32
|
-
changeSort={[Function]}
|
|
33
|
-
sort={
|
|
34
|
-
Object {
|
|
35
|
-
"attribute": "",
|
|
36
|
-
"order": "asc",
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
title="Risk Factor"
|
|
40
|
-
value="severity"
|
|
41
|
-
/>
|
|
42
|
-
</strong>
|
|
43
|
-
</InfoItem>,
|
|
44
|
-
<InfoItem
|
|
45
|
-
itemId="2"
|
|
46
|
-
tooltipText=""
|
|
47
|
-
>
|
|
48
|
-
<strong>
|
|
49
|
-
<SortableHeaderItem
|
|
50
|
-
changeSort={[Function]}
|
|
51
|
-
sort={
|
|
52
|
-
Object {
|
|
53
|
-
"attribute": "",
|
|
54
|
-
"order": "asc",
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
title="Has Remediation?"
|
|
58
|
-
value="fix"
|
|
59
|
-
/>
|
|
60
|
-
</strong>
|
|
61
|
-
</InfoItem>,
|
|
62
|
-
<InfoItem
|
|
63
|
-
itemId="3"
|
|
64
|
-
tooltipText=""
|
|
65
|
-
>
|
|
66
|
-
<strong>
|
|
67
|
-
<SortableHeaderItem
|
|
68
|
-
changeSort={[Function]}
|
|
69
|
-
sort={
|
|
70
|
-
Object {
|
|
71
|
-
"attribute": "",
|
|
72
|
-
"order": "asc",
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
title="Inhibitor?"
|
|
76
|
-
value="inhibitor"
|
|
77
|
-
/>
|
|
78
|
-
</strong>
|
|
79
|
-
</InfoItem>,
|
|
80
|
-
]
|
|
81
|
-
}
|
|
82
|
-
checkboxInput={
|
|
83
|
-
<input
|
|
84
|
-
onClick={[Function]}
|
|
85
|
-
type="checkbox"
|
|
86
|
-
/>
|
|
87
|
-
}
|
|
88
|
-
className="list-view-header"
|
|
89
|
-
compoundExpand={false}
|
|
90
|
-
compoundExpanded={false}
|
|
91
|
-
description={
|
|
92
|
-
<SortableHeaderItem
|
|
93
|
-
changeSort={[Function]}
|
|
94
|
-
sort={
|
|
95
|
-
Object {
|
|
96
|
-
"attribute": "",
|
|
97
|
-
"order": "asc",
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
title="Title"
|
|
101
|
-
value="title"
|
|
102
|
-
/>
|
|
103
|
-
}
|
|
104
|
-
heading={null}
|
|
105
|
-
hideCloseIcon={true}
|
|
106
|
-
initExpanded={false}
|
|
107
|
-
leftContent={null}
|
|
108
|
-
onCloseCompoundExpand={[Function]}
|
|
109
|
-
onExpand={[Function]}
|
|
110
|
-
onExpandClose={[Function]}
|
|
111
|
-
stacked={true}
|
|
112
|
-
/>
|
|
113
|
-
`;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`SortableHeaderItem should render when not selected 1`] = `
|
|
4
|
-
<span
|
|
5
|
-
className="sortable-header "
|
|
6
|
-
onClick={[Function]}
|
|
7
|
-
>
|
|
8
|
-
severity
|
|
9
|
-
</span>
|
|
10
|
-
`;
|
|
11
|
-
|
|
12
|
-
exports[`SortableHeaderItem should render when selected and sorting asc 1`] = `
|
|
13
|
-
<span
|
|
14
|
-
className="sortable-header active"
|
|
15
|
-
onClick={[Function]}
|
|
16
|
-
>
|
|
17
|
-
<Icon
|
|
18
|
-
name="angle-up"
|
|
19
|
-
type="fa"
|
|
20
|
-
/>
|
|
21
|
-
Severity
|
|
22
|
-
</span>
|
|
23
|
-
`;
|
|
24
|
-
|
|
25
|
-
exports[`SortableHeaderItem should render when selected and sorting desc 1`] = `
|
|
26
|
-
<span
|
|
27
|
-
className="sortable-header active"
|
|
28
|
-
onClick={[Function]}
|
|
29
|
-
>
|
|
30
|
-
<Icon
|
|
31
|
-
name="angle-down"
|
|
32
|
-
type="fa"
|
|
33
|
-
/>
|
|
34
|
-
Severity
|
|
35
|
-
</span>
|
|
36
|
-
`;
|
|
@@ -1,197 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`PreupgradeReportList/helpers should detect if has remediations 1`] = `
|
|
4
|
-
<ListViewInfoItem
|
|
5
|
-
className=""
|
|
6
|
-
stacked={false}
|
|
7
|
-
>
|
|
8
|
-
<Icon
|
|
9
|
-
name="warning-triangle-o"
|
|
10
|
-
type="pf"
|
|
11
|
-
/>
|
|
12
|
-
|
|
13
|
-
Has Remediation
|
|
14
|
-
</ListViewInfoItem>
|
|
15
|
-
`;
|
|
16
|
-
|
|
17
|
-
exports[`PreupgradeReportList/helpers should return externals 1`] = `
|
|
18
|
-
Array [
|
|
19
|
-
<Row
|
|
20
|
-
bsClass="row"
|
|
21
|
-
className="top-padded"
|
|
22
|
-
componentClass="div"
|
|
23
|
-
>
|
|
24
|
-
<Col
|
|
25
|
-
bsClass="col"
|
|
26
|
-
componentClass="div"
|
|
27
|
-
md={1}
|
|
28
|
-
>
|
|
29
|
-
<strong>
|
|
30
|
-
Links
|
|
31
|
-
</strong>
|
|
32
|
-
</Col>
|
|
33
|
-
<Col
|
|
34
|
-
bsClass="col"
|
|
35
|
-
componentClass="div"
|
|
36
|
-
md={8}
|
|
37
|
-
>
|
|
38
|
-
<a
|
|
39
|
-
href="https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html-single/configuring_basic_system_settings/#using-python3"
|
|
40
|
-
>
|
|
41
|
-
Difference in Python versions and support in RHEL 8
|
|
42
|
-
</a>
|
|
43
|
-
</Col>
|
|
44
|
-
</Row>,
|
|
45
|
-
]
|
|
46
|
-
`;
|
|
47
|
-
|
|
48
|
-
exports[`PreupgradeReportList/helpers should return remediations 1`] = `
|
|
49
|
-
Array [
|
|
50
|
-
<Row
|
|
51
|
-
bsClass="row"
|
|
52
|
-
className="top-padded"
|
|
53
|
-
componentClass="div"
|
|
54
|
-
>
|
|
55
|
-
<Col
|
|
56
|
-
bsClass="col"
|
|
57
|
-
componentClass="div"
|
|
58
|
-
md={1}
|
|
59
|
-
>
|
|
60
|
-
<strong>
|
|
61
|
-
Hint
|
|
62
|
-
</strong>
|
|
63
|
-
</Col>
|
|
64
|
-
<Col
|
|
65
|
-
bsClass="col"
|
|
66
|
-
componentClass="div"
|
|
67
|
-
md={8}
|
|
68
|
-
>
|
|
69
|
-
Please run "alternatives --set python /usr/bin/python3" after upgrade
|
|
70
|
-
</Col>
|
|
71
|
-
</Row>,
|
|
72
|
-
]
|
|
73
|
-
`;
|
|
74
|
-
|
|
75
|
-
exports[`PreupgradeReportList/helpers should return severity 1`] = `
|
|
76
|
-
<Row
|
|
77
|
-
bsClass="row"
|
|
78
|
-
className="top-padded"
|
|
79
|
-
componentClass="div"
|
|
80
|
-
>
|
|
81
|
-
<Col
|
|
82
|
-
bsClass="col"
|
|
83
|
-
componentClass="div"
|
|
84
|
-
md={1}
|
|
85
|
-
>
|
|
86
|
-
<strong>
|
|
87
|
-
Risk Factor
|
|
88
|
-
</strong>
|
|
89
|
-
</Col>
|
|
90
|
-
<Col
|
|
91
|
-
bsClass="col"
|
|
92
|
-
componentClass="div"
|
|
93
|
-
md={8}
|
|
94
|
-
>
|
|
95
|
-
<img
|
|
96
|
-
alt="High Risk Factor"
|
|
97
|
-
className="severity-img"
|
|
98
|
-
src={[Function]}
|
|
99
|
-
/>
|
|
100
|
-
|
|
101
|
-
high
|
|
102
|
-
</Col>
|
|
103
|
-
</Row>
|
|
104
|
-
`;
|
|
105
|
-
|
|
106
|
-
exports[`PreupgradeReportList/helpers should return summary 1`] = `
|
|
107
|
-
<Row
|
|
108
|
-
bsClass="row"
|
|
109
|
-
className="top-padded"
|
|
110
|
-
componentClass="div"
|
|
111
|
-
>
|
|
112
|
-
<Col
|
|
113
|
-
bsClass="col"
|
|
114
|
-
componentClass="div"
|
|
115
|
-
md={1}
|
|
116
|
-
>
|
|
117
|
-
<strong>
|
|
118
|
-
Summary
|
|
119
|
-
</strong>
|
|
120
|
-
</Col>
|
|
121
|
-
<Col
|
|
122
|
-
bsClass="col"
|
|
123
|
-
className="pre-wrap"
|
|
124
|
-
componentClass="div"
|
|
125
|
-
md={8}
|
|
126
|
-
>
|
|
127
|
-
This checks difference in python versions
|
|
128
|
-
</Col>
|
|
129
|
-
</Row>
|
|
130
|
-
`;
|
|
131
|
-
|
|
132
|
-
exports[`PreupgradeReportList/helpers should return tag info 1`] = `
|
|
133
|
-
Array [
|
|
134
|
-
<Badge
|
|
135
|
-
bsClass="badge"
|
|
136
|
-
pullRight={false}
|
|
137
|
-
variant="pill primary"
|
|
138
|
-
>
|
|
139
|
-
python
|
|
140
|
-
</Badge>,
|
|
141
|
-
]
|
|
142
|
-
`;
|
|
143
|
-
|
|
144
|
-
exports[`PreupgradeReportList/helpers should return tags 1`] = `
|
|
145
|
-
<Row
|
|
146
|
-
bsClass="row"
|
|
147
|
-
className="top-padded"
|
|
148
|
-
componentClass="div"
|
|
149
|
-
>
|
|
150
|
-
<Col
|
|
151
|
-
bsClass="col"
|
|
152
|
-
componentClass="div"
|
|
153
|
-
md={1}
|
|
154
|
-
>
|
|
155
|
-
<strong>
|
|
156
|
-
Tags
|
|
157
|
-
</strong>
|
|
158
|
-
</Col>
|
|
159
|
-
<Col
|
|
160
|
-
bsClass="col"
|
|
161
|
-
componentClass="div"
|
|
162
|
-
md={8}
|
|
163
|
-
>
|
|
164
|
-
<Badge
|
|
165
|
-
bsClass="badge"
|
|
166
|
-
pullRight={false}
|
|
167
|
-
variant="pill primary"
|
|
168
|
-
>
|
|
169
|
-
python
|
|
170
|
-
</Badge>
|
|
171
|
-
</Col>
|
|
172
|
-
</Row>
|
|
173
|
-
`;
|
|
174
|
-
|
|
175
|
-
exports[`PreupgradeReportList/helpers should return title 1`] = `
|
|
176
|
-
<Row
|
|
177
|
-
bsClass="row"
|
|
178
|
-
componentClass="div"
|
|
179
|
-
>
|
|
180
|
-
<Col
|
|
181
|
-
bsClass="col"
|
|
182
|
-
componentClass="div"
|
|
183
|
-
md={1}
|
|
184
|
-
>
|
|
185
|
-
<strong>
|
|
186
|
-
Title
|
|
187
|
-
</strong>
|
|
188
|
-
</Col>
|
|
189
|
-
<Col
|
|
190
|
-
bsClass="col"
|
|
191
|
-
componentClass="div"
|
|
192
|
-
md={8}
|
|
193
|
-
>
|
|
194
|
-
Difference in Python versions and support in RHEL 8
|
|
195
|
-
</Col>
|
|
196
|
-
</Row>
|
|
197
|
-
`;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { testSelectorsSnapshotWithFixtures } from '@theforeman/test';
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
tagInfo,
|
|
5
|
-
hasRemediations,
|
|
6
|
-
getTitle,
|
|
7
|
-
getSeverity,
|
|
8
|
-
getSummary,
|
|
9
|
-
getTags,
|
|
10
|
-
getExternals,
|
|
11
|
-
getRemediations,
|
|
12
|
-
} from '../helpers';
|
|
13
|
-
|
|
14
|
-
import { reportEntry } from './PreupgradeReportEntry.fixtures';
|
|
15
|
-
|
|
16
|
-
const fixtures = {
|
|
17
|
-
'should return tag info': () => tagInfo(reportEntry.tags),
|
|
18
|
-
'should detect if has remediations': () => hasRemediations(reportEntry),
|
|
19
|
-
'should return title': () => getTitle(reportEntry),
|
|
20
|
-
'should return severity': () => getSeverity(reportEntry),
|
|
21
|
-
'should return summary': () => getSummary(reportEntry),
|
|
22
|
-
'should return tags': () => getTags(reportEntry),
|
|
23
|
-
'should return externals': () => getExternals(reportEntry),
|
|
24
|
-
'should return remediations': () => getRemediations(reportEntry),
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
describe('PreupgradeReportList/helpers', () =>
|
|
28
|
-
testSelectorsSnapshotWithFixtures(fixtures));
|