foreman_rh_cloud 14.7.0 → 15.0.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 (57) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/foreman_rh_cloud/locale/fr/foreman_rh_cloud.js +32 -32
  3. data/app/assets/javascripts/foreman_rh_cloud/locale/ja/foreman_rh_cloud.js +43 -43
  4. data/app/assets/javascripts/foreman_rh_cloud/locale/ka/foreman_rh_cloud.js +3 -3
  5. data/app/assets/javascripts/foreman_rh_cloud/locale/ko/foreman_rh_cloud.js +27 -27
  6. data/app/assets/javascripts/foreman_rh_cloud/locale/zh_CN/foreman_rh_cloud.js +26 -26
  7. data/app/services/foreman_rh_cloud/tags_auth.rb +28 -13
  8. data/config/routes.rb +10 -0
  9. data/lib/foreman_rh_cloud/plugin.rb +14 -0
  10. data/lib/foreman_rh_cloud/version.rb +1 -1
  11. data/locale/foreman_rh_cloud.pot +2 -2
  12. data/locale/fr/LC_MESSAGES/foreman_rh_cloud.mo +0 -0
  13. data/locale/fr/foreman_rh_cloud.po +34 -34
  14. data/locale/ja/LC_MESSAGES/foreman_rh_cloud.mo +0 -0
  15. data/locale/ja/foreman_rh_cloud.po +43 -43
  16. data/locale/ka/LC_MESSAGES/foreman_rh_cloud.mo +0 -0
  17. data/locale/ka/foreman_rh_cloud.po +3 -3
  18. data/locale/ko/LC_MESSAGES/foreman_rh_cloud.mo +0 -0
  19. data/locale/ko/foreman_rh_cloud.po +27 -27
  20. data/locale/zh_CN/LC_MESSAGES/foreman_rh_cloud.mo +0 -0
  21. data/locale/zh_CN/foreman_rh_cloud.po +27 -27
  22. data/package.json +1 -1
  23. data/test/controllers/insights_cloud/api/machine_telemetries_controller_test.rb +0 -1
  24. data/test/test_plugin_helper.rb +0 -8
  25. data/test/unit/services/foreman_rh_cloud/cloud_request_forwarder_test.rb +0 -1
  26. data/test/unit/services/foreman_rh_cloud/tags_auth_test.rb +26 -0
  27. data/test/unit/tags_generator_test.rb +0 -1
  28. data/webpack/ComplianceHostDetailsTab/ComplianceHostDetailsTab.js +36 -0
  29. data/webpack/ComplianceHostDetailsTab/ComplianceHostDetailsTab.scss +3 -0
  30. data/webpack/ComplianceHostDetailsTab/__tests__/ComplianceHostDetailsTab.test.js +159 -0
  31. data/webpack/ComplianceHostDetailsTab/index.js +3 -0
  32. data/webpack/ForemanRhCloudFills.js +11 -0
  33. data/webpack/ForemanRhCloudPages.js +7 -0
  34. data/webpack/InsightsCompliance/ComplianceIframe.js +34 -0
  35. data/webpack/InsightsCompliance/ComplianceIframe.scss +12 -0
  36. data/webpack/InsightsCompliance/InsightsCompliancePage.js +11 -0
  37. data/webpack/InsightsCompliance/InsightsCompliancePage.test.js +35 -0
  38. data/webpack/InsightsCompliance/complianceIframeConstants.js +7 -0
  39. data/webpack/InsightsCompliance/complianceIframeHelpers.js +23 -0
  40. data/webpack/InsightsCompliance/complianceIframeHelpers.test.js +50 -0
  41. data/webpack/common/Hooks/PermissionsHooks.js +10 -0
  42. data/webpack/common/IopIframe/IopAppIframe.js +74 -0
  43. data/webpack/common/IopIframe/IopHostDetailsIframe.js +66 -0
  44. data/webpack/common/IopIframe/IopHostDetailsIframe.scss +6 -0
  45. data/webpack/common/IopIframe/IopHostDetailsIframeTab.js +81 -0
  46. data/webpack/common/IopIframe/__tests__/IopAppIframe.test.js +92 -0
  47. data/webpack/common/IopIframe/__tests__/IopHostDetailsIframeTab.test.js +93 -0
  48. data/webpack/common/IopIframe/__tests__/iopIframeHelpers.test.js +63 -0
  49. data/webpack/common/IopIframe/__tests__/postIopChromeToIframe.test.js +60 -0
  50. data/webpack/common/IopIframe/__tests__/useIopIframeHeight.test.js +37 -0
  51. data/webpack/common/IopIframe/iopIframeConstants.js +5 -0
  52. data/webpack/common/IopIframe/iopIframeHelpers.js +49 -0
  53. data/webpack/common/IopIframe/postIopChromeToIframe.js +35 -0
  54. data/webpack/common/IopIframe/useIopIframeChrome.js +54 -0
  55. data/webpack/common/IopIframe/useIopIframeHeight.js +35 -0
  56. data/webpack/common/IopIframe/useIopIframeNavigate.js +40 -0
  57. metadata +27 -1
