foreman_rh_cloud 13.2.9 → 14.0.1

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 (69) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/foreman_rh_cloud/locale/fr/foreman_rh_cloud.js +61 -61
  3. data/app/assets/javascripts/foreman_rh_cloud/locale/ja/foreman_rh_cloud.js +68 -68
  4. data/app/assets/javascripts/foreman_rh_cloud/locale/ka/foreman_rh_cloud.js +9 -9
  5. data/app/assets/javascripts/foreman_rh_cloud/locale/ko/foreman_rh_cloud.js +60 -60
  6. data/app/assets/javascripts/foreman_rh_cloud/locale/zh_CN/foreman_rh_cloud.js +60 -60
  7. data/app/controllers/concerns/insights_cloud/package_profile_upload_extensions.rb +0 -9
  8. data/app/controllers/insights_cloud/api/machine_telemetries_controller.rb +2 -9
  9. data/app/models/concerns/rh_cloud_host.rb +3 -35
  10. data/app/models/insights_client_report_status.rb +1 -9
  11. data/app/models/inventory_sync/inventory_status.rb +4 -16
  12. data/app/services/foreman_rh_cloud/insights_api_forwarder.rb +5 -12
  13. data/lib/foreman_inventory_upload/async/create_missing_insights_facets.rb +2 -8
  14. data/lib/foreman_inventory_upload/generators/fact_helpers.rb +0 -8
  15. data/lib/foreman_inventory_upload/generators/queries.rb +1 -1
  16. data/lib/foreman_inventory_upload/generators/slice.rb +1 -1
  17. data/lib/foreman_rh_cloud/engine.rb +0 -1
  18. data/lib/foreman_rh_cloud/version.rb +1 -1
  19. data/lib/insights_cloud/async/vmaas_reposcan_sync.rb +8 -23
  20. data/lib/inventory_sync/async/inventory_full_sync.rb +3 -39
  21. data/locale/fr/LC_MESSAGES/foreman_rh_cloud.mo +0 -0
  22. data/locale/fr/foreman_rh_cloud.edit.po +1032 -0
  23. data/locale/fr/foreman_rh_cloud.po +65 -66
  24. data/locale/fr/foreman_rh_cloud.po.time_stamp +0 -0
  25. data/locale/ja/LC_MESSAGES/foreman_rh_cloud.mo +0 -0
  26. data/locale/ja/foreman_rh_cloud.edit.po +1026 -0
  27. data/locale/ja/foreman_rh_cloud.po +70 -72
  28. data/locale/ja/foreman_rh_cloud.po.time_stamp +0 -0
  29. data/locale/ka/LC_MESSAGES/foreman_rh_cloud.mo +0 -0
  30. data/locale/ka/foreman_rh_cloud.edit.po +1025 -0
  31. data/locale/ka/foreman_rh_cloud.po +10 -11
  32. data/locale/ka/foreman_rh_cloud.po.time_stamp +0 -0
  33. data/locale/ko/LC_MESSAGES/foreman_rh_cloud.mo +0 -0
  34. data/locale/ko/foreman_rh_cloud.edit.po +1029 -0
  35. data/locale/ko/foreman_rh_cloud.po +63 -64
  36. data/locale/ko/foreman_rh_cloud.po.time_stamp +0 -0
  37. data/locale/zh_CN/LC_MESSAGES/foreman_rh_cloud.mo +0 -0
  38. data/locale/zh_CN/foreman_rh_cloud.edit.po +1031 -0
  39. data/locale/zh_CN/foreman_rh_cloud.po +64 -65
  40. data/locale/zh_CN/foreman_rh_cloud.po.time_stamp +0 -0
  41. data/package.json +1 -1
  42. data/test/controllers/insights_cloud/api/machine_telemetries_controller_test.rb +1 -41
  43. data/test/jobs/insights_client_status_aging_test.rb +0 -40
  44. data/test/jobs/inventory_full_sync_test.rb +4 -219
  45. data/test/jobs/inventory_hosts_sync_test.rb +5 -7
  46. data/test/jobs/inventory_self_host_sync_test.rb +1 -1
  47. data/test/models/insights_client_report_status_test.rb +0 -109
  48. data/test/unit/archived_report_generator_test.rb +1 -2
  49. data/test/unit/fact_helpers_test.rb +0 -16
  50. data/test/unit/lib/insights_cloud/async/vmaas_reposcan_sync_test.rb +25 -80
  51. data/test/unit/rh_cloud_host_test.rb +0 -214
  52. data/test/unit/services/foreman_rh_cloud/branch_info_test.rb +1 -1
  53. data/test/unit/services/foreman_rh_cloud/cloud_request_forwarder_test.rb +1 -1
  54. data/test/unit/slice_generator_test.rb +2 -21
  55. data/webpack/CVEsHostDetailsTab/CVEsHostDetailsTab.js +1 -6
  56. data/webpack/CVEsHostDetailsTab/__tests__/CVEsHostDetailsTab.test.js +6 -45
  57. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/PageDescription.js +1 -3
  58. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButtonActions.js +2 -8
  59. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/integrations.test.js.snap +0 -1
  60. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/integrations.test.js +0 -1
  61. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/components/Toast.js +17 -43
  62. data/webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js +0 -7
  63. data/webpack/InsightsHostDetailsTab/NewHostDetailsTab.js +14 -44
  64. metadata +16 -10
  65. data/app/controllers/concerns/insights_cloud/candlepin_proxies_extensions.rb +0 -23
  66. data/test/controllers/insights_cloud/candlepin_proxies_extensions_test.rb +0 -70
  67. data/test/models/inventory_sync/inventory_status_test.rb +0 -85
  68. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/components/__tests__/Toast.test.js +0 -82
  69. data/webpack/InsightsHostDetailsTab/__tests__/NewHostDetailsTab.test.js +0 -154
