foreman_scc_manager 2.2.3 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/app/assets/javascripts/foreman_scc_manager/locale/de/foreman_scc_manager.js +592 -0
  4. data/app/assets/javascripts/foreman_scc_manager/locale/el/foreman_scc_manager.js +592 -0
  5. data/app/assets/javascripts/foreman_scc_manager/locale/en/foreman_scc_manager.js +592 -0
  6. data/app/assets/javascripts/foreman_scc_manager/locale/fr/foreman_scc_manager.js +592 -0
  7. data/app/assets/javascripts/foreman_scc_manager/locale/ja/foreman_scc_manager.js +592 -0
  8. data/app/assets/javascripts/foreman_scc_manager/locale/ka/foreman_scc_manager.js +592 -0
  9. data/app/assets/javascripts/foreman_scc_manager/locale/zh_CN/foreman_scc_manager.js +592 -0
  10. data/app/controllers/api/v2/scc_accounts_controller.rb +21 -17
  11. data/app/controllers/api/v2/scc_products_controller.rb +2 -2
  12. data/app/controllers/scc_accounts_controller.rb +14 -8
  13. data/app/lib/actions/scc_manager/subscribe_product.rb +14 -14
  14. data/app/lib/actions/scc_manager/sync_products.rb +6 -6
  15. data/app/lib/actions/scc_manager/sync_repositories.rb +5 -5
  16. data/app/models/scc_account.rb +2 -2
  17. data/app/models/scc_product.rb +4 -4
  18. data/app/views/api/v2/scc_products/main.json.rabl +1 -1
  19. data/db/migrate/20200520281300_fix_scc_permissions.rb +1 -1
  20. data/db/migrate/20210713092440_add_permissions.rb +1 -1
  21. data/db/migrate/20220429102717_populate_scc_katello_repositories.rb +1 -0
  22. data/lib/foreman_scc_manager/engine.rb +41 -46
  23. data/lib/foreman_scc_manager/version.rb +1 -1
  24. data/lib/tasks/rubocop.rake +2 -2
  25. data/lib/tasks/setup_authentication_token.rake +1 -1
  26. data/locale/Makefile +8 -10
  27. data/locale/fr/LC_MESSAGES/foreman_scc_manager.mo +0 -0
  28. data/locale/fr/foreman_scc_manager.po +601 -0
  29. data/package.json +12 -15
  30. data/test/controllers/api/v2/scc_accounts_test.rb +21 -21
  31. data/test/controllers/scc_accounts_controller_test.rb +9 -9
  32. data/test/features/sync_test.rb +9 -9
  33. data/test/fixtures/models/scc_repositories.yml +1 -1
  34. data/test/models/scc_account_test.rb +3 -3
  35. data/test/models/scc_product_test.rb +1 -1
  36. data/test/support/fixtures_support.rb +1 -1
  37. data/test/test_plugin_helper.rb +4 -4
  38. data/webpack/components/SCCProductPage/components/SCCProductPicker/components/SCCTreePicker/components/SCCRepoPicker/index.js +8 -8
  39. data/webpack/components/SCCProductPage/components/SCCProductPicker/components/SCCTreePicker/index.js +4 -12
  40. data/webpack/components/SCCProductPage/components/SCCProductView/components/SCCRepoView/index.js +4 -4
  41. metadata +14 -20
  42. data/locale/action_names.rb +0 -88
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 97b391d1c7ebd92e46c201eff5eba99884a4b5bdd042a419732f03e6c0bbf517
4
- data.tar.gz: 80a2f36231540787272e6bdf500c564973820f105ece4fca2f8fba9b370e14da
3
+ metadata.gz: d4db874ecb5f9ac07ff8647be41c6e07767e238306e52da387e193225f08fe69
4
+ data.tar.gz: c211d00918ce0bb0d7655dbce0ba9f08349cdb339e5e29682093aa1584add37c
5
5
  SHA512:
6
- metadata.gz: da341720dab31fc5c1570991e911eaf5aa738ef5143d4a4f49ae6b950acb1e32167ba968f4d6e4b8cba73e868f6886302b06d515e38662017b7f79b0cbc32ece
7
- data.tar.gz: c5331a5ef653e41880e0c1a718f1350085bbf9a2c6299db689190781191824881e6becdfd38a3535e6eaa7153c7d8daa219d49674a072f2d0983e105bad49066
6
+ metadata.gz: 2cecc139e3aaffb1a4fe652e137793892862ab78a80a6a4c039c8ed3a8c7044b931eb80a211e57536f257ffe5064ab5f9a1c3113a198ab849509b85906d32d12
7
+ data.tar.gz: a4e7fcffdef24ab1388e3a13ac245f505e90c7914f667ed72ffa5444db9c2bb7fe5ee6ed7cea651beb51386c1f3a1450c6a98c773f79d2aa1faf57e363753e41
data/README.md CHANGED
@@ -17,7 +17,7 @@ foreman-installer --scenario katello --enable-foreman-plugin-scc-manager
17
17
  You can also install it manually:
18
18
 
19
19
  ```sh
20
- yum install tfm-rubygem-foreman_scc_manager
20
+ dnf install rubygem-foreman_scc_manager
21
21
 
22
22
  foreman-installer
23
23
  ```
@@ -51,7 +51,7 @@ Fork and send a Pull Request. Thanks!
51
51
 
52
52
  ## Copyright
53
53
 
54
- Copyright (c) 2022 ATIX AG - https://atix.de
54
+ Copyright (c) 2023 ATIX AG - https://atix.de
55
55
 
56
56
  This program is free software: you can redistribute it and/or modify
57
57
  it under the terms of the GNU General Public License as published by
