foreman_rh_cloud 12.2.14 → 12.2.16
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/controllers/concerns/foreman_rh_cloud/registration_manager_extensions.rb +2 -2
- data/app/controllers/concerns/insights_cloud/package_profile_upload_extensions.rb +3 -0
- data/app/controllers/foreman_inventory_upload/accounts_controller.rb +1 -1
- data/app/controllers/foreman_inventory_upload/uploads_controller.rb +1 -1
- data/app/controllers/insights_cloud/ui_requests_controller.rb +2 -3
- data/app/models/concerns/rh_cloud_host.rb +14 -0
- data/app/models/foreman_rh_cloud/ping.rb +2 -1
- data/app/services/foreman_rh_cloud/tags_auth.rb +13 -3
- data/app/views/api/v2/advisor_engine/host_details.json.rabl +1 -3
- data/app/views/api/v2/hosts/insights/base.rabl +3 -2
- data/lib/foreman_inventory_upload/async/queue_for_upload_job.rb +1 -23
- data/lib/foreman_inventory_upload/async/upload_report_direct_job.rb +200 -0
- data/lib/foreman_inventory_upload.rb +0 -4
- data/lib/foreman_rh_cloud/plugin.rb +11 -4
- data/lib/foreman_rh_cloud/version.rb +1 -1
- data/lib/foreman_rh_cloud.rb +3 -3
- data/lib/insights_cloud/async/connector_playbook_execution_reporter_task.rb +3 -3
- data/lib/inventory_sync/async/inventory_hosts_sync.rb +0 -2
- data/package.json +1 -1
- data/test/controllers/accounts_controller_test.rb +1 -1
- data/test/controllers/insights_cloud/api/advisor_engine_controller_test.rb +28 -1
- data/test/controllers/insights_cloud/ui_requests_controller_test.rb +26 -0
- data/test/controllers/uploads_controller_test.rb +1 -1
- data/test/factories/insights_factories.rb +29 -0
- data/test/jobs/queue_for_upload_job_test.rb +1 -12
- data/test/jobs/upload_report_direct_job_test.rb +399 -0
- data/test/unit/foreman_rh_cloud_iop_metadata_test.rb +200 -0
- data/test/unit/lib/foreman_rh_cloud/registration_manager_extensions_test.rb +4 -42
- data/test/unit/rh_cloud_host_test.rb +191 -0
- data/test/unit/services/foreman_rh_cloud/tags_auth_test.rb +14 -0
- data/webpack/ForemanColumnExtensions/index.js +2 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/PageHeader.js +24 -17
- data/webpack/ForemanInventoryUpload/Components/PageHeader/__tests__/PageHeader.test.js +178 -8
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/ToolbarButtons.js +3 -1
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/__tests__/ToolbarButtons.test.js +69 -51
- data/webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettings.js +3 -3
- data/webpack/InsightsCloudSync/Components/InsightsTable/InsightsTable.js +3 -9
- data/webpack/InsightsCloudSync/Components/InsightsTable/__tests__/InsightsTable.test.js +24 -4
- data/webpack/InsightsCloudSync/Components/RemediationModal/RemediationModal.js +2 -2
- data/webpack/InsightsCloudSync/Components/ToolbarDropdown.js +3 -3
- data/webpack/InsightsCloudSync/InsightsCloudSync.js +3 -3
- data/webpack/InsightsCloudSync/InsightsCloudSync.test.js +10 -0
- data/webpack/InsightsCloudSync/__snapshots__/InsightsCloudSync.test.js.snap +1 -1
- data/webpack/InsightsHostDetailsTab/NewHostDetailsTab.js +5 -5
- data/webpack/InsightsVulnerabilityHostIndexExtensions/CVECountCell.js +2 -2
- data/webpack/InsightsVulnerabilityHostIndexExtensions/__tests__/CVECountCell.test.js +77 -22
- data/webpack/common/Hooks/ConfigHooks.js +3 -16
- metadata +9 -9
- data/lib/foreman_inventory_upload/async/upload_report_job.rb +0 -97
- data/lib/foreman_inventory_upload/scripts/uploader.sh.erb +0 -55
- data/test/jobs/upload_report_job_test.rb +0 -38
- data/webpack/ForemanInventoryUpload/Components/PageHeader/__tests__/__snapshots__/PageHeader.test.js.snap +0 -36
- data/webpack/InsightsCloudSync/Components/InsightsTable/__tests__/__snapshots__/InsightsTable.test.js.snap +0 -112
- data/webpack/__mocks__/foremanReact/common/hooks/API/APIHooks.js +0 -3
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`InsightsTable rendering render with Props 1`] = `
|
|
4
|
-
<Fragment>
|
|
5
|
-
<SelectAllAlert
|
|
6
|
-
clearAllSelection={[Function]}
|
|
7
|
-
isAllSelected={false}
|
|
8
|
-
selectAll={[Function]}
|
|
9
|
-
selectedIds={Object {}}
|
|
10
|
-
showSelectAllAlert={false}
|
|
11
|
-
/>
|
|
12
|
-
<Table
|
|
13
|
-
actionsMenuAppendTo="inline"
|
|
14
|
-
aria-label="Recommendations Table"
|
|
15
|
-
borders={true}
|
|
16
|
-
canCollapseAll={false}
|
|
17
|
-
canSelectAll={false}
|
|
18
|
-
canSortFavorites={true}
|
|
19
|
-
cells={
|
|
20
|
-
Array [
|
|
21
|
-
Object {
|
|
22
|
-
"id": "hostname",
|
|
23
|
-
"sortKey": "hostname",
|
|
24
|
-
"title": "Hostname",
|
|
25
|
-
"transforms": Array [
|
|
26
|
-
[Function],
|
|
27
|
-
[Function],
|
|
28
|
-
],
|
|
29
|
-
},
|
|
30
|
-
Object {
|
|
31
|
-
"id": "recommendation",
|
|
32
|
-
"sortKey": "title",
|
|
33
|
-
"title": "Recommendation",
|
|
34
|
-
"transforms": Array [
|
|
35
|
-
[Function],
|
|
36
|
-
[Function],
|
|
37
|
-
],
|
|
38
|
-
},
|
|
39
|
-
Object {
|
|
40
|
-
"cellTransforms": Array [
|
|
41
|
-
[Function],
|
|
42
|
-
],
|
|
43
|
-
"id": "total risk",
|
|
44
|
-
"sortKey": "total_risk",
|
|
45
|
-
"title": "Total risk",
|
|
46
|
-
"transforms": Array [
|
|
47
|
-
[Function],
|
|
48
|
-
[Function],
|
|
49
|
-
],
|
|
50
|
-
},
|
|
51
|
-
Object {
|
|
52
|
-
"cellTransforms": Array [
|
|
53
|
-
[Function],
|
|
54
|
-
],
|
|
55
|
-
"id": "remediate",
|
|
56
|
-
"title": "Remediate",
|
|
57
|
-
"transforms": Array [
|
|
58
|
-
[Function],
|
|
59
|
-
],
|
|
60
|
-
},
|
|
61
|
-
Object {
|
|
62
|
-
"cellTransforms": Array [
|
|
63
|
-
[Function],
|
|
64
|
-
],
|
|
65
|
-
"id": "actions",
|
|
66
|
-
"title": "",
|
|
67
|
-
"transforms": Array [
|
|
68
|
-
[Function],
|
|
69
|
-
],
|
|
70
|
-
},
|
|
71
|
-
]
|
|
72
|
-
}
|
|
73
|
-
className="rh-cloud-recommendations-table"
|
|
74
|
-
collapseAllAriaLabel=""
|
|
75
|
-
contentId="expanded-content"
|
|
76
|
-
dropdownDirection="down"
|
|
77
|
-
dropdownPosition="right"
|
|
78
|
-
expandId="expandable-toggle"
|
|
79
|
-
gridBreakPoint="grid-md"
|
|
80
|
-
isHeaderSelectDisabled={false}
|
|
81
|
-
isNested={false}
|
|
82
|
-
isStickyHeader={false}
|
|
83
|
-
isTreeTable={false}
|
|
84
|
-
onSelect={[Function]}
|
|
85
|
-
onSort={[Function]}
|
|
86
|
-
ouiaId="rh-cloud-recommendations-table"
|
|
87
|
-
ouiaSafe={true}
|
|
88
|
-
role="grid"
|
|
89
|
-
rowLabeledBy="simple-node"
|
|
90
|
-
rows={Array []}
|
|
91
|
-
selectVariant="checkbox"
|
|
92
|
-
sortBy={
|
|
93
|
-
Object {
|
|
94
|
-
"direction": "desc",
|
|
95
|
-
"index": 3,
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
variant="compact"
|
|
99
|
-
>
|
|
100
|
-
<TableHeader />
|
|
101
|
-
<TableBody />
|
|
102
|
-
</Table>
|
|
103
|
-
<TableEmptyState
|
|
104
|
-
error={null}
|
|
105
|
-
rowsLength={0}
|
|
106
|
-
status="RESOLVED"
|
|
107
|
-
/>
|
|
108
|
-
<Pagination
|
|
109
|
-
variant="bottom"
|
|
110
|
-
/>
|
|
111
|
-
</Fragment>
|
|
112
|
-
`;
|