@@ -4,20 +4,19 @@
4
4
  # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
5
  #
6
6
  # Translators:
7
+ # Bryan Kearney <bryan.kearney@gmail.com>, 2023
7
8
  # tim123, 2023
8
9
  # 0868a4d1af5275b3f70b0a6dac4c99a4, 2023
9
- # Amit Upadhye <aupadhye@redhat.com>, 2026
10
- # Ewoud Kohl van Wijngaarden <ewoud+transifex@kohlvanwijngaarden.nl>, 2026
11
- # Bryan Kearney <bryan.kearney@gmail.com>, 2026
12
- # Ondřej Gajdušek, 2026
10
+ # Amit Upadhye <aupadhye@redhat.com>, 2023
11
+ # Ewoud Kohl van Wijngaarden <ewoud+transifex@kohlvanwijngaarden.nl>, 2025
12
+ # Ondřej Gajdušek, 2025
13
13
  #
14
- #, fuzzy
15
14
  msgid ""
16
15
  msgstr ""
17
- "Project-Id-Version: foreman_rh_cloud 14.0.2\n"
16
+ "Project-Id-Version: foreman_rh_cloud 13.2.0\n"
18
17
  "Report-Msgid-Bugs-To: \n"
19
18
  "PO-Revision-Date: 2023-01-20 13:26+0000\n"
20
- "Last-Translator: Ondřej Gajdušek, 2026\n"
19
+ "Last-Translator: Ondřej Gajdušek, 2025\n"
21
20
  "Language-Team: Chinese (China) (https://app.transifex.com/foreman/teams/114/zh"
22
21
  "_CN/)\n"
23
22
  "MIME-Version: 1.0\n"
@@ -33,7 +32,7 @@ msgid "%s organizations"
33
32
  msgstr "%s 机构"
34
33
 
35
34
  msgid "A specific organization must be selected from the organization context."
36
- msgstr "必须从机构上下文中选择一个特定的机构。"
35
+ msgstr ""
37
36
 