@@ -12,7 +12,7 @@
12
12
  #
13
13
  msgid ""
14
14
  msgstr ""
15
- "Project-Id-Version: foreman_rh_cloud 14.6.1\n"
15
+ "Project-Id-Version: foreman_rh_cloud 14.7.0\n"
16
16
  "Report-Msgid-Bugs-To: \n"
17
17
  "PO-Revision-Date: 2023-01-20 13:26+0000\n"
18
18
  "Last-Translator: Ondřej Gajdušek, 2026\n"
@@ -36,7 +36,7 @@ msgid "About subscription watch"
36
36
  msgstr "서브스크립션 감시 정보"
37
37
 
38
38
  msgid "Actions"
39
- msgstr ""
39
+ msgstr "동작 "
40
40
 
41
41
  msgid "Actions history"
42
42
  msgstr "작업 내역"
@@ -96,7 +96,7 @@ msgid "Current page"
96
96
  msgstr "현재 페이지"
97
97
 
98
98
  msgid "Destroy HBI hosts for organization"
99
- msgstr ""
99
+ msgstr "조직의 HBI 호스트 삭제"
100
100
 
101
101
  msgid "Details"
102
102
  msgstr "상세 정보"
@@ -162,7 +162,7 @@ msgid "Exclude installed packages from being uploaded to the Red Hat cloud. (If
162
162
  msgstr "설치된 패키지가 Red Hat 클라우드에 업로드되지 않도록 제외합니다. (insights_minimal_data_collection이 true로 설정된 경우 이 설정은 무시되고 설치된 패키지는 항상 제외됩니다.) 로컬 Insights를 사용하는 경우에는 이 설정이 무시됩니다."
163
163
 
164
164
  msgid "Excluded from upload to console.redhat.com Inventory service because host_registration_insights_inventory parameter value is false: "
165
- msgstr ""
165
+ msgstr "host_registration_insights_inventory 매개변수 값이 false이므로 console.redhat.com 인벤토리 서비스에 업로드되지 않도록 제외된 호스트:"
166
166
 
167
167
  msgid "Failed"
168
168
  msgstr "실패 "
@@ -171,7 +171,7 @@ msgid "Failed to destroy HBI host %s: %s"
171
171
  msgstr "HBI 호스트 %s 삭제 실패: %s"
172
172
 
173
173
  msgid "Failed to destroy HBI hosts for organization %s: %s"
174
- msgstr ""
174
+ msgstr "조직 %s의 HBI 호스트를 삭제하지 못했습니다: %s"
175
175
 
176
176
  msgid "Failed to fetch hosts"
177
177
  msgstr "호스트를 가져오는 데 실패했습니다"
@@ -198,13 +198,13 @@ msgid "For more information about the Subscriptions service, see:"
198
198
  msgstr "서브스크립션 서비스에 대한 자세한 정보는 다음을 참조하십시오:"
199
199
 
200
200
  msgid "Force RHEL Lightspeed CLA connection"
201
- msgstr ""
201
+ msgstr "RHEL Lightspeed CLA 연결 강제 적용"
202
202
 
203
203
  msgid "Foreman plugin that process & upload data to Red Hat Cloud"
204
204
  msgstr "Red Hat Cloud에 데이터를 처리하고 업로드하는 Foreman 플러그인"
205
205
 
206
206
  msgid "Forward requests to Lightspeed CLA even when in IoP mode. Ignored when IoP mode is off."
207
- msgstr ""
207
+ msgstr "IoP 모드에서도 요청을 Lightspeed CLA로 전달합니다. IoP 모드가 꺼져 있으면 무시됩니다."
208
208
 