@@ -0,0 +1,592 @@
1
+ locales['foreman_scc_manager'] = locales['foreman_scc_manager'] || {}; locales['foreman_scc_manager']['de'] = {
2
+ "domain": "foreman_scc_manager",
3
+ "locale_data": {
4
+ "foreman_scc_manager": {
5
+ "": {
6
+ "Project-Id-Version": "foreman_scc_manager 1.8.7",
7
+ "Report-Msgid-Bugs-To": "",
8
+ "PO-Revision-Date": "2019-10-17 13:28+0000",
9
+ "Last-Translator": "Nadja Heitmann <nadjah@atix.de>, 2021",
10
+ "Language-Team": "German (https://www.transifex.com/foreman/teams/114/de/)",
11
+ "MIME-Version": "1.0",
12
+ "Content-Type": "text/plain; charset=UTF-8",
13
+ "Content-Transfer-Encoding": "8bit",
14
+ "Language": "de",
15
+ "Plural-Forms": "nplurals=2; plural=(n != 1);",
16
+ "lang": "de",
17
+ "domain": "foreman_scc_manager",
18
+ "plural_forms": "nplurals=2; plural=(n != 1);"
19
+ },
20
+ "List all scc_accounts": [
21
+ "Alle SCC Konten auflisten"
22
+ ],
23
+ "Show scc_account": [
24
+ "SCC Konto anzeigen"
25
+ ],
26
+ "Name of the scc_account": [
27
+ "Name des SCC Kontos"
28
+ ],
29
+ "Login id of scc_account": [
30
+ "Login ID des SCC Kontos"
31
+ ],
32
+ "Password of scc_account": [
33
+ "Passwort für SCC Konto"
34
+ ],
35
+ "URL of SUSE for scc_account": [
36
+ "URL für SUSE Konto"
37
+ ],
38
+ "Interval for syncing scc_account": [
39
+ ""
40
+ ],
41
+ "The default download policy for repositories which were created using this SCC Account.": [
42
+ ""
43
+ ],
44
+ "The default mirroring policy for repositories which were created using this SCC Account.": [
45
+ ""
46
+ ],
47
+ "Date and time relative to which the sync interval is run": [
48
+ "Relativ zu diesem Zeitpunkt wird die Synchronisation ausgeführt"
49
+ ],
50
+ "Associated GPG key of scc_account": [
51
+ "Mit SCC Konto assoziierter GPG-Schlüssel"
52
+ ],
53
+ "Create an scc_account": [
54
+ "SCC Konto erstellen"
55
+ ],
56
+ "Update scc_account": [
57
+ "SCC Konto aktualisieren"
58
+ ],
59
+ "Delete scc_account": [
60
+ "SCC Konto löschen"
61
+ ],
62
+ "Test connection for scc_account": [
63
+ "Verbindung zum SCC Konto testen"
64
+ ],
65
+ "Sync scc_account": [
66
+ "SCC Konto Synchronisieren"
67
+ ],
68
+ "Bulk subscription of scc_products for scc_account": [
69
+ ""
70
+ ],
71
+ "Bulk subscription of scc_products with individual repository selection for scc_account.": [
72
+ ""
73
+ ],
74
+ "The selected products cannot be found for this SCC account.": [
75
+ ""
76
+ ],
77
+ "List products for an scc_account": [
78
+ ""
79
+ ],
80
+ "Show subscribed products only": [
81
+ ""
82
+ ],
83
+ "Show an scc_account product": [
84
+ "SCC Produkt anzeigen"
85
+ ],
86
+ "Subscribe product": [
87
+ "Produkt abonnieren"
88
+ ],
89
+ "Sync task started.": [
90
+ "Sync Job gestartet."
91
+ ],
92
+ "Failed to add task to queue: %s": [
93
+ "Aufgabe konnte nicht in die Warteschlange gestellt werden: %s"
94
+ ],
95
+ "Lock on SCC account already taken: %s": [
96
+ "Lock für SCC Zugang bereits vergeben: %s"
97
+ ],
98
+ "Task to subscribe products started.": [
99
+ "Job zum abonnieren von Produkten gestartet."
100
+ ],
101
+ "No products selected.": [
102
+ "Keine Produkte ausgewählt."
103
+ ],
104
+ "Subscribe SCC Product": [
105
+ "SCC Produkt abonnieren"
106
+ ],
107
+ "Sync SUSE subscriptions": [
108
+ "SUSE Abonnements synchronisieren"
109
+ ],
110
+ "Update SUSE repositories %s": [
111
+ "SUSE Repositorien %s aktualisieren"
112
+ ],
113
+ "Unknown": [
114
+ "Unbekannt"
115
+ ],
116
+ "Update SUSE repositories": [
117
+ "SUSE Repositorien aktualisieren"
118
+ ],
119
+ "Sync SUSE subscriptions (Products)": [
120
+ "SUSE Abonnements (Produkte) synchronisieren"
121
+ ],
122
+ "Sync SUSE subscriptions (Repositories)": [
123
+ "SUSE Abonnements (Repositorien) synchronisieren"
124
+ ],
125
+ "never synced": [
126
+ "Nie synchronisiert"
127
+ ],
128
+ "Interval cannot be nil": [
129
+ "Intervall darf nicht Null sein"
130
+ ],
131
+ "Interval not set correctly": [
132
+ "Intervall nicht richtig gesetzt"
133
+ ],
134
+ "Cron expression is not valid!": [
135
+ "Cron-Ausdruck ungültig!"
136
+ ],
137
+ "On Demand": [
138
+ ""
139
+ ],
140
+ "Immediate": [
141
+ ""
142
+ ],
143
+ "Additive": [
144
+ ""
145
+ ],
146
+ "Content Only": [
147
+ ""
148
+ ],
149
+ "SUSE Subscription": [
150
+ "SUSE Abonnement"
151
+ ],
152
+ "SUSE Subscription: ": [
153
+ "SUSE Abonnement:"
154
+ ],
155
+ "SUSE Customer Center account": [
156
+ "SUSE Customer Center Konto"
157
+ ],
158
+ "Use your 'Organization credentials' obtained from the SUSE Customer Center.": [
159
+ "Verwenden Sie die \\\"Organisationszugangsdaten\\\" aus dem SUSE Customer Center."
160
+ ],
161
+ "Base URL": [
162
+ "Basis URL"
163
+ ],
164
+ "Sync interval": [
165
+ "Synchronisationsintervall"
166
+ ],
167
+ "The sync interval is used to periodically update the SCC authentication tokens of any imported products.": [
168
+ "Das Synchronisationsintervall ist die Zeit, nach der automatisch das Autorisierungstoken erneuert wird."
169
+ ],
170
+ "Sync Date": [
171
+ "Synchronisationsdatum"
172
+ ],
173
+ "None": [
174
+ "Keine Auswahl"
175
+ ],
176
+ "Use GPG key for SUSE products": [
177
+ "GPG-Schlüssel mit SUSE Produkten assoziieren"
178
+ ],
179
+ "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.": [
180
+ "Verwenden Sie diese Einstellung, wenn Sie beim Abonnieren automatisch einen GPG-Schlüssel zu Ihren SUSE Produkten hinzufügen wollen. Diese Einstellung kann später unter 'Inhalt' > 'Produkte' wieder geändert werden."
181
+ ],
182
+ "Download Policy": [
183
+ ""
184
+ ],
185
+ "Mirroring Policy": [
186
+ ""
187
+ ],
188
+ "Test Connection": [
189
+ "Verbindung testen"
190
+ ],
191
+ "Edit %s": [
192
+ "%s bearbeiten"
193
+ ],
194
+ "SUSE subscriptions": [
195
+ "SUSE Abonnements"
196
+ ],
197
+ "Add SCC account": [
198
+ "SCC Konto hinzufügen"
199
+ ],
200
+ "Products": [
201
+ "Produkte"
202
+ ],
203
+ "Last synced": [
204
+ "Letzte Synchronisation"
205
+ ],
206
+ "Actions": [
207
+ "Aktionen"
208
+ ],
209
+ "Select products": [
210
+ "Produkte auswählen"
211
+ ],
212
+ "Sync": [
213
+ "Synchronisation"
214
+ ],
215
+ "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\\nReally delete SCC account %s?": [
216
+ ""
217
+ ],
218
+ "Add SUSE Customer Center Account": [
219
+ "SUSE Customer Center Konto hinzufügen"
220
+ ],
221
+ "Product Selection for Account %s": [
222
+ "Produktauswahl für Konto %s"
223
+ ],
224
+ "SUSE Subscriptions": [
225
+ "SUSE Abonnements"
226
+ ],
227
+ "Please synchronize your SUSE account before you can subscribe to SUSE products.": [
228
+ ""
229
+ ],
230
+ "SUSE Customer Center": [
231
+ "SUSE Customer Center"
232
+ ],
233
+ "Synchronize SUSE Account": [
234
+ ""
235
+ ],
236
+ "The subscription task has been started successfully": [
237
+ ""
238
+ ],
239
+ "Starting the subscription task failed.": [
240
+ ""
241
+ ],
242
+ "Failed to add task to queue.": [
243
+ ""
244
+ ],
245
+ "%s/%s": [
246
+ ""
247
+ ],
248
+ "Filter repositories": [
249
+ ""
250
+ ],
251
+ "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.": [
252
+ ""
253
+ ],
254
+ "Include Debug and Source Pool repositories": [
255
+ ""
256
+ ],
257
+ "Add product(s)": [
258
+ ""
259
+ ],
260
+ " -- Select Product --": [
261
+ ""
262
+ ],
263
+ " -- Select Version --": [
264
+ ""
265
+ ],
266
+ " -- Select Architecture --": [
267
+ ""
268
+ ],
269
+ "Select SUSE products": [
270
+ ""
271
+ ],
272
+ "Search": [
273
+ ""
274
+ ],
275
+ "Reset Selection": [
276
+ ""
277
+ ],
278
+ "Summary of SCC product subscription": [
279
+ ""
280
+ ],
281
+ "The subscription task with id ": [
282
+ ""
283
+ ],
284
+ " has started successfully.": [
285
+ ""
286
+ ],
287
+ "The following products will be imported:": [
288
+ ""
289
+ ],
290
+ "Go to Repository page": [
291
+ ""
292
+ ],
293
+ "Repository not imported": [
294
+ ""
295
+ ],
296
+ "Please check your SUSE subscription": [
297
+ ""
298
+ ],
299
+ "Repositories (%s/%s)": [
300
+ ""
301
+ ],
302
+ "Go to Product page": [
303
+ ""
304
+ ],
305
+ "Add more sub products to Product tree": [
306
+ ""
307
+ ],
308
+ "Show currently added repositories": [
309
+ ""
310
+ ],
311
+ "Selected SUSE Products": [
312
+ ""
313
+ ],
314
+ "You currently have no SUSE products selected. Search and add SUSE products in the section below.": [
315
+ ""
316
+ ],
317
+ "Show all subscription tasks": [
318
+ ""
319
+ ],
320
+ "Show last product subscription task": [
321
+ ""
322
+ ],
323
+ "Expand products": [
324
+ ""
325
+ ],
326
+ "Collapse products": [
327
+ ""
328
+ ],
329
+ "Collapse/Expand": [
330
+ ""
331
+ ],
332
+ "Show all products": [
333
+ ""
334
+ ],
335
+ "Show only subscribed products": [
336
+ ""
337
+ ],
338
+ "Show/Hide unsubscribed": [
339
+ ""
340
+ ],
341
+ "Import": [
342
+ ""
343
+ ],
344
+ "Export Repository": [
345
+ ""
346
+ ],
347
+ "Export Library": [
348
+ ""
349
+ ],
350
+ "Generate host applicability": [
351
+ ""
352
+ ],
353
+ "Bulk generate applicability for hosts": [
354
+ ""
355
+ ],
356
+ "Generate repository applicability": [
357
+ ""
358
+ ],
359
+ "Synchronize smart proxy": [
360
+ ""
361
+ ],
362
+ "Sync capsule": [
363
+ ""
364
+ ],
365
+ "Update CDN Configuration": [
366
+ ""
367
+ ],
368
+ "Update": [
369
+ ""
370
+ ],
371
+ "Delete": [
372
+ ""
373
+ ],
374
+ "Errata mail": [
375
+ ""
376
+ ],
377
+ "Incremental Update of Content View Version(s) ": [
378
+ ""
379
+ ],
380
+ "Import facts": [
381
+ ""
382
+ ],
383
+ "Import Puppet classes": [
384
+ ""
385
+ ],
386
+ "Abstract async task": [
387
+ ""
388
+ ],
389
+ "Syncable export": [
390
+ ""
391
+ ],
392
+ "Export": [
393
+ ""
394
+ ],
395
+ "Copy version units to library": [
396
+ ""
397
+ ],
398
+ "Create Syncable Export History": [
399
+ ""
400
+ ],
401
+ "Create Import History": [
402
+ ""
403
+ ],
404
+ "Create": [
405
+ ""
406
+ ],
407
+ "Delete Activation Key": [
408
+ ""
409
+ ],
410
+ "Create Export History": [
411
+ ""
412
+ ],
413
+ "Agent action": [
414
+ ""
415
+ ],
416
+ "Create Alternate Content Source": [
417
+ ""
418
+ ],
419
+ "Destroy Alternate Content Source": [
420
+ ""
421
+ ],
422
+ "Refresh Alternate Content Source": [
423
+ ""
424
+ ],
425
+ "Update Alternate Content Source": [
426
+ ""
427
+ ],
428
+ "Action with sub plans": [
429
+ ""
430
+ ],
431
+ "Abstract": [
432
+ ""
433
+ ],
434
+ "Remove from Environment": [
435
+ ""
436
+ ],
437
+ "Promote": [
438
+ ""
439
+ ],
440
+ "Promotion to Environment": [
441
+ ""
442
+ ],
443
+ "Publish": [
444
+ ""
445
+ ],
446
+ "Remove Versions and Associations": [
447
+ ""
448
+ ],
449
+ "Remove Version": [
450
+ ""
451
+ ],
452
+ "Import Content View Version": [
453
+ ""
454
+ ],
455
+ "Import Default Content View": [
456
+ ""
457
+ ],
458
+ "Import Repository": [
459
+ ""
460
+ ],
461
+ "Incremental Update": [
462
+ ""
463
+ ],
464
+ "Republish Version Repositories": [
465
+ ""
466
+ ],
467
+ "Delete Lifecycle Environment": [
468
+ ""
469
+ ],
470
+ "Publish Lifecycle Environment Repositories": [
471
+ ""
472
+ ],
473
+ "Attach subscriptions": [
474
+ ""
475
+ ],
476
+ "Auto attach subscriptions": [
477
+ ""
478
+ ],
479
+ "Destroy Content Host": [
480
+ ""
481
+ ],
482
+ "Install Applicable Errata": [
483
+ ""
484
+ ],
485
+ "Hypervisors": [
486
+ ""
487
+ ],
488
+ "Hypervisors update": [
489
+ ""
490
+ ],
491
+ "Remove subscriptions": [
492
+ ""
493
+ ],
494
+ "Combined Profile Update": [
495
+ ""
496
+ ],
497
+ "Update Content Overrides": [
498
+ ""
499
+ ],
500
+ "Update for host": [
501
+ ""
502
+ ],
503
+ "Update release version for host": [
504
+ ""
505
+ ],
506
+ "Updating System Purpose for host": [
507
+ ""
508
+ ],
509
+ "Package Profile Update": [
510
+ ""
511
+ ],
512
+ "Destroy": [
513
+ ""
514
+ ],
515
+ "Run Sync Plan:": [
516
+ ""
517
+ ],
518
+ "Enable": [
519
+ ""
520
+ ],
521
+ "Disable": [
522
+ ""
523
+ ],
524
+ "Verify checksum": [
525
+ ""
526
+ ],
527
+ "Create Package Group": [
528
+ ""
529
+ ],
530
+ "Upload into": [
531
+ ""
532
+ ],
533
+ "Update redhat repository": [
534
+ ""
535
+ ],
536
+ "Update http proxy details": [
537
+ ""
538
+ ],
539
+ "Update content urls": [
540
+ ""
541
+ ],
542
+ "Discover": [
543
+ ""
544
+ ],
545
+ "Synchronize": [
546
+ ""
547
+ ],
548
+ "Remove Content": [
549
+ ""
550
+ ],
551
+ "Instance update": [
552
+ ""
553
+ ],
554
+ "Index package groups": [
555
+ ""
556
+ ],
557
+ "Index module streams": [
558
+ ""
559
+ ],
560
+ "Index errata": [
561
+ ""
562
+ ],
563
+ "Index content": [
564
+ ""
565
+ ],
566
+ "Filtered index content": [
567
+ ""
568
+ ],
569
+ "Fetch pxe files": [
570
+ ""
571
+ ],
572
+ "Delete Package Group": [
573
+ ""
574
+ ],
575
+ "Update http proxy": [
576
+ ""
577
+ ],
578
+ "Reindex subscriptions": [
579
+ ""
580
+ ],
581
+ "Delete Product": [
582
+ ""
583
+ ],
584
+ "Product Create": [
585
+ ""
586
+ ],
587
+ "Foreman plugin to sync SUSE Customer Center products and repositories into Katello.": [
588
+ "Foreman Plugin um SUSE Customer Center Produkte und Repositorien in Katello zu importieren."
589
+ ]
590
+ }
591
+ }
592
+ };