38
37
  msgid "About subscription watch"
39
38
  msgstr "订阅查看"
@@ -48,7 +47,7 @@ msgid "All recommendations are now selected."
48
47
  msgstr "现在选择了所有建议。"
49
48
 
50
49
  msgid "Analysis disabled"
51
- msgstr "禁用分析"
50
+ msgstr ""
52
51
 
53
52
  msgid "Analytics data collection"
54
53
  msgstr "数据收集分析"
@@ -60,7 +59,7 @@ msgid "Apply Insights recommendations"
60
59
  msgstr "应用 Insights 建议"
61
60
 
62
61
  msgid "Attempted to destroy HBI host %s, but host does not exist in HBI"
63
- msgstr "尝试销毁 HBI 主机 %s,但主机在 HBI 中不存在"
62
+ msgstr ""
64
63
 
65
64
  msgid "Automatic inventory upload"
66
65
  msgstr "自动清单上传"
@@ -102,7 +101,7 @@ msgid "Completed"
102
101
  msgstr "完成"
103
102
 
104
103
  msgid "Completed with warnings"
105
- msgstr "完成,带有警告"
104
+ msgstr ""
106
105
 
107
106
  msgid "Configure"
108
107
  msgstr "配置"
@@ -123,13 +122,13 @@ msgid "Current page"
123
122
  msgstr "当前页"
124
123
 
125
124
  msgid "Details"
126
- msgstr "详情"
125
+ msgstr ""
127
126
 
128
127
  msgid "Disable"
129
- msgstr "禁用"
128
+ msgstr ""
130
129
 
131
130
  msgid "Disable vulnerability analysis"
132
- msgstr "禁用漏洞分析"
131
+ msgstr ""
133
132
 
134
133
  msgid "Disconnected hosts: "
135
134
  msgstr "断开连接的主机:"
@@ -147,28 +146,28 @@ msgid "Download latest report"
147
146
  msgstr "下载最新的报告"
148
147
 
149
148
  msgid "Download report"
150
- msgstr "下载报告"
149
+ msgstr ""
151
150
 
152
151
  msgid "Duration"
153
- msgstr "持续时间"
152
+ msgstr ""
154
153
 
155
154
  msgid "Enable"
156
- msgstr "启用"
155
+ msgstr ""
157
156
 
158
157
  msgid "Enable automatic deletion of mismatched host records from the Red Hat cloud"
159
158
  msgstr "启用自动删除来自红帽云的主机记录"
160
159
 
161
160
  msgid "Enable automatic deletion of mismatched host records from the Red Hat cloud. Ignored when using local Insights."
162
- msgstr "启用自动删除来自红帽云的主机记录。在使用本地 Insights 时忽略。"
161
+ msgstr ""
163
162
 
164
163
  msgid "Enable automatic synchronization of Insights recommendations from the Red Hat cloud"
165
164
  msgstr "启用来自红帽云的 Insights 建议自动同步"
166
165
 
167
166
  msgid "Enable automatic synchronization of Insights recommendations from the Red Hat cloud. Ignored when using local Insights."
168
- msgstr "启用自动同步来自 Red Hat cloud 的 Insights 建议。在使用本地 Insights 时忽略。"
167
+ msgstr ""
169
168
 
170
169
  msgid "Enable automatic upload of your host inventory to the Red Hat cloud. Ignored when using local Insights."
171
- msgstr "启用自动将主机清单上传到红帽云。在使用本地 Insights 时会忽略。"
170
+ msgstr ""
172
171
 
173
172
  msgid "Enable automatic upload of your hosts inventory to the Red Hat cloud"
174
173
  msgstr "启用自动将主机清单上传到红帽云"
@@ -180,7 +179,7 @@ msgid "Enable inventory upload"
180
179
  msgstr "启用清单上传"
181
180
 
182
181
  msgid "Enable vulnerability analysis"
183
- msgstr "启用漏洞分析"
182
+ msgstr ""
184
183
 
