foreman_scc_manager 5.0.4 → 5.1.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.
- checksums.yaml +4 -4
- data/README.md +2 -1
- data/app/assets/javascripts/foreman_scc_manager/locale/de/foreman_scc_manager.js +55 -256
- data/app/assets/javascripts/foreman_scc_manager/locale/el/foreman_scc_manager.js +43 -244
- data/app/assets/javascripts/foreman_scc_manager/locale/en/foreman_scc_manager.js +381 -2
- data/app/assets/javascripts/foreman_scc_manager/locale/fr/foreman_scc_manager.js +58 -259
- data/app/assets/javascripts/foreman_scc_manager/locale/ja/foreman_scc_manager.js +58 -259
- data/app/assets/javascripts/foreman_scc_manager/locale/ka/foreman_scc_manager.js +58 -259
- data/app/assets/javascripts/foreman_scc_manager/locale/ko/foreman_scc_manager.js +55 -256
- data/app/assets/javascripts/foreman_scc_manager/locale/zh_CN/foreman_scc_manager.js +58 -259
- data/app/controllers/api/v2/scc_accounts_controller.rb +4 -2
- data/app/models/scc_account.rb +1 -1
- data/app/views/scc_accounts/edit.html.erb +24 -2
- data/app/views/scc_accounts/new.html.erb +12 -1
- data/lib/foreman_scc_manager/version.rb +1 -1
- data/locale/de/LC_MESSAGES/foreman_scc_manager.mo +0 -0
- data/locale/de/foreman_scc_manager.po +55 -257
- data/locale/el/LC_MESSAGES/foreman_scc_manager.mo +0 -0
- data/locale/el/foreman_scc_manager.po +44 -246
- data/locale/en/LC_MESSAGES/foreman_scc_manager.mo +0 -0
- data/locale/en/foreman_scc_manager.po +392 -0
- data/locale/foreman_scc_manager.pot +195 -461
- data/locale/fr/LC_MESSAGES/foreman_scc_manager.mo +0 -0
- data/locale/fr/foreman_scc_manager.po +58 -260
- data/locale/ja/LC_MESSAGES/foreman_scc_manager.mo +0 -0
- data/locale/ja/foreman_scc_manager.po +58 -260
- data/locale/ka/LC_MESSAGES/foreman_scc_manager.mo +0 -0
- data/locale/ka/foreman_scc_manager.po +58 -260
- data/locale/ko/LC_MESSAGES/foreman_scc_manager.mo +0 -0
- data/locale/ko/foreman_scc_manager.po +55 -257
- data/locale/zh_CN/LC_MESSAGES/foreman_scc_manager.mo +0 -0
- data/locale/zh_CN/foreman_scc_manager.po +58 -260
- data/test/controllers/api/v2/scc_accounts_test.rb +5 -5
- data/webpack/components/SCCAccountForm/SCCAccountForm.scss +49 -0
- data/webpack/components/SCCAccountForm/SCCAccountFormActions.js +74 -0
- data/webpack/components/SCCAccountForm/components/DateTimeField.js +72 -0
- data/webpack/components/SCCAccountForm/components/SCCCredentialsCard.js +150 -0
- data/webpack/components/SCCAccountForm/components/SCCSyncSettingsCard.js +256 -0
- data/webpack/components/SCCAccountForm/components/SCCTokenRefreshCard.js +133 -0
- data/webpack/components/SCCAccountForm/index.js +306 -0
- data/webpack/index.js +6 -0
- metadata +9 -18
- data/app/assets/javascripts/foreman_scc_manager/scc_accounts.js.coffee +0 -46
- data/app/views/scc_accounts/_form.html.erb +0 -51
@@ -8,10 +8,9 @@
|
|
8
8
|
# Bryan Kearney <bryan.kearney@gmail.com>, 2022
|
9
9
|
# Amit Upadhye <aupadhye@redhat.com>, 2022
|
10
10
|
#
|
11
|
-
#, fuzzy
|
12
11
|
msgid ""
|
13
12
|
msgstr ""
|
14
|
-
"Project-Id-Version: foreman_scc_manager
|
13
|
+
"Project-Id-Version: foreman_scc_manager 5.0.4\n"
|
15
14
|
"Report-Msgid-Bugs-To: \n"
|
16
15
|
"PO-Revision-Date: 2019-10-17 13:28+0000\n"
|
17
16
|
"Last-Translator: Amit Upadhye <aupadhye@redhat.com>, 2022\n"
|
@@ -38,15 +37,6 @@ msgstr ""
|
|
38
37
|
msgid "%s/%s"
|
39
38
|
msgstr ""
|
40
39
|
|
41
|
-
msgid "Abstract"
|
42
|
-
msgstr "摘要"
|
43
|
-
|
44
|
-
msgid "Abstract async task"
|
45
|
-
msgstr "抽象 async 任务"
|
46
|
-
|
47
|
-
msgid "Action with sub plans"
|
48
|
-
msgstr "有子计划的操作"
|
49
|
-
|
50
40
|
msgid "Actions"
|
51
41
|
msgstr "操作"
|
52
42
|
|
@@ -65,63 +55,36 @@ msgstr ""
|
|
65
55
|
msgid "Additive"
|
66
56
|
msgstr "Additive"
|
67
57
|
|
68
|
-
msgid "Agent action"
|
69
|
-
msgstr "代理操作"
|
70
|
-
|
71
58
|
msgid "Associated GPG key of scc_account"
|
72
59
|
msgstr "scc_account 的关联 GPG 密钥"
|
73
60
|
|
74
|
-
msgid "Attach subscriptions"
|
75
|
-
msgstr "附加订阅"
|
76
|
-
|
77
|
-
msgid "Auto attach subscriptions"
|
78
|
-
msgstr "自动附加订阅"
|
79
|
-
|
80
61
|
msgid "Base URL"
|
81
62
|
msgstr "基本 URL"
|
82
63
|
|
83
|
-
msgid "Bulk generate applicability for hosts"
|
84
|
-
msgstr "批量生成主机的适用性"
|
85
|
-
|
86
64
|
msgid "Bulk subscription of scc_products for scc_account"
|
87
65
|
msgstr "scc_account 的批量 scc_products 订阅"
|
88
66
|
|
89
67
|
msgid "Bulk subscription of scc_products with individual repository selection for scc_account."
|
90
68
|
msgstr ""
|
91
69
|
|
70
|
+
msgid "Cancel"
|
71
|
+
msgstr ""
|
72
|
+
|
92
73
|
msgid "Collapse products"
|
93
74
|
msgstr ""
|
94
75
|
|
95
76
|
msgid "Collapse/Expand"
|
96
77
|
msgstr ""
|
97
78
|
|
98
|
-
msgid "
|
99
|
-
msgstr "
|
79
|
+
msgid "Connection OK"
|
80
|
+
msgstr ""
|
81
|
+
|
82
|
+
msgid "Connection test failed."
|
83
|
+
msgstr ""
|
100
84
|
|
101
85
|
msgid "Content Only"
|
102
86
|
msgstr "只包括内容"
|
103
87
|
|
104
|
-
msgid "Copy version units to library"
|
105
|
-
msgstr "将版本单位复制到库"
|
106
|
-
|
107
|
-
msgid "Create"
|
108
|
-
msgstr "创建"
|
109
|
-
|
110
|
-
msgid "Create Alternate Content Source"
|
111
|
-
msgstr "创建备用内容源"
|
112
|
-
|
113
|
-
msgid "Create Export History"
|
114
|
-
msgstr "创建导出历史记录"
|
115
|
-
|
116
|
-
msgid "Create Import History"
|
117
|
-
msgstr "创建导入历史记录"
|
118
|
-
|
119
|
-
msgid "Create Package Group"
|
120
|
-
msgstr "创建软件包组"
|
121
|
-
|
122
|
-
msgid "Create Syncable Export History"
|
123
|
-
msgstr "创建可同步的导出历史记录"
|
124
|
-
|
125
88
|
msgid "Create an scc_account"
|
126
89
|
msgstr "创建 scc_account"
|
127
90
|
|
@@ -131,86 +94,38 @@ msgstr "Cron 表达式无效!"
|
|
131
94
|
msgid "Date and time relative to which the sync interval is run"
|
132
95
|
msgstr "运行同步间隔的日期和时间"
|
133
96
|
|
134
|
-
msgid "Delete"
|
135
|
-
msgstr "刪除"
|
136
|
-
|
137
|
-
msgid "Delete Activation Key"
|
138
|
-
msgstr "删除激活码"
|
139
|
-
|
140
|
-
msgid "Delete Lifecycle Environment"
|
141
|
-
msgstr "删除生命周期环境"
|
142
|
-
|
143
|
-
msgid "Delete Package Group"
|
144
|
-
msgstr "删除软件包组"
|
145
|
-
|
146
|
-
msgid "Delete Product"
|
147
|
-
msgstr "删除产品"
|
148
|
-
|
149
97
|
msgid "Delete scc_account"
|
150
98
|
msgstr "删除 scc_account"
|
151
99
|
|
152
|
-
msgid "Destroy"
|
153
|
-
msgstr "销毁"
|
154
|
-
|
155
|
-
msgid "Destroy Alternate Content Source"
|
156
|
-
msgstr "销毁备用内容源"
|
157
|
-
|
158
|
-
msgid "Destroy Content Host"
|
159
|
-
msgstr "销毁内容主机"
|
160
|
-
|
161
|
-
msgid "Disable"
|
162
|
-
msgstr "禁用"
|
163
|
-
|
164
|
-
msgid "Discover"
|
165
|
-
msgstr "发现"
|
166
|
-
|
167
100
|
msgid "Download Policy"
|
168
101
|
msgstr "下载政策"
|
169
102
|
|
170
103
|
msgid "Edit %s"
|
171
104
|
msgstr "编辑 %s"
|
172
105
|
|
173
|
-
msgid "Enable"
|
174
|
-
msgstr "启用"
|
175
|
-
|
176
|
-
msgid "Errata mail"
|
177
|
-
msgstr "勘误邮件"
|
178
|
-
|
179
106
|
msgid "Expand products"
|
180
107
|
msgstr ""
|
181
108
|
|
182
|
-
msgid "Export"
|
183
|
-
msgstr "导出"
|
184
|
-
|
185
|
-
msgid "Export Library"
|
186
|
-
msgstr "导出库"
|
187
|
-
|
188
|
-
msgid "Export Repository"
|
189
|
-
msgstr "导出仓库"
|
190
|
-
|
191
109
|
msgid "Failed to add task to queue."
|
192
110
|
msgstr ""
|
193
111
|
|
194
112
|
msgid "Failed to add task to queue: %s"
|
195
113
|
msgstr "向队列添加任务失败:%s"
|
196
114
|
|
197
|
-
msgid "
|
198
|
-
msgstr "
|
115
|
+
msgid "Failed to create SCC account."
|
116
|
+
msgstr ""
|
199
117
|
|
200
|
-
msgid "
|
118
|
+
msgid "Failed to update SCC account."
|
201
119
|
msgstr ""
|
202
120
|
|
203
|
-
msgid "
|
204
|
-
msgstr "
|
121
|
+
msgid "Filter repositories"
|
122
|
+
msgstr ""
|
205
123
|
|
206
124
|
msgid "Foreman plugin to sync SUSE Customer Center products and repositories into Katello."
|
207
125
|
msgstr "Foreman 插件,将 SUSE 客户中心产品和存储库同步到 Katello。"
|
208
126
|
|
209
|
-
msgid "
|
210
|
-
msgstr "
|
211
|
-
|
212
|
-
msgid "Generate repository applicability"
|
213
|
-
msgstr "生成仓库适用性"
|
127
|
+
msgid "GPG key for SUSE products"
|
128
|
+
msgstr ""
|
214
129
|
|
215
130
|
msgid "Go to Product page"
|
216
131
|
msgstr ""
|
@@ -218,11 +133,8 @@ msgstr ""
|
|
218
133
|
msgid "Go to Repository page"
|
219
134
|
msgstr ""
|
220
135
|
|
221
|
-
msgid "
|
222
|
-
msgstr "
|
223
|
-
|
224
|
-
msgid "Hypervisors update"
|
225
|
-
msgstr "Hypervisor 更新"
|
136
|
+
msgid "HH:MM AM"
|
137
|
+
msgstr ""
|
226
138
|
|
227
139
|
msgid "If this option is enabled, debug and source pool repositories are automatically selected if you select a product. This option is disabled by default. It applies for unselected products, only. Already selected products are not filtered."
|
228
140
|
msgstr ""
|
@@ -230,51 +142,9 @@ msgstr ""
|
|
230
142
|
msgid "Immediate"
|
231
143
|
msgstr "立即"
|
232
144
|
|
233
|
-
msgid "Import"
|
234
|
-
msgstr "导入"
|
235
|
-
|
236
|
-
msgid "Import Content View Version"
|
237
|
-
msgstr "导入内容视图版本"
|
238
|
-
|
239
|
-
msgid "Import Default Content View"
|
240
|
-
msgstr "导入默认内容视图"
|
241
|
-
|
242
|
-
msgid "Import Puppet classes"
|
243
|
-
msgstr "导入 Puppet 类"
|
244
|
-
|
245
|
-
msgid "Import Repository"
|
246
|
-
msgstr "导入仓库"
|
247
|
-
|
248
|
-
msgid "Import facts"
|
249
|
-
msgstr "导入事实"
|
250
|
-
|
251
145
|
msgid "Include Debug and Source Pool repositories"
|
252
146
|
msgstr ""
|
253
147
|
|
254
|
-
msgid "Incremental Update"
|
255
|
-
msgstr "增量更新"
|
256
|
-
|
257
|
-
msgid "Incremental Update of Content View Version(s) "
|
258
|
-
msgstr "内容视图版本的增量更新"
|
259
|
-
|
260
|
-
msgid "Index content"
|
261
|
-
msgstr "索引內容"
|
262
|
-
|
263
|
-
msgid "Index errata"
|
264
|
-
msgstr "索引勘误"
|
265
|
-
|
266
|
-
msgid "Index module streams"
|
267
|
-
msgstr "索引模块流"
|
268
|
-
|
269
|
-
msgid "Index package groups"
|
270
|
-
msgstr "索引软件包组"
|
271
|
-
|
272
|
-
msgid "Install Applicable Errata"
|
273
|
-
msgstr "安装适用的勘误"
|
274
|
-
|
275
|
-
msgid "Instance update"
|
276
|
-
msgstr "实例更新"
|
277
|
-
|
278
148
|
msgid "Interval cannot be nil"
|
279
149
|
msgstr "间隔不能为零"
|
280
150
|
|
@@ -296,26 +166,29 @@ msgstr ""
|
|
296
166
|
msgid "Lock on SCC account already taken: %s"
|
297
167
|
msgstr "锁定 SCC 帐户已采用:%s"
|
298
168
|
|
169
|
+
msgid "Login"
|
170
|
+
msgstr ""
|
171
|
+
|
299
172
|
msgid "Login id of scc_account"
|
300
173
|
msgstr "scc_account 的登录 ID"
|
301
174
|
|
302
175
|
msgid "Mirroring Policy"
|
303
176
|
msgstr "镜像策略"
|
304
177
|
|
178
|
+
msgid "Name"
|
179
|
+
msgstr ""
|
180
|
+
|
305
181
|
msgid "Name of the scc_account"
|
306
182
|
msgstr "scc_account 的名称"
|
307
183
|
|
308
|
-
msgid "No products selected."
|
309
|
-
msgstr "没有选择产品."
|
310
|
-
|
311
184
|
msgid "None"
|
312
185
|
msgstr "没有"
|
313
186
|
|
314
187
|
msgid "On Demand"
|
315
188
|
msgstr "按需"
|
316
189
|
|
317
|
-
msgid "
|
318
|
-
msgstr "
|
190
|
+
msgid "Password"
|
191
|
+
msgstr ""
|
319
192
|
|
320
193
|
msgid "Password of scc_account"
|
321
194
|
msgstr "scc_account 的密码"
|
@@ -326,69 +199,42 @@ msgstr ""
|
|
326
199
|
msgid "Please synchronize your SUSE account before you can subscribe to SUSE products."
|
327
200
|
msgstr ""
|
328
201
|
|
329
|
-
msgid "Product Create"
|
330
|
-
msgstr "产品创建"
|
331
|
-
|
332
202
|
msgid "Product Selection for Account %s"
|
333
203
|
msgstr "为帐户 %s 选择产品"
|
334
204
|
|
335
205
|
msgid "Products"
|
336
206
|
msgstr "产品"
|
337
207
|
|
338
|
-
msgid "
|
339
|
-
msgstr "
|
340
|
-
|
341
|
-
msgid "Promotion to Environment"
|
342
|
-
msgstr "升级到环境"
|
343
|
-
|
344
|
-
msgid "Publish"
|
345
|
-
msgstr "发布"
|
346
|
-
|
347
|
-
msgid "Publish Lifecycle Environment Repositories"
|
348
|
-
msgstr "发布生命周期环境仓库"
|
349
|
-
|
350
|
-
msgid "Refresh Alternate Content Source"
|
351
|
-
msgstr "刷新备用内容源"
|
352
|
-
|
353
|
-
msgid "Reindex subscriptions"
|
354
|
-
msgstr "重新索引订阅"
|
355
|
-
|
356
|
-
msgid "Remove Content"
|
357
|
-
msgstr "删除内容"
|
358
|
-
|
359
|
-
msgid "Remove Version"
|
360
|
-
msgstr "移除版本"
|
361
|
-
|
362
|
-
msgid "Remove Versions and Associations"
|
363
|
-
msgstr "删除版本和关联"
|
364
|
-
|
365
|
-
msgid "Remove from Environment"
|
366
|
-
msgstr "从环境中移除"
|
208
|
+
msgid "Refresh interval"
|
209
|
+
msgstr ""
|
367
210
|
|
368
|
-
msgid "
|
369
|
-
msgstr "
|
211
|
+
msgid "Refresh time"
|
212
|
+
msgstr ""
|
370
213
|
|
371
214
|
msgid "Repositories (%s/%s)"
|
372
215
|
msgstr ""
|
373
216
|
|
374
|
-
msgid "Repository
|
217
|
+
msgid "Repository Sync Settings"
|
375
218
|
msgstr ""
|
376
219
|
|
377
|
-
msgid "
|
378
|
-
msgstr "
|
220
|
+
msgid "Repository not imported"
|
221
|
+
msgstr ""
|
379
222
|
|
380
223
|
msgid "Reset Selection"
|
381
224
|
msgstr ""
|
382
225
|
|
383
|
-
msgid "
|
384
|
-
msgstr "
|
226
|
+
msgid "SCC Account Credentials"
|
227
|
+
msgstr ""
|
228
|
+
|
229
|
+
msgid "SCC account created successfully."
|
230
|
+
msgstr ""
|
231
|
+
|
232
|
+
msgid "SCC account updated successfully."
|
233
|
+
msgstr ""
|
385
234
|
|
386
235
|
msgid "SUSE Customer Center"
|
387
236
|
msgstr "SUSE 客户中心"
|
388
237
|
|
389
|
-
msgid "SUSE Customer Center account"
|
390
|
-
msgstr "SUSE 客户中心帐户"
|
391
|
-
|
392
238
|
msgid "SUSE Subscription"
|
393
239
|
msgstr "SUSE 订阅"
|
394
240
|
|
@@ -440,9 +286,15 @@ msgstr ""
|
|
440
286
|
msgid "Show/Hide unsubscribed"
|
441
287
|
msgstr ""
|
442
288
|
|
289
|
+
msgid "Specifies the daily time when the SCC authentication token refresh process starts. Set this to a time outside of business hours (e.g., during the night) to minimize disruption."
|
290
|
+
msgstr ""
|
291
|
+
|
443
292
|
msgid "Starting the subscription task failed."
|
444
293
|
msgstr ""
|
445
294
|
|
295
|
+
msgid "Submit"
|
296
|
+
msgstr ""
|
297
|
+
|
446
298
|
msgid "Subscribe SCC Product"
|
447
299
|
msgstr "订阅 SCC 产品"
|
448
300
|
|
@@ -455,9 +307,6 @@ msgstr ""
|
|
455
307
|
msgid "Sync"
|
456
308
|
msgstr "同步"
|
457
309
|
|
458
|
-
msgid "Sync Date"
|
459
|
-
msgstr "同步日期"
|
460
|
-
|
461
310
|
msgid "Sync SUSE subscriptions"
|
462
311
|
msgstr "同步 SUSE 订阅"
|
463
312
|
|
@@ -467,33 +316,15 @@ msgstr "同步 SUSE 订阅(产品)"
|
|
467
316
|
msgid "Sync SUSE subscriptions (Repositories)"
|
468
317
|
msgstr "同步 SUSE 订阅(仓库)"
|
469
318
|
|
470
|
-
msgid "Sync capsule"
|
471
|
-
msgstr "同步 capsule"
|
472
|
-
|
473
|
-
msgid "Sync interval"
|
474
|
-
msgstr "同步间隔"
|
475
|
-
|
476
319
|
msgid "Sync scc_account"
|
477
320
|
msgstr "同步 scc_account"
|
478
321
|
|
479
322
|
msgid "Sync task started."
|
480
323
|
msgstr "同步任务已启动。"
|
481
324
|
|
482
|
-
msgid "Syncable export"
|
483
|
-
msgstr "可同步导出"
|
484
|
-
|
485
|
-
msgid "Synchronize"
|
486
|
-
msgstr "同步"
|
487
|
-
|
488
325
|
msgid "Synchronize SUSE Account"
|
489
326
|
msgstr ""
|
490
327
|
|
491
|
-
msgid "Synchronize smart proxy"
|
492
|
-
msgstr "同步智能代理服务器"
|
493
|
-
|
494
|
-
msgid "Task to subscribe products started."
|
495
|
-
msgstr "订阅产品的任务已开始。"
|
496
|
-
|
497
328
|
msgid "Test Connection"
|
498
329
|
msgstr "测试连接"
|
499
330
|
|
@@ -518,8 +349,11 @@ msgstr ""
|
|
518
349
|
msgid "The subscription task with id "
|
519
350
|
msgstr ""
|
520
351
|
|
521
|
-
msgid "The
|
522
|
-
msgstr "
|
352
|
+
msgid "The token refresh interval is used to periodically update the SCC authentication tokens of any imported products."
|
353
|
+
msgstr ""
|
354
|
+
|
355
|
+
msgid "Token Refresh Settings"
|
356
|
+
msgstr ""
|
523
357
|
|
524
358
|
msgid "URL of SUSE for scc_account"
|
525
359
|
msgstr "scc_account 的 SUSE URL"
|
@@ -527,63 +361,21 @@ msgstr "scc_account 的 SUSE URL"
|
|
527
361
|
msgid "Unknown"
|
528
362
|
msgstr "未知"
|
529
363
|
|
530
|
-
msgid "Update"
|
531
|
-
msgstr "更新"
|
532
|
-
|
533
|
-
msgid "Update Alternate Content Source"
|
534
|
-
msgstr "更新备用内容源"
|
535
|
-
|
536
|
-
msgid "Update CDN Configuration"
|
537
|
-
msgstr "更新 CDN 配置"
|
538
|
-
|
539
|
-
msgid "Update Content Overrides"
|
540
|
-
msgstr "更新内容覆盖"
|
541
|
-
|
542
364
|
msgid "Update SUSE repositories"
|
543
365
|
msgstr "创建 SUSE 仓库"
|
544
366
|
|
545
367
|
msgid "Update SUSE repositories %s"
|
546
368
|
msgstr "更新 SUSE 仓库 %s"
|
547
369
|
|
548
|
-
msgid "Update content urls"
|
549
|
-
msgstr "更新内容 url"
|
550
|
-
|
551
|
-
msgid "Update for host"
|
552
|
-
msgstr "对主机的更新"
|
553
|
-
|
554
|
-
msgid "Update http proxy"
|
555
|
-
msgstr "更新 HTTP 代理"
|
556
|
-
|
557
|
-
msgid "Update http proxy details"
|
558
|
-
msgstr "更新 http 代理详情"
|
559
|
-
|
560
|
-
msgid "Update redhat repository"
|
561
|
-
msgstr "更新 redhat 仓库"
|
562
|
-
|
563
|
-
msgid "Update release version for host"
|
564
|
-
msgstr "为主机更新发行版本"
|
565
|
-
|
566
370
|
msgid "Update scc_account"
|
567
371
|
msgstr "更新 scc_account"
|
568
372
|
|
569
|
-
msgid "Updating System Purpose for host"
|
570
|
-
msgstr "主机更新系统目的"
|
571
|
-
|
572
|
-
msgid "Upload into"
|
573
|
-
msgstr "上传到"
|
574
|
-
|
575
|
-
msgid "Use GPG key for SUSE products"
|
576
|
-
msgstr "将 GPG 密钥用于 SUSE 产品"
|
577
|
-
|
578
373
|
msgid "Use this setting if you want to automatically add a GPG key to your SUSE products upon subscription. You can change this setting in the 'Content' > 'Products' menu, later."
|
579
374
|
msgstr "如果要在订阅时自动在 SUSE 产品中添加 GPG 密钥,请使用这个设置。稍后,您可以在 'Content' > 'Products' 菜单中更改此设置。"
|
580
375
|
|
581
376
|
msgid "Use your 'Organization credentials' obtained from the SUSE Customer Center."
|
582
377
|
msgstr "使用从 SUSE 客户中心获取的\"组织凭据\"。"
|
583
378
|
|
584
|
-
msgid "Verify checksum"
|
585
|
-
msgstr "验证校验和"
|
586
|
-
|
587
379
|
msgid ""
|
588
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"
|
589
381
|
"\n"
|
@@ -592,8 +384,14 @@ msgid ""
|
|
592
384
|
"Really delete SCC account %s?"
|
593
385
|
msgstr ""
|
594
386
|
|
387
|
+
msgid "YYYY-MM-DD"
|
388
|
+
msgstr ""
|
389
|
+
|
595
390
|
msgid "You currently have no SUSE products selected. Search and add SUSE products in the section below."
|
596
391
|
msgstr ""
|
597
392
|
|
598
393
|
msgid "never synced"
|
599
394
|
msgstr "从未同步"
|
395
|
+
|
396
|
+
msgid "no results"
|
397
|
+
msgstr ""
|
@@ -219,7 +219,7 @@ class Api::V2::SccAccountsControllerTest < ActionController::TestCase
|
|
219
219
|
account = scc_accounts(:two)
|
220
220
|
put :update, params: { id: account.id, scc_account: { :interval => 'weekly', :sync_date => '' } }
|
221
221
|
assert_response :unprocessable_entity
|
222
|
-
|
222
|
+
assert_equal 'Validation failed: Sync date must be a valid datetime', JSON.parse(response.body)['error']
|
223
223
|
end
|
224
224
|
|
225
225
|
test 'should fail to update scc_account with interval set and invalid date' do
|
@@ -227,7 +227,7 @@ class Api::V2::SccAccountsControllerTest < ActionController::TestCase
|
|
227
227
|
put :update, params: { id: account.id, scc_account: { :sync_date => 'invalid_date', :interval => 'weekly' } }
|
228
228
|
|
229
229
|
assert_response :unprocessable_entity
|
230
|
-
|
230
|
+
assert_equal 'Validation failed: Sync date must be a valid datetime', JSON.parse(response.body)['error']
|
231
231
|
end
|
232
232
|
|
233
233
|
test 'should fail to update scc_account with empty name' do
|
@@ -235,7 +235,7 @@ class Api::V2::SccAccountsControllerTest < ActionController::TestCase
|
|
235
235
|
put :update, params: { id: account.id, scc_account: { :name => '', :sync_date => Time.now, :interval => 'weekly' } }
|
236
236
|
|
237
237
|
assert_response :unprocessable_entity
|
238
|
-
|
238
|
+
assert_equal "Validation failed: Name can't be blank", JSON.parse(response.body)['error']
|
239
239
|
end
|
240
240
|
|
241
241
|
test 'should fail to update scc_account with empty login' do
|
@@ -243,7 +243,7 @@ class Api::V2::SccAccountsControllerTest < ActionController::TestCase
|
|
243
243
|
put :update, params: { id: account.id, scc_account: { :login => '', :sync_date => Time.now, :interval => 'weekly' } }
|
244
244
|
|
245
245
|
assert_response :unprocessable_entity
|
246
|
-
|
246
|
+
assert_equal "Validation failed: Login can't be blank", JSON.parse(response.body)['error']
|
247
247
|
end
|
248
248
|
|
249
249
|
test 'should fail to update scc_account with empty base_url' do
|
@@ -251,7 +251,7 @@ class Api::V2::SccAccountsControllerTest < ActionController::TestCase
|
|
251
251
|
put :update, params: { id: account.id, scc_account: { :base_url => '', :sync_date => Time.now, :interval => 'weekly' } }
|
252
252
|
|
253
253
|
assert_response :unprocessable_entity
|
254
|
-
|
254
|
+
assert_equal "Validation failed: Base URL can't be blank", JSON.parse(response.body)['error']
|
255
255
|
end
|
256
256
|
|
257
257
|
test 'new account SCC server connection-test' do
|
@@ -0,0 +1,49 @@
|
|
1
|
+
.scc-account-form-title {
|
2
|
+
margin-bottom: 50px;
|
3
|
+
}
|
4
|
+
|
5
|
+
.scc-account-form-section {
|
6
|
+
padding-top: 24px;
|
7
|
+
padding-bottom: 24px;
|
8
|
+
overflow-x: hidden;
|
9
|
+
max-width: 100%;
|
10
|
+
box-sizing: border-box;
|
11
|
+
min-width: 0;
|
12
|
+
}
|
13
|
+
|
14
|
+
.scc-account-form-test-connection {
|
15
|
+
margin-top: 8px;
|
16
|
+
margin-bottom: 16px;
|
17
|
+
display: flex;
|
18
|
+
align-items: center;
|
19
|
+
gap: 12px;
|
20
|
+
}
|
21
|
+
|
22
|
+
.scc-account-form {
|
23
|
+
max-width: 100%;
|
24
|
+
overflow-x: hidden;
|
25
|
+
min-width: 0;
|
26
|
+
}
|
27
|
+
|
28
|
+
.scc-account-form-connection-ok {
|
29
|
+
color: var(--pf-v5-global--success-color--100);
|
30
|
+
}
|
31
|
+
|
32
|
+
.scc-account-form-connection-error {
|
33
|
+
color: var(--pf-v5-global--danger-color--100);
|
34
|
+
}
|
35
|
+
|
36
|
+
.scc-account-form-tooltip {
|
37
|
+
cursor: help;
|
38
|
+
text-decoration: underline dotted;
|
39
|
+
}
|
40
|
+
|
41
|
+
#content {
|
42
|
+
overflow-x: hidden;
|
43
|
+
}
|
44
|
+
|
45
|
+
#content .pf-v5-l-stack__item {
|
46
|
+
min-width: 0;
|
47
|
+
max-width: 100%;
|
48
|
+
box-sizing: border-box;
|
49
|
+
}
|
@@ -0,0 +1,74 @@
|
|
1
|
+
import { post, put } from 'foremanReact/redux/API';
|
2
|
+
import { translate as __ } from 'foremanReact/common/I18n';
|
3
|
+
|
4
|
+
export const testSccConnectionAction = ({
|
5
|
+
login,
|
6
|
+
password,
|
7
|
+
baseUrl,
|
8
|
+
onFinally,
|
9
|
+
isEdit,
|
10
|
+
id,
|
11
|
+
}) => {
|
12
|
+
const params = { scc_account: { login, password, base_url: baseUrl } };
|
13
|
+
const request = isEdit ? put : post;
|
14
|
+
|
15
|
+
const handleFinally = () => {
|
16
|
+
if (onFinally) onFinally();
|
17
|
+
};
|
18
|
+
|
19
|
+
return request({
|
20
|
+
key: isEdit ? `testSccConnection_${id}` : 'testSccConnection',
|
21
|
+
url: isEdit
|
22
|
+
? `/api/v2/scc_accounts/${id}/test_connection`
|
23
|
+
: '/api/v2/scc_accounts/test_connection',
|
24
|
+
params,
|
25
|
+
successToast: () => __('Connection OK'),
|
26
|
+
errorToast: () => __('Connection test failed.'),
|
27
|
+
handleSuccess: handleFinally,
|
28
|
+
handleError: handleFinally,
|
29
|
+
});
|
30
|
+
};
|
31
|
+
|
32
|
+
export const submitSccAccountAction = ({
|
33
|
+
isEdit,
|
34
|
+
organizationId,
|
35
|
+
updateUrl,
|
36
|
+
payload,
|
37
|
+
onSuccess,
|
38
|
+
onError,
|
39
|
+
}) => {
|
40
|
+
const params = { scc_account: payload };
|
41
|
+
const request = isEdit ? put : post;
|
42
|
+
const url = isEdit ? updateUrl : '/api/v2/scc_accounts';
|
43
|
+
|
44
|
+
const handleSuccess = (response) => {
|
45
|
+
const redirect =
|
46
|
+
response?.data?.redirect ||
|
47
|
+
response?.data?.location ||
|
48
|
+
response?.redirect;
|
49
|
+
|
50
|
+
if (onSuccess) onSuccess(redirect || '/scc_accounts');
|
51
|
+
};
|
52
|
+
|
53
|
+
const handleError = () => {
|
54
|
+
if (onError) onError();
|
55
|
+
};
|
56
|
+
|
57
|
+
return request({
|
58
|
+
key: isEdit
|
59
|
+
? `updateSccAccount_${organizationId}`
|
60
|
+
: `createSccAccount_${organizationId}`,
|
61
|
+
url,
|
62
|
+
params,
|
63
|
+
successToast: () =>
|
64
|
+
isEdit
|
65
|
+
? __('SCC account updated successfully.')
|
66
|
+
: __('SCC account created successfully.'),
|
67
|
+
errorToast: () =>
|
68
|
+
isEdit
|
69
|
+
? __('Failed to update SCC account.')
|
70
|
+
: __('Failed to create SCC account.'),
|
71
|
+
handleSuccess,
|
72
|
+
handleError,
|
73
|
+
});
|
74
|
+
};
|