209
209
  msgid "Generate and upload report"
210
210
  msgstr "보고서 생성 및 업로드"
@@ -243,13 +243,13 @@ msgid "Host inventory report job"
243
243
  msgstr "호스트 인벤토리 보고서 작업"
244
244
 
245
245
  msgid "Host is excluded from upload to console.redhat.com Inventory service due to host parameter"
246
- msgstr ""
246
+ msgstr "호스트 매개변수로 인해 console.redhat.com 인벤토리 서비스에 업로드되지 않도록 제외된 호스트"
247
247
 
248
248
  msgid "Host is not present on console.redhat.com Inventory service"
249
- msgstr ""
249
+ msgstr "호스트가 console.redhat.com 인벤토리 서비스에 없습니다."
250
250
 
251
251
  msgid "Host is uploaded and present on console.redhat.com Inventory service"
252
- msgstr ""
252
+ msgstr "호스트가 업로드되어 console.redhat.com 인벤토리 서비스에 표시됩니다."
253
253
 
254
254
  msgid "Hostname"
255
255
  msgstr "호스트 이름"
@@ -300,7 +300,7 @@ msgid "Loading"
300
300
  msgstr "로딩 중 "
301
301
 
302
302
  msgid "Loading..."
303
- msgstr "로딩..."
303
+ msgstr "로딩 중..."
304
304
 
305
305
  msgid "Low"
306
306
  msgstr "낮음"
@@ -330,7 +330,7 @@ msgid "No"
330
330
  msgstr "아니오 "
331
331
 
332
332
  msgid "No HBI hosts found for organization %s"
333
- msgstr ""
333
+ msgstr "조직 %s에 대한 HBI 호스트를 찾을 수 없습니다."
334
334
 
335
335
  msgid "No account data available."
336
336
  msgstr "계정 정보가 없습니다."
@@ -360,13 +360,13 @@ msgid "None of the selected hosts are registered"
360
360
  msgstr "선택된 호스트 중 등록된 호스트는 없습니다."
361
361
 
362
362
  msgid "Not present on console.redhat.com Inventory service: "
363
- msgstr ""
363
+ msgstr "console.redhat.com 인벤토리 서비스에 없는 호스트:"
364
364
 
365
365
  msgid "Not reporting"
366
366
  msgstr "보고하지 않음"
367
367
 
368
368
  msgid "Not reporting because host_registration_insights parameter value is false"
369
- msgstr ""
369
+ msgstr "host_registration_insights 매개변수 값이 false이므로 보고하지 않습니다"
370
370
 
371
371
  msgid "Nothing to sync, there are no hosts with subscription for this organization."
372
372
  msgstr "동기화할 것이 없습니다. 이 조직에 대한 서브스크립션이 있는 호스트가 없습니다."
@@ -402,10 +402,10 @@ msgid "Oops! Couldn't find organization that matches your query"
402
402
  msgstr "죄송합니다! 귀하의 쿼리와 일치하는 조직을 찾을 수 없습니다."
403
403
 
404
404
  msgid "Organization"
405
- msgstr ""
405
+ msgstr "조직 "
406
406
 
407
407
  msgid "Organization not found"
408
- msgstr ""
408
+ msgstr "조직을 찾을 수 없습니다"
409
409
 
410
410
  msgid "Organization status"
411
411
  msgstr "조직 상태"
@@ -429,7 +429,7 @@ msgid "RHC daemon id. Ignored when using local Insights."
429
429
  msgstr "RHC 데몬 ID입니다. 로컬 Insights를 사용할 때는 무시됩니다."
430
430
 
431
431
  msgid "RHC instance ID to register with Red Hat Sources"
432
- msgstr ""
432
+ msgstr "Red Hat Sources에 등록할 RHC 인스턴스 ID"
433
433
 
434
434
  msgid "Read more about it in RH cloud insights"
435
435
  msgstr "RH 클라우드 Insights에서 이에 대해 자세히 알아보세요."
@@ -450,7 +450,7 @@ msgid "Recommendations"
450
450
  msgstr "권장 사항"
451
451
 
452
452
  msgid "Recommendations actions"
453
- msgstr ""
453
+ msgstr "권장 사항 작업"
454
454
 
455
455
  msgid "Recommendations selected: %s."
456
456
  msgstr "선택된 권장 사항:%s ."
@@ -471,7 +471,7 @@ msgid "Red Hat Inventory"
471
471
  msgstr "Red Hat 인벤토리"
472
472
 
473
473
  msgid "Registered hosts in organization: "
474
- msgstr ""
474
+ msgstr "조직에 등록된 호스트: "
475
475
 
476
476
  msgid "Remediate"
477
477
  msgstr "개선 사항"
@@ -513,16 +513,16 @@ msgid "Satellite server has %{hits_count} recommendations by Red Hat"
513
513
  msgstr "Satellite 서버에는 Red Hat의 권장 사항이 %{hits_count} 개 있습니다"
514
514
 
515
515
  msgid "Schedule a task to register in Red Hat Sources for cloud connector"
516
- msgstr ""
516
+ msgstr "클라우드 커넥터의 Red Hat Sources에 등록하는 작업 예약"
517
517
 
518
518
  msgid "Scoped search string for host removal"
519
519
  msgstr "호스트 제거를 위한 범위 검색 문자열"
520
520
 
521
521
  msgid "Searching by recommendations count is not available in IoP mode."
522
- msgstr ""
522
+ msgstr "IoP 모드에서는 권장 사항 수를 기준으로 검색할 수 없습니다."
523
523
 
524
524
  msgid "Select all recommendations"
525
- msgstr ""
525
+ msgstr "모든 권장 사항 선택"
526
526
 
527
527
  msgid "Select recommendations from all pages"
528
528
  msgstr "모든 페이지에서 추천을 선택하세요"
@@ -564,7 +564,7 @@ msgid "Success"
564
564
  msgstr "성공 "
565
565
 
566
566
  msgid "Successfully deleted all HBI hosts for organization %s"
567
- msgstr ""
567
+ msgstr "조직 %s의 모든 HBI 호스트가 성공적으로 삭제되었습니다."
568
568
 
569
569
  msgid "Sync automatically"
570
570
  msgstr "자동으로 동기화"
@@ -576,7 +576,7 @@ msgid "Synchronize recommendations Automatically"
576
576
  msgstr "추천 사항을 자동으로 동기화합니다"
577
577
 
578
578
  msgid "Table actions"
579
- msgstr ""
579
+ msgstr "테이블 작업"
580
580
 
581
581
  msgid "The Foreman inventory upload plugin automatically uploads Foreman host inventory data to the Inventory service of Insights, where it can also be used by the Subscriptions service for subscription reporting. If you use the Subscriptions service, enabling inventory uploads is required."
582
582
  msgstr "Foreman 인벤토리 업로드 플러그인은 Foreman 호스트 인벤토리 데이터를 자동으로 Insights의 인벤토리 서비스에 업로드하며, 이 데이터는 서브스크립션 보고서를 위한 서브스크립션 서비스에서도 사용할 수 있습니다. 서브스크립션 서비스를 사용하는 경우, 인벤토리 업로드를 활성화하는 것이 필수입니다."
@@ -621,7 +621,7 @@ msgid "Unknown"
621
621
  msgstr "알 수 없음"
622
622
 
623
623
  msgid "Unsupported operator for recommendations count search: %s"
624
- msgstr ""
624
+ msgstr "권장 사항 수 검색에 지원되지 않는 연산자: %s"
625
625
 
626
626
  msgid "Upload hits from iop-advisor-engine"
627
627
  msgstr "iop-advisor-engine에서 히트 업로드"
@@ -639,7 +639,7 @@ msgid "Uploaded"
639
639
  msgstr "업로드됨"
640
640
 
641
641
  msgid "Uploaded and present on console.redhat.com Inventory service: "
642
- msgstr ""
642
+ msgstr "console.redhat.com 인벤토리 서비스에 업로드되어 표시된 호스트: "
643
643
 
644
644
  msgid "Value %{value} is not a valid UUID"
645
645
  msgstr "값%{value}이/가 유효한 UUID가 아닙니다"
@@ -678,7 +678,7 @@ msgid "Whether the resolution requires reboot"
678
678
  msgstr "해결을 위해 재부팅이 필요한지 여부"
679
679
 
680
680
  msgid "You can review this information later by looking at the Inventory status of each host."
681
- msgstr ""
681
+ msgstr "각 호스트의 인벤토리 상태에서 이 정보를 나중에 검토할 수 있습니다."
682
682
 
683
683
  msgid "You do not have permission to perform this action"
684
684
  msgstr "이 작업을 수행할 권한이 없습니다."
@@ -6,14 +6,14 @@
6
6
  # Translators:
7
7
  # tim123, 2023
8
8
  # 0868a4d1af5275b3f70b0a6dac4c99a4, 2023
9
- # Amit Upadhye <aupadhye@redhat.com>, 2026
10
9
  # Ewoud Kohl van Wijngaarden <ewoud+transifex@kohlvanwijngaarden.nl>, 2026
11
10
  # Bryan Kearney <bryan.kearney@gmail.com>, 2026
11
+ # Amit Upadhye <aupadhye@redhat.com>, 2026
12
12
  # Ondřej Gajdušek, 2026
13
13
  #
14
14
  msgid ""
15
15
  msgstr ""
16
- "Project-Id-Version: foreman_rh_cloud 14.6.1\n"
16
+ "Project-Id-Version: foreman_rh_cloud 14.7.0\n"
17
17
  "Report-Msgid-Bugs-To: \n"
18
18
  "PO-Revision-Date: 2023-01-20 13:26+0000\n"
19
19
  "Last-Translator: Ondřej Gajdušek, 2026\n"
@@ -38,7 +38,7 @@ msgid "About subscription watch"
38
38
  msgstr "订阅查看"
39
39
 
40
40
  msgid "Actions"
41
- msgstr ""
41
+ msgstr "操作"
42
42
 
43
43
  msgid "Actions history"
44
44
  msgstr "操作历史记录"
@@ -98,7 +98,7 @@ msgid "Current page"
98
98
  msgstr "当前页"
99
99
 
100
100
  msgid "Destroy HBI hosts for organization"
101
- msgstr ""
101
+ msgstr "为机构销毁 HBI 主机"
102
102
 
103
103
  msgid "Details"
104
104
  msgstr "详情"
@@ -164,7 +164,7 @@ msgid "Exclude installed packages from being uploaded to the Red Hat cloud. (If
164
164
  msgstr "在上传到红帽云时排除安装的软件包。(如果 insights_minimal_data_collection 设置为 true,则忽略此设置,且安装的软件包始终被排除。)在使用本地 Insights 时忽略。"
165
165
 
166
166
  msgid "Excluded from upload to console.redhat.com Inventory service because host_registration_insights_inventory parameter value is false: "
167
- msgstr ""
167
+ msgstr "因为 host_registration_insights_inventory 参数值为 false,被排除在上传至 console.redhat.com Inventory 服务的范围之外。"
168
168
 
169
169
  msgid "Failed"
170
170
  msgstr "失败"
@@ -173,7 +173,7 @@ msgid "Failed to destroy HBI host %s: %s"
173
173
  msgstr "销毁 HBI 主机 %s 失败:%s"
174
174
 
175
175
  msgid "Failed to destroy HBI hosts for organization %s: %s"
176
- msgstr ""
176
+ msgstr "为机构 %s 销毁 HBI 主机失败:%s"
177
177
 
178
178
  msgid "Failed to fetch hosts"
179
179
  msgstr "获取主机失败"
@@ -200,13 +200,13 @@ msgid "For more information about the Subscriptions service, see:"
200
200
  msgstr "有关订阅服务的更多信息,请参阅:"
201
201
 
202
202
  msgid "Force RHEL Lightspeed CLA connection"
203
- msgstr ""
203
+ msgstr "强制 RHEL Lightspeed CLA 连接"
204
204
 
205
205
  msgid "Foreman plugin that process & upload data to Red Hat Cloud"
206
206
  msgstr "处理数据并将其上传到红帽云的 Foreman 插件"
207
207
 
208
208
  msgid "Forward requests to Lightspeed CLA even when in IoP mode. Ignored when IoP mode is off."
209
- msgstr ""
209
+ msgstr "即使处于 IoP 模式,也会将请求转发至 Lightspeed CLA。当 IoP 模式未开启时,此设置将被忽略。"
210
210
 
211
211
  msgid "Generate and upload report"
212
212
  msgstr "生成并上传报告"
@@ -245,13 +245,13 @@ msgid "Host inventory report job"
245
245
  msgstr "主机清单报告作业"
246
246
 
247
247
  msgid "Host is excluded from upload to console.redhat.com Inventory service due to host parameter"