185
184
  msgid "Encountered an error while trying to access the server:"
186
185
  msgstr "在尝试访问服务器时遇到错误:"
@@ -192,22 +191,22 @@ msgid "Exclude installed packages from being uploaded to the Red Hat cloud"
192
191
  msgstr "将安装的软件包上传到红帽云"
193
192
 
194
193
  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.) Ignored when using local Insights."
195
- msgstr "在上传到红帽云时排除安装的软件包。(如果 insights_minimal_data_collection 设置为 true,则忽略此设置,且安装的软件包始终被排除。)在使用本地 Insights 时忽略。"
194
+ msgstr ""
196
195
 
197
196
  msgid "Exit Code: %s"
198
197
  msgstr "退出代码:%s"
199
198
 
200
199
  msgid "Failed"
201
- msgstr "失败"
200
+ msgstr ""
202
201
 
203
202
  msgid "Failed to destroy HBI host %s: %s"
204
- msgstr "销毁 HBI 主机 %s 失败:%s"
203
+ msgstr ""
205
204
 
206
205
  msgid "Failed to fetch hosts"
207
- msgstr "获取主机失败"
206
+ msgstr ""
208
207
 
209
208
  msgid "Failed to update vulnerability analysis status"
210
- msgstr "更新漏洞分析状态失败"
209
+ msgstr ""
211
210
 
212
211
  msgid "Fetch Insights-related host details"
213
212
  msgstr "获取与 Insights 相关的主机详情"
@@ -246,7 +245,7 @@ msgid "Generate the report, but do not upload"
246
245
  msgstr "生成报告,但不上传"
247
246
 
248
247
  msgid "Generated"
249
- msgstr "生成"
248
+ msgstr ""
250
249
 
251
250
  msgid "Generating"
252
251
  msgstr "生成中"
@@ -273,7 +272,7 @@ msgid "Host Insights recommendations"
273
272
  msgstr "主机 Insights 建议"
274
273
 
275
274
  msgid "Host inventory report job"
276
- msgstr "主机清单报告作业"
275
+ msgstr ""
277
276
 
278
277
  msgid "Host was not uploaded to your RH cloud inventory"
279
278
  msgstr "主机没有上传到您的 RH 云清单"
@@ -297,7 +296,7 @@ msgid "Insights"
297
296
  msgstr "Insights"
298
297
 
299
298
  msgid "Invalid response from server"
300
- msgstr "来自服务器的无效响应"
299
+ msgstr ""
301
300
 
302
301
  msgid "Inventory"
303
302
  msgstr "清单"
@@ -336,7 +335,7 @@ msgid "Low"
336
335
  msgstr "低"
337
336
 
338
337
  msgid "Manage vulnerability analysis"
339
- msgstr "管理漏洞分析"
338
+ msgstr ""
340
339
 
341
340
  msgid "Manual"
342
341
  msgstr "手册"
@@ -345,7 +344,7 @@ msgid "Minimal data collection"
345
344
  msgstr "最小数据收集"
346
345
 
347
346
  msgid "Missing Insights facets created: %s"
348
- msgstr "缺失创建的 Insights 情况:%s"
347
+ msgstr ""
349
348
 
350
349
  msgid "Moderate"
351
350
  msgstr "中等"
@@ -354,7 +353,7 @@ msgid "More details can be found in"
354
353
  msgstr "如需更多详细信息,请参阅"
355
354
 
356
355
  msgid "N/A"
357
- msgstr "不适用"
356
+ msgstr ""
358
357
 
359
358
  msgid "Next run: "
360
359
  msgstr "下一次运行 :"
@@ -363,31 +362,31 @@ msgid "No"
363
362
  msgstr "否"
364
363
 
365
364
  msgid "No account data available."
366
- msgstr "没有可用的帐户数据。"
365
+ msgstr ""
367
366
 
368
367
  msgid "No recent tasks"
