foreman_scc_manager 5.2.0 → 5.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.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/foreman_scc_manager/locale/de/foreman_scc_manager.js +42 -9
  3. data/app/assets/javascripts/foreman_scc_manager/locale/el/foreman_scc_manager.js +42 -9
  4. data/app/assets/javascripts/foreman_scc_manager/locale/en/foreman_scc_manager.js +38 -5
  5. data/app/assets/javascripts/foreman_scc_manager/locale/fr/foreman_scc_manager.js +43 -10
  6. data/app/assets/javascripts/foreman_scc_manager/locale/ja/foreman_scc_manager.js +43 -10
  7. data/app/assets/javascripts/foreman_scc_manager/locale/ka/foreman_scc_manager.js +43 -10
  8. data/app/assets/javascripts/foreman_scc_manager/locale/ko/foreman_scc_manager.js +43 -10
  9. data/app/assets/javascripts/foreman_scc_manager/locale/zh_CN/foreman_scc_manager.js +43 -10
  10. data/app/controllers/api/v2/scc_accounts_controller.rb +2 -0
  11. data/app/views/api/v2/scc_accounts/main.json.rabl +1 -1
  12. data/lib/foreman_scc_manager/version.rb +1 -1
  13. data/locale/de/LC_MESSAGES/foreman_scc_manager.mo +0 -0
  14. data/locale/de/foreman_scc_manager.po +46 -18
  15. data/locale/el/LC_MESSAGES/foreman_scc_manager.mo +0 -0
  16. data/locale/el/foreman_scc_manager.po +43 -15
  17. data/locale/en/LC_MESSAGES/foreman_scc_manager.mo +0 -0
  18. data/locale/en/foreman_scc_manager.po +38 -11
  19. data/locale/foreman_scc_manager.pot +105 -50
  20. data/locale/fr/LC_MESSAGES/foreman_scc_manager.mo +0 -0
  21. data/locale/fr/foreman_scc_manager.po +47 -19
  22. data/locale/ja/LC_MESSAGES/foreman_scc_manager.mo +0 -0
  23. data/locale/ja/foreman_scc_manager.po +47 -16
  24. data/locale/ka/LC_MESSAGES/foreman_scc_manager.mo +0 -0
  25. data/locale/ka/foreman_scc_manager.po +44 -21
  26. data/locale/ko/LC_MESSAGES/foreman_scc_manager.mo +0 -0
  27. data/locale/ko/foreman_scc_manager.po +46 -18
  28. data/locale/zh_CN/LC_MESSAGES/foreman_scc_manager.mo +0 -0
  29. data/locale/zh_CN/foreman_scc_manager.po +47 -17
  30. data/test/controllers/api/v2/scc_accounts_test.rb +30 -0
  31. data/test/fixtures/models/scc_accounts.yml +2 -0
  32. data/webpack/components/SCCProductPage/components/SCCProductPicker/components/SCCTreePicker/components/SCCRepoPicker/index.js +1 -1
  33. metadata +3 -3
@@ -4,16 +4,18 @@
4
4
  # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
5
  #
6
6
  # Translators:
7
- # tim123, 2019
8
- # Bryan Kearney <bryan.kearney@gmail.com>, 2022
9
7
  # Amit Upadhye <aupadhye@redhat.com>, 2022
8
+ # Bryan Kearney <bryan.kearney@gmail.com>, 2022
9
+ # Ondřej Gajdušek, 2025
10
+ # Ewoud Kohl van Wijngaarden <ewoud+transifex@kohlvanwijngaarden.nl>, 2025
11
+ # tim123, 2025
10
12
  #
11
13
  msgid ""
12
14
  msgstr ""
13
- "Project-Id-Version: foreman_scc_manager 5.0.4\n"
15
+ "Project-Id-Version: foreman_scc_manager 5.2.0\n"
14
16
  "Report-Msgid-Bugs-To: \n"
15
17
  "PO-Revision-Date: 2019-10-17 13:28+0000\n"
16
- "Last-Translator: Amit Upadhye <aupadhye@redhat.com>, 2022\n"
18
+ "Last-Translator: tim123, 2025\n"
17
19
  "Language-Team: Chinese (China) (https://app.transifex.com/foreman/teams/114/zh"
18
20
  "_CN/)\n"
19
21
  "MIME-Version: 1.0\n"
@@ -40,6 +42,9 @@ msgstr ""
40
42
  msgid "Actions"