248
- msgstr ""
248
+ msgstr "由于主机参数设置,该主机已被排除在上传至 console.redhat.com Inventory 服务的范围之外。"
249
249
 
250
250
  msgid "Host is not present on console.redhat.com Inventory service"
251
- msgstr ""
251
+ msgstr "console.redhat.com 清单服务中没有主机"
252
252
 
253
253
  msgid "Host is uploaded and present on console.redhat.com Inventory service"
254
- msgstr ""
254
+ msgstr "主机已上传并存在于 console.redhat.com Inventory 服务中"
255
255
 
256
256
  msgid "Hostname"
257
257
  msgstr "主机名"
@@ -332,7 +332,7 @@ msgid "No"
332
332
  msgstr "否"
333
333
 
334
334
  msgid "No HBI hosts found for organization %s"
335
- msgstr ""
335
+ msgstr "未找到用于机构 %s 的 HBI 主机 "
336
336
 
337
337
  msgid "No account data available."
338
338
  msgstr "没有可用的帐户数据。"
@@ -362,13 +362,13 @@ msgid "None of the selected hosts are registered"
362
362
  msgstr "所选主机都没有注册"
363
363
 
364
364
  msgid "Not present on console.redhat.com Inventory service: "
365
- msgstr ""
365
+ msgstr "console.redhat.com Inventory 服务没有包括: "
366
366
 
367
367
  msgid "Not reporting"
368
368
  msgstr "未报告"
369
369
 
370
370
  msgid "Not reporting because host_registration_insights parameter value is false"
371
- msgstr ""
371
+ msgstr "未上报数据,因为 host_registration_insights 参数的值为 false。"
372
372
 
373
373
  msgid "Nothing to sync, there are no hosts with subscription for this organization."
374
374
  msgstr "没有同步,此机构没有带有订阅的主机。"
@@ -404,10 +404,10 @@ msgid "Oops! Couldn't find organization that matches your query"
404
404
  msgstr "未找到与您的查询匹配的机构"
405
405
 
406
406
  msgid "Organization"
407
- msgstr ""
407
+ msgstr "机构"
408
408
 
409
409
  msgid "Organization not found"
410
- msgstr ""
410
+ msgstr "没有找到机构"
411
411
 
412
412
  msgid "Organization status"
413
413
  msgstr "机构标签"
@@ -431,7 +431,7 @@ msgid "RHC daemon id. Ignored when using local Insights."
431
431
  msgstr "RHC 守护进程 ID。在使用本地 Insights 时忽略。"
432
432
 
433
433
  msgid "RHC instance ID to register with Red Hat Sources"
434
- msgstr ""
434
+ msgstr "用于注册 Red Hat Sources 的 RHC 实例 ID"
435
435
 
436
436
  msgid "Read more about it in RH cloud insights"
437
437
  msgstr "在 RH Cloud insights 中了解更多有关它的信息"
@@ -452,7 +452,7 @@ msgid "Recommendations"
452
452
  msgstr "建议"
453
453
 
454
454
  msgid "Recommendations actions"
455
- msgstr ""
455
+ msgstr "建议操作"
456
456
 
457
457
  msgid "Recommendations selected: %s."
458
458
  msgstr "选择的建议:%s。"
@@ -473,7 +473,7 @@ msgid "Red Hat Inventory"
473
473
  msgstr "Red Hat 清单"
474
474
 
475
475
  msgid "Registered hosts in organization: "
476
- msgstr ""
476
+ msgstr "机构中注册的主机: "
477
477
 
478
478
  msgid "Remediate"
479
479
  msgstr "补救"
@@ -515,16 +515,16 @@ msgid "Satellite server has %{hits_count} recommendations by Red Hat"
515
515
  msgstr "Satellite 服务器有 %{hits_count} 个红帽提供的建议"
516
516
 
517
517
  msgid "Schedule a task to register in Red Hat Sources for cloud connector"
518
- msgstr ""
518
+ msgstr "调度一个在 Red Hat Sources 中注册云连接器的任务"
519
519
 
520
520
  msgid "Scoped search string for host removal"
521
521
  msgstr "用于删除主机的有范围的搜索字符串"
522
522
 
523
523
  msgid "Searching by recommendations count is not available in IoP mode."
524
- msgstr ""
524
+ msgstr "在 IoP 模式下不支持按推荐数量进行搜索。"
525
525
 
526
526
  msgid "Select all recommendations"
527
- msgstr ""
527
+ msgstr "选择所有建议"
528
528
 
529
529
  msgid "Select recommendations from all pages"
530
530
  msgstr "在所有页面中选择建议"
@@ -566,7 +566,7 @@ msgid "Success"
566
566
  msgstr "成功"
567
567
 
568
568
  msgid "Successfully deleted all HBI hosts for organization %s"
569
- msgstr ""
569
+ msgstr "为机构 %s 成功删除所有 HBI 主机"
570
570
 
571
571
  msgid "Sync automatically"
572
572
  msgstr "自动同步"
@@ -578,7 +578,7 @@ msgid "Synchronize recommendations Automatically"
578
578
  msgstr "自动同步建议"
579
579
 
580
580
  msgid "Table actions"
581
- msgstr ""
581
+ msgstr "表操作"
582
582
 
583
583
  msgid "The Foreman inventory upload plugin automatically uploads Foreman host inventory data to the Inventory service of Insights, where it can also be used by the Subscriptions service for subscription reporting. If you use the Subscriptions service, enabling inventory uploads is required."
584
584
  msgstr "Foreman 清单上传插件会自动将 Foreman 主机清单数据上传到 Insights 的 Inventory 服务,订阅服务使用这些信息来提供订阅报告。如果使用订阅服务,则需要启用清单上传。"
@@ -623,7 +623,7 @@ msgid "Unknown"
623
623
  msgstr "未知"
624
624
 
625
625
  msgid "Unsupported operator for recommendations count search: %s"
626
- msgstr ""
626
+ msgstr "不支持按推荐数量进行搜索的运算符:%s"
627
627
 
628
628
  msgid "Upload hits from iop-advisor-engine"
629
629
  msgstr "从 iop-advisor-engine 上传 hits"
@@ -641,7 +641,7 @@ msgid "Uploaded"
641
641
  msgstr "已上传"
642
642
 
643
643
  msgid "Uploaded and present on console.redhat.com Inventory service: "
644
- msgstr ""
644
+ msgstr "上传并存在于 console.redhat.com Inventory 服务中: "
645
645
 
646
646
  msgid "Value %{value} is not a valid UUID"
647
647
  msgstr "值 %{value} 不是一个有效的 UUID"
@@ -680,7 +680,7 @@ msgid "Whether the resolution requires reboot"
680
680
  msgstr "resolution 是否需要重启"
681
681
 
682
682
  msgid "You can review this information later by looking at the Inventory status of each host."
683
- msgstr ""
683
+ msgstr "稍后,您可以通过查看每个主机的 Inventory 状态来查看此信息。"
684
684
 
685
685
  msgid "You do not have permission to perform this action"
686
686
  msgstr "您没有执行此操作的权限"
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "foreman_rh_cloud",
3
- "version": "14.7.0",
3
+ "version": "15.0.0",
4
4
  "description": "Inventory Upload =============",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -228,7 +228,6 @@ module InsightsCloud::Api
228
228
 
229
229
  context '#branch_info' do
230
230
  setup do
231
- UpstreamOnlySettingsTestHelper.set_if_available('allow_multiple_content_views')
232
231
  User.current = User.find_by(login: 'secret_admin')
233
232
  env = FactoryBot.create(:katello_k_t_environment)
234
233
  env2 = FactoryBot.create(:katello_k_t_environment, organization: env.organization)
@@ -137,11 +137,3 @@ module KatelloCVEHelper
137
137
  )
138
138
  end
139
139
  end
140
-
141
- module UpstreamOnlySettingsTestHelper
142
- def self.set_if_available(setting_name, value: true)
143
- Setting[setting_name] = value
144
- rescue Foreman::Exception
145
- skip "Setting #{setting_name} is not available in Foreman"
146
- end
147
- end
@@ -14,7 +14,6 @@ class CloudRequestForwarderTest < ActiveSupport::TestCase
14
14
  ForemanRhCloud.stubs(:legacy_insights_url).returns('https://cert-api.access.example.com')
15
15
  ForemanRhCloud.stubs(:transformed_cloud_http_proxy_string).returns(nil)
16
16
 
17
- UpstreamOnlySettingsTestHelper.set_if_available('allow_multiple_content_views')
18
17
  env = FactoryBot.create(:katello_k_t_environment)
19
18
  env2 = FactoryBot.create(:katello_k_t_environment, organization: env.organization)
20
19
 
@@ -3,6 +3,7 @@ require 'json'
3
3
 
4
4
  class TagsAuthTest < ActiveSupport::TestCase
5
5
  setup do
6
+ Rails.cache.clear
6
7
  @user = FactoryBot.build(:user)
7
8
  @logger = Logger.new(IO::NULL)
8
9
  @org = FactoryBot.build(:organization)
@@ -41,6 +42,31 @@ class TagsAuthTest < ActiveSupport::TestCase
41
42
  @auth.update_tag
42
43
  end
43
44
 
45
+ test 'Does not repeat cloud request for the same user/org/location within the sync TTL' do
46
+ @auth.stubs(:allowed_hosts).returns(['test_uuid1'])
47
+ @auth.expects(:execute_cloud_request).once
48
+
49
+ @auth.update_tag
50
+ @auth.update_tag
51
+ end
52
+
53
+ test 'Serializes sync through an advisory lock on a cold cache miss' do
54
+ @auth.stubs(:allowed_hosts).returns(['test_uuid1'])
55
+ @auth.stubs(:execute_cloud_request)
56
+ Foreman::AdvisoryLockManager.expects(:with_session_lock).yields
57
+
58
+ @auth.update_tag
59
+ end
60
+
61
+ test 'Skips the advisory lock entirely on a warm cache hit' do
62
+ @auth.stubs(:allowed_hosts).returns(['test_uuid1'])
63
+ @auth.stubs(:execute_cloud_request)
64
+ @auth.update_tag
65
+
66
+ Foreman::AdvisoryLockManager.expects(:with_session_lock).never
67
+ @auth.update_tag
68
+ end
69
+
44
70
  test 'Generates tags with wildcard location when location is nil' do
45
71
  auth_with_nil_loc = ::ForemanRhCloud::TagsAuth.new(@user, @org, nil, @logger)
46
72
  uuid1 = 'test_uuid1'
@@ -6,7 +6,6 @@ class TagsGeneratorTest < ActiveSupport::TestCase
6
6
  include KatelloCVEHelper
7
7
 
8
8
  setup do
9
- UpstreamOnlySettingsTestHelper.set_if_available('allow_multiple_content_views')
10
9
  User.current = User.find_by(login: 'secret_admin')
11
10
 
12
11
  env = FactoryBot.create(:katello_k_t_environment)
@@ -0,0 +1,36 @@
1
+ import React from 'react';
2
+ import PropTypes from 'prop-types';
3
+ import { translate as __ } from 'foremanReact/common/I18n';
4
+ import IopHostDetailsIframeTab from '../common/IopIframe/IopHostDetailsIframeTab';
5
+ import { getComplianceIframeSrc } from '../InsightsCompliance/complianceIframeHelpers';
6
+ import { IOP_COMPLIANCE_READY } from '../InsightsCompliance/complianceIframeConstants';
7
+ import './ComplianceHostDetailsTab.scss';
8
+
9
+ const ComplianceHostDetailsTabWrapper = ({ response = {} }) => (
10
+ <IopHostDetailsIframeTab
11
+ response={response}
12
+ iframeSrc={getComplianceIframeSrc()}
13
+ buildAppRoute={inventoryId => `systems/${inventoryId}`}
14
+ title={__('Compliance')}
15
+ readyMessageType={IOP_COMPLIANCE_READY}
16
+ className="rh-cloud-insights-compliance-host-details-component compliance"
17
+ testId="compliance-host-details-iframe"
18
+ />
19
+ );
20
+
21
+ ComplianceHostDetailsTabWrapper.propTypes = {
22
+ response: PropTypes.shape({
23
+ id: PropTypes.number,
24
+ operatingsystem_name: PropTypes.string,
25
+ insights_attributes: PropTypes.object,
26
+ subscription_facet_attributes: PropTypes.shape({
27
+ uuid: PropTypes.string,
28
+ }),
29
+ }),
30
+ };
31
+
32
+ ComplianceHostDetailsTabWrapper.defaultProps = {
33
+ response: {},
34
+ };
35
+
36
+ export default ComplianceHostDetailsTabWrapper;
@@ -0,0 +1,3 @@
1
+ div.rh-cloud-insights-compliance-host-details-component {
2
+ padding: 0;
3
+ }