369
- msgstr "没有最近的任务"
368
+ msgstr ""
370
369
 
371
370
  msgid "No recommendations were found for this host!"
372
371
  msgstr "没有找到此主机的建议!"
373
372
 
374
373
  msgid "No report generation tasks have been run yet."
375
- msgstr "还没有运行报告生成任务。"
374
+ msgstr ""
376
375
 
377
376
  msgid "No results found"
378
377
  msgstr "没有找到结果"
379
378
 
380
379
  msgid "No task history"
381
- msgstr "没有任务历史记录"
380
+ msgstr ""
382
381
 
383
382
  msgid "No task was found"
384
383
  msgstr "没有找到任务"
385
384
 
386
385
  msgid "No tasks have been run yet."
387
- msgstr "还没有运行任何任务。"
386
+ msgstr ""
388
387
 
389
388
  msgid "None of the selected hosts are registered"
390
- msgstr "所选主机都没有注册"
389
+ msgstr ""
391
390
 
392
391
  msgid "Not reporting"
393
392
  msgstr "未报告"
@@ -411,16 +410,16 @@ msgid "Obfuscate host names sent to the Red Hat cloud"
411
410
  msgstr "发送到红帽云的模糊主机名"
412
411
 
413
412
  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.) Ignored when using local Insights."
414
- msgstr "将发送到红帽云的主机名进行模糊化处理。(如果 insights_minimal_data_collection 设置为 true,则忽略此设置,因为报告中不包含主机名。)在使用本地 Insights 时忽略。"
413
+ msgstr ""
415
414
 
416
415
  msgid "Obfuscate ipv4 addresses sent to the Red Hat cloud"
417
416
  msgstr "发送到红帽云的模糊 ipv4 地址"
418
417
 
419
418
  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.) Ignored when using local Insights."
420
- msgstr "将发送到红帽云的 ipv4 地址进行模糊化处理。(如果 insights_minimal_data_collection 设置为 true,则忽略此设置,因为报告中不包含 ipv4 地址。)在使用本地 Insights 时忽略。"
419
+ msgstr ""
421
420
 
422
421
  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. Ignored when using local Insights."
423
- msgstr "在将数据上传到红帽云时在清单报告中包括最少需要的数据。当这是 true 时,无论 exclude_installed_packages 设置是什么,安装的软件包都排除在报告中,无论模糊化设置是什么,主机名和 IPv4 地址都不包括在报告中。在使用本地 Insights 时忽略。"
422
+ msgstr ""
424
423
 
425
424
  msgid "Only send the minimum required data to Red Hat cloud, obfuscation settings are disabled"
426
425
  msgstr "仅将最低所需的数据发送到红帽云,禁用模糊设置"
@@ -435,19 +434,19 @@ msgid "Pagination"
435
434
  msgstr "分页"
436
435
 
437
436
  msgid "Paused"
438
- msgstr "暂停"
437
+ msgstr ""
439
438
 
440
439
  msgid "Playbook"
441
440
  msgstr "运行 playbook"
442
441
 
443
442
  msgid "Previous tasks will appear here."
444
- msgstr "此处将显示前面的任务。"
443
+ msgstr ""
445
444
 
446
445
  msgid "RH Cloud"
447
446
  msgstr "RH Cloud"
448
447
 
449
448
  msgid "RHC daemon id. Ignored when using local Insights."
450
- msgstr "RHC 守护进程 ID。在使用本地 Insights 时忽略。"
449
+ msgstr ""
451
450
 
452
451
  msgid "Read more about it in RH cloud insights"
453
452
  msgstr "在 RH Cloud insights 中了解更多有关它的信息"
@@ -498,16 +497,16 @@ msgid "Remediation summary"
498
497
  msgstr "补救概述"
499
498
 
500
499
  msgid "Report Generation"
501
- msgstr "报告生成"
500
+ msgstr ""
502
501
 
503
502
  msgid "Report generation and upload started"