41
43
  msgstr "操作"
42
44
 
45
+ msgid "Actions menu"
46
+ msgstr ""
47
+
43
48
  msgid "Add SCC account"
44
49
  msgstr "添加 SCC 帐户"
45
50
 
@@ -68,7 +73,7 @@ msgid "Bulk subscription of scc_products with individual repository selection fo
68
73
  msgstr ""
69
74
 
70
75
  msgid "Cancel"
71
- msgstr ""
76
+ msgstr "取消"
72
77
 
73
78
  msgid "Collapse products"
74
79
  msgstr ""
@@ -94,6 +99,12 @@ msgstr "Cron 表达式无效!"
94
99
  msgid "Date and time relative to which the sync interval is run"
95
100
  msgstr "运行同步间隔的日期和时间"
96
101
 
102
+ msgid "Delete"
103
+ msgstr ""
104
+
105
+ msgid "Delete SCC Account"
106
+ msgstr ""
107
+
97
108
  msgid "Delete scc_account"
98
109
  msgstr "删除 scc_account"
99
110
 
@@ -115,6 +126,12 @@ msgstr "向队列添加任务失败:%s"
115
126
  msgid "Failed to create SCC account."
116
127
  msgstr ""
117
128
 
129
+ msgid "Failed to delete SCC account."
130
+ msgstr ""
131
+
132
+ msgid "Failed to start sync task."
133
+ msgstr ""
134
+
118
135
  msgid "Failed to update SCC account."
119
136
  msgstr ""
120
137
 
@@ -176,11 +193,14 @@ msgid "Mirroring Policy"
176
193
  msgstr "镜像策略"
177
194
 
178
195
  msgid "Name"
179
- msgstr ""
196
+ msgstr "名称"
180
197
 
181
198
  msgid "Name of the scc_account"
182
199
  msgstr "scc_account 的名称"
183
200
 
201
+ msgid "No options available"
202
+ msgstr ""
203
+
184
204
  msgid "None"
185
205
  msgstr "没有"
186
206
 
@@ -188,7 +208,7 @@ msgid "On Demand"
188
208
  msgstr "按需"
189
209
 
190
210
  msgid "Password"
191
- msgstr ""
211
+ msgstr "密码"
192
212
 
193
213
  msgid "Password of scc_account"
194
214
  msgstr "scc_account 的密码"
@@ -229,6 +249,9 @@ msgstr ""
229
249
  msgid "SCC account created successfully."
230
250
  msgstr ""
231
251
 
252
+ msgid "SCC account deleted successfully."
253
+ msgstr ""
254
+
232
255
  msgid "SCC account updated successfully."
233
256
  msgstr ""
234
257
 
@@ -250,11 +273,11 @@ msgstr "SUSE 订阅"
250
273
  msgid "Search"
251
274
  msgstr ""
252
275
 
253
- msgid "Select SUSE products"
276
+ msgid "Select Products"
254
277
  msgstr ""
255
278
 
256
- msgid "Select products"
257
- msgstr "选择产品"
279
+ msgid "Select SUSE products"
280
+ msgstr ""
258
281
 
259
282
  msgid "Selected SUSE Products"
260
283
  msgstr ""
@@ -293,7 +316,7 @@ msgid "Starting the subscription task failed."
293
316
  msgstr ""
294
317
 
295
318
  msgid "Submit"
296
- msgstr ""
319
+ msgstr "提交"
297
320
 
298
321
  msgid "Subscribe SCC Product"
299
322
  msgstr "订阅 SCC 产品"
@@ -325,6 +348,9 @@ msgstr "同步任务已启动。"
325
348
  msgid "Synchronize SUSE Account"
326
349
  msgstr ""
327
350
 
351
+ msgid "Syncing..."
352
+ msgstr ""
353
+
328
354
  msgid "Test Connection"
329
355
  msgstr "测试连接"
330
356
 
@@ -376,12 +402,7 @@ msgstr "如果要在订阅时自动在 SUSE 产品中添加 GPG 密钥,请使
376
402
  msgid "Use your 'Organization credentials' obtained from the SUSE Customer Center."
377
403
  msgstr "使用从 SUSE 客户中心获取的\"组织凭据\"。"
378
404
 
