foreman_rh_cloud 12.2.5 → 12.2.7
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_rh_cloud/locale/fr/foreman_rh_cloud.js +50 -17
- data/app/assets/javascripts/foreman_rh_cloud/locale/ja/foreman_rh_cloud.js +50 -17
- data/app/assets/javascripts/foreman_rh_cloud/locale/ka/foreman_rh_cloud.js +49 -16
- data/app/assets/javascripts/foreman_rh_cloud/locale/ko/foreman_rh_cloud.js +50 -17
- data/app/assets/javascripts/foreman_rh_cloud/locale/zh_CN/foreman_rh_cloud.js +50 -17
- data/app/models/insights_hit.rb +1 -1
- data/lib/foreman_inventory_upload/async/generate_report_job.rb +12 -7
- data/lib/foreman_inventory_upload/async/queue_for_upload_job.rb +4 -4
- data/lib/foreman_inventory_upload/async/upload_report_job.rb +4 -4
- data/lib/foreman_rh_cloud/engine.rb +21 -0
- data/lib/foreman_rh_cloud/version.rb +1 -1
- data/locale/foreman_rh_cloud.pot +219 -152
- data/locale/fr/LC_MESSAGES/foreman_rh_cloud.mo +0 -0
- data/locale/fr/foreman_rh_cloud.po +50 -18
- data/locale/ja/LC_MESSAGES/foreman_rh_cloud.mo +0 -0
- data/locale/ja/foreman_rh_cloud.po +50 -18
- data/locale/ka/LC_MESSAGES/foreman_rh_cloud.mo +0 -0
- data/locale/ka/foreman_rh_cloud.po +49 -17
- data/locale/ko/LC_MESSAGES/foreman_rh_cloud.mo +0 -0
- data/locale/ko/foreman_rh_cloud.po +50 -18
- data/locale/zh_CN/LC_MESSAGES/foreman_rh_cloud.mo +0 -0
- data/locale/zh_CN/foreman_rh_cloud.po +50 -18
- data/package.json +1 -1
- data/test/jobs/queue_for_upload_job_test.rb +63 -0
- data/test/jobs/upload_report_job_test.rb +2 -1
- data/webpack/InsightsHostDetailsTab/InsightsTab.scss +4 -0
- data/webpack/InsightsHostDetailsTab/InsightsTotalRiskChart.js +2 -2
- metadata +8 -3
@@ -9,7 +9,6 @@
|
|
9
9
|
# 0868a4d1af5275b3f70b0a6dac4c99a4, 2023
|
10
10
|
# Ewoud Kohl van Wijngaarden <ewoud+transifex@kohlvanwijngaarden.nl>, 2025
|
11
11
|
#
|
12
|
-
#, fuzzy
|
13
12
|
msgid ""
|
14
13
|
msgstr ""
|
15
14
|
"Project-Id-Version: foreman_rh_cloud 11.1.0\n"
|
@@ -42,6 +41,9 @@ msgstr "고급 인벤토리 설정"
|
|
42
41
|
msgid "All recommendations are now selected."
|
43
42
|
msgstr "모든 권장 사항이 선택되었습니다."
|
44
43
|
|
44
|
+
msgid "Analytics data collection"
|
45
|
+
msgstr ""
|
46
|
+
|
45
47
|
msgid "Any Organization"
|
46
48
|
msgstr "모든 조직 "
|
47
49
|
|
@@ -141,17 +143,14 @@ msgstr "인벤토리 업로드 활성화"
|
|
141
143
|
msgid "Encountered an error while trying to access the server:"
|
142
144
|
msgstr "서버에 접근하는 동안 오류가 발생했습니다:"
|
143
145
|
|
144
|
-
msgid "Exclude installed
|
145
|
-
msgstr "
|
146
|
+
msgid "Exclude installed packages"
|
147
|
+
msgstr ""
|
146
148
|
|
147
149
|
msgid "Exclude installed packages from being uploaded to the Red Hat cloud"
|
148
150
|
msgstr "설치된 패키지가 Red Hat 클라우드에 업로드되는 것을 제외합니다."
|
149
151
|
|
150
|
-
msgid "Exclude packages"
|
151
|
-
msgstr "
|
152
|
-
|
153
|
-
msgid "Exclude packages from being uploaded to the Red Hat cloud"
|
154
|
-
msgstr "Red Hat 클라우드에 업로드되는 패키지 제외"
|
152
|
+
msgid "Exclude installed packages from being uploaded to the Red Hat cloud. (If insights_minimal_data_collection is set to true, this setting is ignored and installed packages are always excluded.)"
|
153
|
+
msgstr ""
|
155
154
|
|
156
155
|
msgid "Exit Code: %s"
|
157
156
|
msgstr "종료 코드: %s"
|
@@ -186,6 +185,9 @@ msgstr "전체 화면"
|
|
186
185
|
msgid "Generate and upload report"
|
187
186
|
msgstr "보고서 생성 및 업로드"
|
188
187
|
|
188
|
+
msgid "Generate report"
|
189
|
+
msgstr ""
|
190
|
+
|
189
191
|
msgid "Generate the report, but do not upload"
|
190
192
|
msgstr "보고서를 생성하되 업로드하지 마십시오."
|
191
193
|
|
@@ -255,6 +257,9 @@ msgstr "페이지당 항목"
|
|
255
257
|
msgid "Knowledgebase article"
|
256
258
|
msgstr "지식베이스 문서"
|
257
259
|
|
260
|
+
msgid "Learn more about {minimalDataCollectionSetting}."
|
261
|
+
msgstr ""
|
262
|
+
|
258
263
|
msgid "List of host UUIDs"
|
259
264
|
msgstr "호스트 UUID 목록"
|
260
265
|
|
@@ -270,6 +275,9 @@ msgstr "낮음"
|
|
270
275
|
msgid "Manual"
|
271
276
|
msgstr "수동"
|
272
277
|
|
278
|
+
msgid "Minimal data collection"
|
279
|
+
msgstr ""
|
280
|
+
|
273
281
|
msgid "Moderate"
|
274
282
|
msgstr "중간 수준"
|
275
283
|
|
@@ -300,21 +308,33 @@ msgstr "동기화할 것이 없습니다. 이 조직에 대한 서브스크립
|
|
300
308
|
msgid "Notice"
|
301
309
|
msgstr "주의 "
|
302
310
|
|
303
|
-
msgid "Obfuscate IPs"
|
304
|
-
msgstr "IP 난독화"
|
305
|
-
|
306
311
|
msgid "Obfuscate host ipv4 addresses"
|
307
312
|
msgstr "호스트 ipv4 주소 난독화"
|
308
313
|
|
314
|
+
msgid "Obfuscate host ipv4 addresses."
|
315
|
+
msgstr ""
|
316
|
+
|
309
317
|
msgid "Obfuscate host names"
|
310
318
|
msgstr "호스트 이름 난독화"
|
311
319
|
|
312
320
|
msgid "Obfuscate host names sent to the Red Hat cloud"
|
313
321
|
msgstr "Red Hat 클라우드로 전송된 호스트 이름을 난독화합니다."
|
314
322
|
|
323
|
+
msgid "Obfuscate host names sent to the Red Hat cloud. (If insights_minimal_data_collection is set to true, this setting is ignored because host names are not included in the report.)"
|
324
|
+
msgstr ""
|
325
|
+
|
315
326
|
msgid "Obfuscate ipv4 addresses sent to the Red Hat cloud"
|
316
327
|
msgstr "Red Hat 클라우드로 전송된 ipv4 주소 난독화"
|
317
328
|
|
329
|
+
msgid "Obfuscate ipv4 addresses sent to the Red Hat cloud. (If insights_minimal_data_collection is set to true, this setting is ignored because host IPv4 addresses are not included in the report.)"
|
330
|
+
msgstr ""
|
331
|
+
|
332
|
+
msgid "Only include the minimum required data in inventory reports for uploading to Red Hat cloud. When this is true, installed packages are excluded from the report regardless of the exclude_installed_packages setting, and host names and IPv4 addresses are excluded from the report regardless of obfuscation settings."
|
333
|
+
msgstr ""
|
334
|
+
|
335
|
+
msgid "Only send the minimum required data to Red Hat cloud, obfuscation settings are disabled"
|
336
|
+
msgstr ""
|
337
|
+
|
318
338
|
msgid "Oops! Couldn't find organization that matches your query"
|
319
339
|
msgstr "죄송합니다! 귀하의 쿼리와 일치하는 조직을 찾을 수 없습니다."
|
320
340
|
|
@@ -333,9 +353,6 @@ msgstr "RH 클라우드"
|
|
333
353
|
msgid "RHC daemon id"
|
334
354
|
msgstr "RHC 데몬 ID"
|
335
355
|
|
336
|
-
msgid "RHCloud"
|
337
|
-
msgstr "RHCloud"
|
338
|
-
|
339
356
|
msgid "Read more about it in RH cloud insights"
|
340
357
|
msgstr "RH 클라우드 Insights에서 이에 대해 자세히 알아보세요."
|
341
358
|
|
@@ -393,8 +410,8 @@ msgstr "해결 방법"
|
|
393
410
|
msgid "Run RH Cloud playbook"
|
394
411
|
msgstr "RH Cloud playbook 실행"
|
395
412
|
|
396
|
-
msgid "Run playbook
|
397
|
-
msgstr "
|
413
|
+
msgid "Run playbook generated by Red Hat remediations app"
|
414
|
+
msgstr ""
|
398
415
|
|
399
416
|
msgid "Run remediation playbook generated by Insights"
|
400
417
|
msgstr "Insights에서 생성된 수정 playbook 실행"
|
@@ -408,6 +425,9 @@ msgstr "호스트 제거를 위한 범위 검색 문자열"
|
|
408
425
|
msgid "Select recommendations from all pages"
|
409
426
|
msgstr "모든 페이지에서 추천을 선택하세요"
|
410
427
|
|
428
|
+
msgid "Send additional data to enhance Insights services, as per the settings"
|
429
|
+
msgstr ""
|
430
|
+
|
411
431
|
msgid "Set the current organization context for the request"
|
412
432
|
msgstr "요청에 대한 현재 조직 컨텍스트 설정"
|
413
433
|
|
@@ -453,8 +473,8 @@ msgstr "Red Hat 하이브리드 클라우드 콘솔은 이 Foreman 인스턴스
|
|
453
473
|
msgid "The report file %{filename} doesn't exist"
|
454
474
|
msgstr "보고서 파일%{filename}이/가 존재하지 않습니다"
|
455
475
|
|
456
|
-
msgid "The scheduled process is disabled because this Foreman is configured with
|
457
|
-
msgstr "
|
476
|
+
msgid "The scheduled process is disabled because this Foreman is configured with a local IoP Smart Proxy."
|
477
|
+
msgstr ""
|
458
478
|
|
459
479
|
msgid "The server returned the following error: %s"
|
460
480
|
msgstr "서버에서 다음 오류가 반환되었습니다. %s"
|
@@ -474,6 +494,9 @@ msgstr "이 보고서를 모든 Foreman 조직에 대해 활성화하려면 {upl
|
|
474
494
|
msgid "To manually upload the data for a specific organization, select an organization and click {restartButtonName}."
|
475
495
|
msgstr "특정 조직에 대한 데이터를 수동으로 업로드하려면 조직을 선택하고 {restartButtonName}를 클릭하십시오."
|
476
496
|
|
497
|
+
msgid "Total CVEs"
|
498
|
+
msgstr ""
|
499
|
+
|
477
500
|
msgid "Total risk"
|
478
501
|
msgstr "총 위험"
|
479
502
|
|
@@ -501,6 +524,12 @@ msgstr "모든 권장 사항 보기"
|
|
501
524
|
msgid "View in Red Hat Insights"
|
502
525
|
msgstr "Red Hat Insights에서 보기"
|
503
526
|
|
527
|
+
msgid "Vulnerabilities"
|
528
|
+
msgstr ""
|
529
|
+
|
530
|
+
msgid "Vulnerability"
|
531
|
+
msgstr ""
|
532
|
+
|
504
533
|
msgid "Wait and %s"
|
505
534
|
msgstr "대기 및 %s"
|
506
535
|
|
@@ -567,6 +596,9 @@ msgstr "규칙 ID"
|
|
567
596
|
msgid "rule title"
|
568
597
|
msgstr "규칙 제목"
|
569
598
|
|
599
|
+
msgid "setting minimal data collection"
|
600
|
+
msgstr ""
|
601
|
+
|
570
602
|
msgid "solution url"
|
571
603
|
msgstr "솔루션 URL"
|
572
604
|
|
Binary file
|
@@ -10,7 +10,6 @@
|
|
10
10
|
# Amit Upadhye <aupadhye@redhat.com>, 2023
|
11
11
|
# Ewoud Kohl van Wijngaarden <ewoud+transifex@kohlvanwijngaarden.nl>, 2025
|
12
12
|
#
|
13
|
-
#, fuzzy
|
14
13
|
msgid ""
|
15
14
|
msgstr ""
|
16
15
|
"Project-Id-Version: foreman_rh_cloud 11.1.0\n"
|
@@ -44,6 +43,9 @@ msgstr "高级清单设置"
|
|
44
43
|
msgid "All recommendations are now selected."
|
45
44
|
msgstr "现在选择了所有建议。"
|
46
45
|
|
46
|
+
msgid "Analytics data collection"
|
47
|
+
msgstr ""
|
48
|
+
|
47
49
|
msgid "Any Organization"
|
48
50
|
msgstr "任意机构"
|
49
51
|
|
@@ -143,17 +145,14 @@ msgstr "启用清单上传"
|
|
143
145
|
msgid "Encountered an error while trying to access the server:"
|
144
146
|
msgstr "在尝试访问服务器时遇到错误:"
|
145
147
|
|
146
|
-
msgid "Exclude installed
|
147
|
-
msgstr "
|
148
|
+
msgid "Exclude installed packages"
|
149
|
+
msgstr ""
|
148
150
|
|
149
151
|
msgid "Exclude installed packages from being uploaded to the Red Hat cloud"
|
150
152
|
msgstr "将安装的软件包上传到红帽云"
|
151
153
|
|
152
|
-
msgid "Exclude packages"
|
153
|
-
msgstr "
|
154
|
-
|
155
|
-
msgid "Exclude packages from being uploaded to the Red Hat cloud"
|
156
|
-
msgstr "排除软件包上传到红帽云"
|
154
|
+
msgid "Exclude installed packages from being uploaded to the Red Hat cloud. (If insights_minimal_data_collection is set to true, this setting is ignored and installed packages are always excluded.)"
|
155
|
+
msgstr ""
|
157
156
|
|
158
157
|
msgid "Exit Code: %s"
|
159
158
|
msgstr "退出代码:%s"
|
@@ -188,6 +187,9 @@ msgstr "全屏"
|
|
188
187
|
msgid "Generate and upload report"
|
189
188
|
msgstr "生成并上传报告"
|
190
189
|
|
190
|
+
msgid "Generate report"
|
191
|
+
msgstr ""
|
192
|
+
|
191
193
|
msgid "Generate the report, but do not upload"
|
192
194
|
msgstr "生成报告,但不上传"
|
193
195
|
|
@@ -257,6 +259,9 @@ msgstr "每页的项"
|
|
257
259
|
msgid "Knowledgebase article"
|
258
260
|
msgstr "知识库文章"
|
259
261
|
|
262
|
+
msgid "Learn more about {minimalDataCollectionSetting}."
|
263
|
+
msgstr ""
|
264
|
+
|
260
265
|
msgid "List of host UUIDs"
|
261
266
|
msgstr "主机 UUID 列表"
|
262
267
|
|
@@ -272,6 +277,9 @@ msgstr "低"
|
|
272
277
|
msgid "Manual"
|
273
278
|
msgstr "手册"
|
274
279
|
|
280
|
+
msgid "Minimal data collection"
|
281
|
+
msgstr ""
|
282
|
+
|
275
283
|
msgid "Moderate"
|
276
284
|
msgstr "中等"
|
277
285
|
|
@@ -302,21 +310,33 @@ msgstr "没有同步,此机构没有带有订阅的主机。"
|
|
302
310
|
msgid "Notice"
|
303
311
|
msgstr "注意事項"
|
304
312
|
|
305
|
-
msgid "Obfuscate IPs"
|
306
|
-
msgstr "模糊 IP"
|
307
|
-
|
308
313
|
msgid "Obfuscate host ipv4 addresses"
|
309
314
|
msgstr "模糊的主机 ipv4 地址"
|
310
315
|
|
316
|
+
msgid "Obfuscate host ipv4 addresses."
|
317
|
+
msgstr ""
|
318
|
+
|
311
319
|
msgid "Obfuscate host names"
|
312
320
|
msgstr "模糊主机名"
|
313
321
|
|
314
322
|
msgid "Obfuscate host names sent to the Red Hat cloud"
|
315
323
|
msgstr "发送到红帽云的模糊主机名"
|
316
324
|
|
325
|
+
msgid "Obfuscate host names sent to the Red Hat cloud. (If insights_minimal_data_collection is set to true, this setting is ignored because host names are not included in the report.)"
|
326
|
+
msgstr ""
|
327
|
+
|
317
328
|
msgid "Obfuscate ipv4 addresses sent to the Red Hat cloud"
|
318
329
|
msgstr "发送到红帽云的模糊 ipv4 地址"
|
319
330
|
|
331
|
+
msgid "Obfuscate ipv4 addresses sent to the Red Hat cloud. (If insights_minimal_data_collection is set to true, this setting is ignored because host IPv4 addresses are not included in the report.)"
|
332
|
+
msgstr ""
|
333
|
+
|
334
|
+
msgid "Only include the minimum required data in inventory reports for uploading to Red Hat cloud. When this is true, installed packages are excluded from the report regardless of the exclude_installed_packages setting, and host names and IPv4 addresses are excluded from the report regardless of obfuscation settings."
|
335
|
+
msgstr ""
|
336
|
+
|
337
|
+
msgid "Only send the minimum required data to Red Hat cloud, obfuscation settings are disabled"
|
338
|
+
msgstr ""
|
339
|
+
|
320
340
|
msgid "Oops! Couldn't find organization that matches your query"
|
321
341
|
msgstr "未找到与您的查询匹配的机构"
|
322
342
|
|
@@ -335,9 +355,6 @@ msgstr "RH Cloud"
|
|
335
355
|
msgid "RHC daemon id"
|
336
356
|
msgstr "RHC 守护进程 ID"
|
337
357
|
|
338
|
-
msgid "RHCloud"
|
339
|
-
msgstr "RHCloud"
|
340
|
-
|
341
358
|
msgid "Read more about it in RH cloud insights"
|
342
359
|
msgstr "在 RH Cloud insights 中了解更多有关它的信息"
|
343
360
|
|
@@ -395,8 +412,8 @@ msgstr "解决方案"
|
|
395
412
|
msgid "Run RH Cloud playbook"
|
396
413
|
msgstr "运行 RH Cloud playbook"
|
397
414
|
|
398
|
-
msgid "Run playbook
|
399
|
-
msgstr "
|
415
|
+
msgid "Run playbook generated by Red Hat remediations app"
|
416
|
+
msgstr ""
|
400
417
|
|
401
418
|
msgid "Run remediation playbook generated by Insights"
|
402
419
|
msgstr "运行 Insights 生成的补救 playbook"
|
@@ -410,6 +427,9 @@ msgstr "用于删除主机的有范围的搜索字符串"
|
|
410
427
|
msgid "Select recommendations from all pages"
|
411
428
|
msgstr "在所有页面中选择建议"
|
412
429
|
|
430
|
+
msgid "Send additional data to enhance Insights services, as per the settings"
|
431
|
+
msgstr ""
|
432
|
+
|
413
433
|
msgid "Set the current organization context for the request"
|
414
434
|
msgstr "设置请求的当前机构上下文"
|
415
435
|
|
@@ -455,8 +475,8 @@ msgstr "Red Hat Hybrid Cloud Console 提供了一组云服务,包括 Red Hat I
|
|
455
475
|
msgid "The report file %{filename} doesn't exist"
|
456
476
|
msgstr "报告文件 %{filename} 不存在"
|
457
477
|
|
458
|
-
msgid "The scheduled process is disabled because this Foreman is configured with
|
459
|
-
msgstr "
|
478
|
+
msgid "The scheduled process is disabled because this Foreman is configured with a local IoP Smart Proxy."
|
479
|
+
msgstr ""
|
460
480
|
|
461
481
|
msgid "The server returned the following error: %s"
|
462
482
|
msgstr "服务器返回以下错误:%s"
|
@@ -476,6 +496,9 @@ msgstr "要为所有 Foreman 机构启用此报告,请将 {uploadButtonName}
|
|
476
496
|
msgid "To manually upload the data for a specific organization, select an organization and click {restartButtonName}."
|
477
497
|
msgstr "要手动上传特定机构的数据,请选择机构并点 {restartButtonName}。"
|
478
498
|
|
499
|
+
msgid "Total CVEs"
|
500
|
+
msgstr ""
|
501
|
+
|
479
502
|
msgid "Total risk"
|
480
503
|
msgstr "总风险"
|
481
504
|
|
@@ -503,6 +526,12 @@ msgstr "查看所有建议"
|
|
503
526
|
msgid "View in Red Hat Insights"
|
504
527
|
msgstr "禁用 Red Hat Insights"
|
505
528
|
|
529
|
+
msgid "Vulnerabilities"
|
530
|
+
msgstr ""
|
531
|
+
|
532
|
+
msgid "Vulnerability"
|
533
|
+
msgstr ""
|
534
|
+
|
506
535
|
msgid "Wait and %s"
|
507
536
|
msgstr "等待和 %s"
|
508
537
|
|
@@ -569,6 +598,9 @@ msgstr "rule id"
|
|
569
598
|
msgid "rule title"
|
570
599
|
msgstr "rule 标题"
|
571
600
|
|
601
|
+
msgid "setting minimal data collection"
|
602
|
+
msgstr ""
|
603
|
+
|
572
604
|
msgid "solution url"
|
573
605
|
msgstr "solution url"
|
574
606
|
|
data/package.json
CHANGED
@@ -0,0 +1,63 @@
|
|
1
|
+
require 'test_plugin_helper'
|
2
|
+
require 'foreman_tasks/test_helpers'
|
3
|
+
|
4
|
+
class QueueForUploadJobTest < ActiveSupport::TestCase
|
5
|
+
include ForemanTasks::TestHelpers::WithInThreadExecutor
|
6
|
+
include FolderIsolation
|
7
|
+
|
8
|
+
let(:organization) { FactoryBot.create(:organization) }
|
9
|
+
let(:base_folder) { @tmpdir }
|
10
|
+
let(:report_file) { 'test_report.tar.xz' }
|
11
|
+
let(:report_path) { File.join(base_folder, report_file) }
|
12
|
+
let(:uploads_folder) { ForemanInventoryUpload.uploads_folder }
|
13
|
+
subject { ForemanTasks.sync_task(ForemanInventoryUpload::Async::QueueForUploadJob, base_folder, report_file, organization.id) }
|
14
|
+
|
15
|
+
setup do
|
16
|
+
# Stub the script template source
|
17
|
+
script_source = File.join(ForemanRhCloud::Engine.root, 'lib/foreman_inventory_upload/scripts/uploader.sh.erb')
|
18
|
+
File.stubs(:read).with(script_source).returns('#!/bin/bash\necho "Test script"')
|
19
|
+
|
20
|
+
# Stub template rendering
|
21
|
+
Foreman::Renderer.stubs(:render).returns('#!/bin/bash\necho "Rendered script"')
|
22
|
+
|
23
|
+
# Stub additional settings that are accessed
|
24
|
+
Setting.stubs(:[]).with(:content_default_http_proxy).returns(nil)
|
25
|
+
Setting.stubs(:[]).with(:http_proxy).returns(nil)
|
26
|
+
Setting.stubs(:[]).with("foreman_tasks_sync_task_timeout").returns(120)
|
27
|
+
FileUtils.touch(report_path)
|
28
|
+
end
|
29
|
+
|
30
|
+
teardown do
|
31
|
+
FileUtils.rm_rf(uploads_folder) if Dir.exist?(uploads_folder)
|
32
|
+
end
|
33
|
+
|
34
|
+
test 'plan method sets up the job correctly and calls plan_upload_report' do
|
35
|
+
# Mock plan_upload_report to verify it's called
|
36
|
+
ForemanInventoryUpload::Async::QueueForUploadJob.any_instance.expects(:plan_upload_report).once
|
37
|
+
|
38
|
+
assert_equal 'success', subject.result
|
39
|
+
end
|
40
|
+
|
41
|
+
test 'run method processes file and moves it to uploads folder' do
|
42
|
+
ForemanInventoryUpload::Async::QueueForUploadJob.any_instance.stubs(:plan_upload_report)
|
43
|
+
|
44
|
+
assert_equal 'success', subject.result
|
45
|
+
|
46
|
+
# Verify the file was moved
|
47
|
+
refute File.exist?(report_path), "Original file should be moved"
|
48
|
+
assert File.exist?(File.join(uploads_folder, report_file)), "File should exist in uploads folder"
|
49
|
+
end
|
50
|
+
|
51
|
+
test 'creates necessary folders and scripts' do
|
52
|
+
ForemanInventoryUpload::Async::QueueForUploadJob.any_instance.stubs(:plan_upload_report)
|
53
|
+
|
54
|
+
assert_equal 'success', subject.result
|
55
|
+
|
56
|
+
# Verify the uploads folder was created
|
57
|
+
assert Dir.exist?(uploads_folder), "Uploads folder should be created"
|
58
|
+
|
59
|
+
# Verify the script file was created
|
60
|
+
script_path = File.join(uploads_folder, ForemanInventoryUpload.upload_script_file)
|
61
|
+
assert File.exist?(script_path), "Upload script should be created"
|
62
|
+
end
|
63
|
+
end
|
@@ -18,7 +18,8 @@ class UploadReportJobTest < ActiveSupport::TestCase
|
|
18
18
|
|
19
19
|
label = ForemanInventoryUpload::Async::UploadReportJob.output_label(organization.id)
|
20
20
|
progress_output = ForemanInventoryUpload::Async::ProgressOutput.get(label)
|
21
|
-
assert_match(/
|
21
|
+
assert_match(/upload was canceled because connection to Insights is not enabled/, progress_output.full_output)
|
22
|
+
assert_match(/Report location:/, progress_output.full_output)
|
22
23
|
assert_match(/exit 1/, progress_output.status)
|
23
24
|
end
|
24
25
|
|
@@ -3,8 +3,7 @@ import PropTypes from 'prop-types';
|
|
3
3
|
import { useDispatch } from 'react-redux';
|
4
4
|
import { push } from 'connected-react-router';
|
5
5
|
import { useHistory } from 'react-router-dom';
|
6
|
-
import { Bullseye, Title } from '@patternfly/react-core';
|
7
|
-
import { DropdownItem } from '@patternfly/react-core/deprecated';
|
6
|
+
import { Bullseye, DropdownItem, Title } from '@patternfly/react-core';
|
8
7
|
import {
|
9
8
|
ChartDonut,
|
10
9
|
ChartLegend,
|
@@ -127,6 +126,7 @@ const InsightsTotalRiskCard = ({ hostDetails: { id } }) => {
|
|
127
126
|
return (
|
128
127
|
<CardTemplate
|
129
128
|
header={__('Total risks')}
|
129
|
+
overrideDropdownProps={{ id: 'total-risks-dropdown-container' }}
|
130
130
|
dropdownItems={[
|
131
131
|
<DropdownItem
|
132
132
|
key="insights-tab"
|
metadata
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman_rh_cloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 12.2.
|
4
|
+
version: 12.2.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Foreman Red Hat Cloud team
|
8
|
+
autorequire:
|
8
9
|
bindir: bin
|
9
10
|
cert_chain: []
|
10
|
-
date:
|
11
|
+
date: 2025-09-15 00:00:00.000000000 Z
|
11
12
|
dependencies:
|
12
13
|
- !ruby/object:Gem::Dependency
|
13
14
|
name: foreman_ansible
|
@@ -267,6 +268,7 @@ files:
|
|
267
268
|
- test/jobs/inventory_hosts_sync_test.rb
|
268
269
|
- test/jobs/inventory_scheduled_sync_test.rb
|
269
270
|
- test/jobs/inventory_self_host_sync_test.rb
|
271
|
+
- test/jobs/queue_for_upload_job_test.rb
|
270
272
|
- test/jobs/remove_insights_hosts_job_test.rb
|
271
273
|
- test/jobs/upload_report_job_test.rb
|
272
274
|
- test/models/insights_client_report_status_test.rb
|
@@ -674,6 +676,7 @@ homepage: https://github.com/theforeman/foreman_rh_cloud
|
|
674
676
|
licenses:
|
675
677
|
- GPL-3.0
|
676
678
|
metadata: {}
|
679
|
+
post_install_message:
|
677
680
|
rdoc_options: []
|
678
681
|
require_paths:
|
679
682
|
- lib
|
@@ -691,7 +694,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
691
694
|
- !ruby/object:Gem::Version
|
692
695
|
version: '0'
|
693
696
|
requirements: []
|
694
|
-
rubygems_version: 3.
|
697
|
+
rubygems_version: 3.2.33
|
698
|
+
signing_key:
|
695
699
|
specification_version: 4
|
696
700
|
summary: Summary of ForemanRhCloud.
|
697
701
|
test_files:
|
@@ -719,6 +723,7 @@ test_files:
|
|
719
723
|
- test/jobs/inventory_hosts_sync_test.rb
|
720
724
|
- test/jobs/inventory_scheduled_sync_test.rb
|
721
725
|
- test/jobs/inventory_self_host_sync_test.rb
|
726
|
+
- test/jobs/queue_for_upload_job_test.rb
|
722
727
|
- test/jobs/remove_insights_hosts_job_test.rb
|
723
728
|
- test/jobs/upload_report_job_test.rb
|
724
729
|
- test/models/insights_client_report_status_test.rb
|