504
- msgstr "报告生成和上传已开始"
503
+ msgstr ""
505
504
 
506
505
  msgid "Report generation started"
507
- msgstr "报告生成开始"
506
+ msgstr ""
508
507
 
509
508
  msgid "Report saved to"
510
- msgstr "报告保持到"
509
+ msgstr ""
511
510
 
512
511
  msgid "Reporting"
513
512
  msgstr "报告"
@@ -525,7 +524,7 @@ msgid "Run remediation playbook generated by Insights"
525
524
  msgstr "运行 Insights 生成的补救 playbook"
526
525
 
527
526
  msgid "Running"
528
- msgstr "執行中"
527
+ msgstr ""
529
528
 
530
529
  msgid "Satellite server has %{hits_count} recommendations by Red Hat"
531
530
  msgstr "Satellite 服务器有 %{hits_count} 个红帽提供的建议"
@@ -546,7 +545,7 @@ msgid "Settings"
546
545
  msgstr "设置"
547
546
 
548
547
  msgid "Should import include parameter tags from Foreman? Ignored when using local Insights."
549
- msgstr "是否应该导入 Foreman 中的 include 参数标签?在使用本地 Insights 时忽略。"
548
+ msgstr ""
550
549
 
551
550
  msgid "Show Advanced Settings"
552
551
  msgstr "显示高级设置"
@@ -555,10 +554,10 @@ msgid "Show if system is configured to use local iop-advisor-engine."
555
554
  msgstr "显示系统是否被配置为使用本地 iop-advisor-engine。"
556
555
 
557
556
  msgid "Single-host report job"
558
- msgstr "单主机报告作业"
557
+ msgstr ""
559
558
 
560
559
  msgid "Single-host report job for host %s"
561
- msgstr "主机 %s 的单主机报告作业"
560
+ msgstr ""
562
561
 
563
562
  msgid "Start inventory synchronization"
564
563
  msgstr "启动清单同步"
@@ -567,13 +566,13 @@ msgid "Start report generation"
567
566
  msgstr "开始报告生成"
568
567
 
569
568
  msgid "Started"
570
- msgstr "已启动"
569
+ msgstr ""
571
570
 
572
571
  msgid "Stopped"
573
- msgstr "停止"
572
+ msgstr ""
574
573
 
575
574
  msgid "Success"
576
- msgstr "成功"
575
+ msgstr ""
577
576
 
578
577
  msgid "Successfully synced hosts: "
579
578
  msgstr "成功同步的主机:"
@@ -612,7 +611,7 @@ msgid "There are no recommendations for your hosts"
612
611
  msgstr "没有适用于您的主机的建议"
613
612
 
614
613
  msgid "There were no missing Insights facets"
615
- msgstr "没有缺失的 Insights 情况"
614
+ msgstr ""
616
615
 
617
616
  msgid "This action will also enable automatic reports upload"
618
617
  msgstr "此操作还会启用自动报告上传"
@@ -633,7 +632,7 @@ msgid "Total risks"
633
632
  msgstr "总风险"
634
633
 
635
634
  msgid "Unknown"
636
- msgstr "未知"
635
+ msgstr ""
637
636
 
638
637
  msgid "Upload hits from iop-advisor-engine"
639
638
  msgstr "从 iop-advisor-engine 上传 hits"
@@ -642,13 +641,13 @@ msgid "Upload hits information"
642
641
  msgstr "上传 hits 信息"
643
642
 
644
643
  msgid "Upload is disabled because subscription connection is not enabled. Enable it in Administer > Settings > Content."
645
- msgstr "上传被禁用,因为订阅连接没有启用。通过 Administer > Settings > Content 启用。"
644
+ msgstr ""
646
645
 
647
646
  msgid "Upload rules related to the hits"
648
647
  msgstr "上传与 hits 相关的 rule"
649
648
 
650
649
  msgid "Uploaded"
651
- msgstr "已上传"
650
+ msgstr ""
652
651
 
653
652
  msgid "Uploading"
654
653
  msgstr "上载中"
@@ -663,10 +662,10 @@ msgid "View in Red Hat Insights"
663
662
  msgstr "禁用 Red Hat Insights"
664
663
 
665
664
  msgid "View task"
666
- msgstr "查看任务"
665
+ msgstr ""
667
666
 
668
667
  msgid "View task details"
669
- msgstr "查看任务详情"
668
+ msgstr ""
670
669
 
671
670
  msgid "Vulnerabilities"
672
671
  msgstr "安全漏洞"
@@ -675,22 +674,22 @@ msgid "Vulnerability"
675
674
  msgstr "安全漏洞"
676
675
 
677
676
  msgid "Vulnerability analysis disabled"
678
- msgstr "禁用漏洞分析"
677
+ msgstr ""
679
678
 
680
679
  msgid "Vulnerability analysis enabled"
681
- msgstr "启用漏洞分析"
680
+ msgstr ""
682
681
 
683
682
  msgid "Wait and %s"
684
683
  msgstr "等待和 %s"
685
684
 
686
685
  msgid "Warning"
687
- msgstr "警告"
686
+ msgstr ""
688
687
 
689
688
  msgid "Whether the resolution requires reboot"
690
689
  msgstr "resolution 是否需要重启"
691
690
 
692
691
  msgid "You do not have permission to perform this action"
693
- msgstr "您没有执行此操作的权限"
692
+ msgstr ""
694
693
 
695
694
  msgid "category name"
696
695
  msgstr "类别名称"
File without changes
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "foreman_rh_cloud",
3
- "version": "13.2.9",
3
+ "version": "14.0.1",
4
4
  "description": "Inventory Upload =============",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -4,7 +4,6 @@ require 'rest-client'
4
4
  module InsightsCloud::Api
5
5
  class MachineTelemetriesControllerTest < ActionController::TestCase
6
6
  include KatelloCVEHelper
7
- include CandlepinIsolation
8
7
 
9
8
  setup do
10
9
  FactoryBot.create(:common_parameter, name: InsightsCloud.enable_client_param, key_type: 'boolean', value: true)
@@ -171,45 +170,6 @@ module InsightsCloud::Api
171
170
 
172
171
  assert_not_nil InsightsFacet.find_by(host_id: @host.id)
173
172
  end
174
-
175
- test "should update InsightsClientReportStatus when parameter is false and block request" do
176
- # Remove the common parameter from setup and set it to false
177
- CommonParameter.where(name: InsightsCloud.enable_client_param).delete_all
178
- FactoryBot.create(:common_parameter, name: InsightsCloud.enable_client_param, key_type: 'boolean', value: false)
179
-
180
- # Stub telemetry_config to return false (disabled)
181
- InsightsCloud::Api::MachineTelemetriesController.any_instance.stubs(:telemetry_config).returns(false)
182
-
183
- get :forward_request, params: { "path" => "platform/ingress/v1/upload" }
184
-
185
- # Request should be blocked
186
- assert_response 403
187
- assert_equal 'Telemetry is not enabled for this host', JSON.parse(@response.body)['message']
188
-
189
- # But status should be updated to USER_OMITTED
190
- @host.reload
191
- insights_status = @host.get_status(InsightsClientReportStatus)
192
- assert insights_status.persisted?, 'InsightsClientReportStatus should be created'
193
- assert_equal InsightsClientReportStatus::USER_OMITTED, insights_status.status
194
- end
195
-
196
- test "should update InsightsClientReportStatus on successful upload" do
197
- # Stub telemetry_config to return true (enabled) - common param from setup works for this
198
- InsightsCloud::Api::MachineTelemetriesController.any_instance.stubs(:telemetry_config).returns(true)
199
-
200
- net_http_resp = Net::HTTPResponse.new(1.0, 200, "OK")
201
- res = RestClient::Response.create('response body', net_http_resp, @http_req)
202
- ::ForemanRhCloud::CloudRequestForwarder.any_instance.stubs(:forward_request).returns(res)
203
-
204
- get :forward_request, params: { "path" => "/redhat_access/r/insights/uploads/" }
205
-
206
- assert_response :success
207
-
208
- # Status should have been refreshed during the request
209
- @host.reload
210
- insights_status = @host.get_status(InsightsClientReportStatus)
211
- assert insights_status.persisted?, 'InsightsClientReportStatus should be created and persisted'
212
- end
213
173
  end
214
174
 
215
175
  context '#branch_info' do
@@ -232,7 +192,7 @@ module InsightsCloud::Api
232
192
  organization: env.organization
233
193
  )
234
194
 
235
- @host.subscription_facet.pools << FactoryBot.create(:katello_pool, account_number: '5678', cp_id: 1)
195
+ @host.organization.pools << FactoryBot.create(:katello_pool, account_number: '5678', cp_id: 1)
236
196
 
237
197
  uuid = @host.subscription_facet.uuid
238
198
 
@@ -31,44 +31,4 @@ class InsightsClientStatusAgingTest < ActiveSupport::TestCase
31
31
  assert_equal InsightsClientReportStatus::NO_REPORT, @host3.get_status(InsightsClientReportStatus).status
32
32
  assert_equal InsightsClientReportStatus::NO_REPORT, @host4.get_status(InsightsClientReportStatus).status
33
33
  end
34
-
35
- test 'aging job does not affect USER_OMITTED hosts' do
36
- # Host 1: USER_OMITTED with old reported_at (should stay USER_OMITTED)
37
- InsightsClientReportStatus.find_or_initialize_by(host_id: @host1.id).update(
38
- status: InsightsClientReportStatus::USER_OMITTED,
39
- reported_at: Time.now - InsightsClientReportStatus::REPORT_INTERVAL - 1.day
40
- )
41
-
42
- # Host 2: REPORTING with old reported_at (should change to NO_REPORT)
43
- InsightsClientReportStatus.find_or_initialize_by(host_id: @host2.id).update(
44
- status: InsightsClientReportStatus::REPORTING,
45
- reported_at: Time.now - InsightsClientReportStatus::REPORT_INTERVAL - 1.day
46
- )
47
-
48
- # Host 3: USER_OMITTED with recent reported_at (should stay USER_OMITTED)
49
- InsightsClientReportStatus.find_or_initialize_by(host_id: @host3.id).update(
50
- status: InsightsClientReportStatus::USER_OMITTED,
51
- reported_at: Time.now - 1.day
52
- )
53
-
54
- # Host 4: REPORTING with recent reported_at (should stay REPORTING)
55
- InsightsClientReportStatus.find_or_initialize_by(host_id: @host4.id).update(
56
- status: InsightsClientReportStatus::REPORTING,
57
- reported_at: Time.now - 1.day
58
- )
59
-
60
- action = create_and_plan_action(InsightsCloud::Async::InsightsClientStatusAging)
61
- run_action(action)
62
-
63
- @hosts.each(&:reload)
64
-
65
- assert_equal InsightsClientReportStatus::USER_OMITTED, @host1.get_status(InsightsClientReportStatus).status,
66
- 'USER_OMITTED host with old report should stay USER_OMITTED'
67
- assert_equal InsightsClientReportStatus::NO_REPORT, @host2.get_status(InsightsClientReportStatus).status,
68
- 'REPORTING host with old report should change to NO_REPORT'
69
- assert_equal InsightsClientReportStatus::USER_OMITTED, @host3.get_status(InsightsClientReportStatus).status,
70
- 'USER_OMITTED host with recent report should stay USER_OMITTED'
71
- assert_equal InsightsClientReportStatus::REPORTING, @host4.get_status(InsightsClientReportStatus).status,
72
- 'REPORTING host with recent report should stay REPORTING'
73
- end
74
34
  end