379
- msgid ""
380
- "WARNING: If you want to switch SCC accounts and retain the synchronized content, DO NOT delete your old SCC account, even if it is expired. Please change the login and password of your SCC account, instead.\n"
381
- "\n"
382
- "If you delete your old SCC account, you CANNOT reuse existing repositories, products, content views, and composite content views.\n"
383
- "\n"
384
- "Really delete SCC account %s?"
405
+ msgid "WARNING: If you want to switch SCC accounts and retain the synchronized content, DO NOT delete your old SCC account, even if it is expired. Please change the login and password of your SCC account, instead.\\n\\nIf you delete your old SCC account, you CANNOT reuse existing repositories, products, content views, and composite content views.\\n\\n Do you Really want to delete this SCC account %acc_name?"
385
406
  msgstr ""
386
407
 
387
408
  msgid "YYYY-MM-DD"
@@ -390,8 +411,17 @@ msgstr ""
390
411
  msgid "You currently have no SUSE products selected. Search and add SUSE products in the section below."
391
412
  msgstr ""
392
413
 
414
+ msgid "error"
415
+ msgstr ""
416
+
417
+ msgid "finished"
418
+ msgstr ""
419
+
393
420
  msgid "never synced"
394
421
  msgstr "从未同步"
395
422
 
396
423
  msgid "no results"
397
424
  msgstr ""
425
+
426
+ msgid "running"
427
+ msgstr ""
@@ -208,6 +208,36 @@ class Api::V2::SccAccountsControllerTest < ActionController::TestCase
208
208
  assert_response :ok
209
209
  end
210
210
 
211
+ test 'should update mirroring policy' do
212
+ account = scc_accounts(:one)
213
+ assert_equal 'mirror_content_only', account.mirroring_policy
214
+ put :update, params: { id: account.id, scc_account: { :mirroring_policy => 'additive' } }
215
+ assert_equal 'additive', assigns(:scc_account).mirroring_policy
216
+ assert_response :ok
217
+ end
218
+
219
+ test 'should refuse invalid mirroring policy' do
220
+ account = scc_accounts(:one)
221
+ put :update, params: { id: account.id, scc_account: { :mirroring_policy => 'invalid' } }
222
+ assert_response :unprocessable_entity
223
+ assert_equal 'Validation failed: Mirroring policy is not included in the list', JSON.parse(response.body)['error']
224
+ end
225
+
226
+ test 'should update download policy' do
227
+ account = scc_accounts(:one)
228
+ assert_equal 'on_demand', account.download_policy
229
+ put :update, params: { id: account.id, scc_account: { :download_policy => 'immediate' } }
230
+ assert_equal 'immediate', assigns(:scc_account).download_policy
231
+ assert_response :ok
232
+ end
233
+
234
+ test 'should refuse invalid download policy' do
235
+ account = scc_accounts(:one)
236
+ put :update, params: { id: account.id, scc_account: { :download_policy => 'invalid' } }
237
+ assert_response :unprocessable_entity
238
+ assert_equal 'Validation failed: Download policy is not included in the list', JSON.parse(response.body)['error']
239
+ end
240
+
211
241
  test 'should refuse update scc_account with invalid interval' do
212
242
  account = scc_accounts(:two)
213
243
  put :update, params: { id: account.id, scc_account: { :interval => 'yearly' } }
@@ -7,6 +7,8 @@ one:
7
7
  interval: never
8
8
  organization_id: <%= ActiveRecord::FixtureSet.identify(:empty_organization) %>
9
9
  sync_date: Time.now
10
+ download_policy: 'on_demand'
11
+ mirroring_policy: 'mirror_content_only'
10
12
 
11
13
  two:
12
14
  login: twouser
@@ -38,7 +38,7 @@ const setRepoSelection = (
38
38
  res = sccRepos.filter(
39
39
  (repo) =>
40
40
  (!repo.name.includes('Debug') &&
41
- !repo.name.includes('Source-Pool') &&
41
+ !repo.name.includes('-Source') &&
42
42
  repo.katello_repository_id === null) ||
43
43
  repo.katello_repository_id !== null
44
44
  );
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_scc_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.2.0
4
+ version: 5.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ATIX AG
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-11-03 00:00:00.000000000 Z
10
+ date: 2026-02-12 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: rdoc
@@ -250,7 +250,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
250
250
  - !ruby/object:Gem::Version
251
251
  version: '0'
252
252
  requirements: []
253
- rubygems_version: 3.6.9
253
+ rubygems_version: 4.0.3
254
254
  specification_version: 4
255
255
  summary: Suse Customer Center plugin for Foreman
256
256
  test_files: