foreman_scc_manager 1.6.3 → 1.7.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 (36) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -0
  3. data/Rakefile +1 -1
  4. data/app/controllers/api/v2/scc_accounts_controller.rb +159 -0
  5. data/app/controllers/api/v2/scc_products_controller.rb +64 -0
  6. data/app/models/scc_account.rb +2 -1
  7. data/app/models/scc_product.rb +1 -0
  8. data/app/views/api/v2/scc_accounts/base.json.rabl +5 -0
  9. data/app/views/api/v2/scc_accounts/index.json.rabl +4 -0
  10. data/app/views/api/v2/scc_accounts/main.json.rabl +5 -0
  11. data/app/views/api/v2/scc_accounts/show.json.rabl +4 -0
  12. data/app/views/api/v2/scc_products/base.json.rabl +5 -0
  13. data/app/views/api/v2/scc_products/index.json.rabl +4 -0
  14. data/app/views/api/v2/scc_products/main.json.rabl +5 -0
  15. data/app/views/api/v2/scc_products/show.json.rabl +5 -0
  16. data/config/routes.rb +30 -1
  17. data/lib/foreman_scc_manager/engine.rb +28 -9
  18. data/lib/foreman_scc_manager/version.rb +1 -1
  19. data/lib/tasks/rubocop.rake +0 -1
  20. data/locale/action_names.rb +5 -61
  21. data/locale/de/LC_MESSAGES/foreman_scc_manager.mo +0 -0
  22. data/locale/de/foreman_scc_manager.po +139 -210
  23. data/locale/en/LC_MESSAGES/foreman_scc_manager.mo +0 -0
  24. data/locale/en/foreman_scc_manager.po +129 -152
  25. data/locale/foreman_scc_manager.pot +120 -212
  26. data/test/controllers/api/v2/scc_accounts_test.rb +302 -0
  27. data/test/controllers/api/v2/scc_products_test.rb +40 -0
  28. data/test/features/sync_test.rb +3 -6
  29. data/test/{features → fixtures/files}/data_products_page1.json +0 -0
  30. data/test/{features → fixtures/files}/data_products_page2.json +0 -0
  31. data/test/fixtures/files/data_repositories.json +502 -0
  32. data/test/{features → fixtures/files}/data_subscriptions.json +0 -0
  33. data/test/models/scc_account_test.rb +4 -4
  34. data/test/models/scc_product_test.rb +2 -2
  35. data/test/test_plugin_helper.rb +2 -0
  36. metadata +25 -10
@@ -1,61 +1,5 @@
1
- # Autogenerated!
2
- _('Delete Lifecycle Environment')
3
- _('Destroy Content Host')
4
- _('Hypervisors')
5
- _('Hypervisors update')
6
- _('Install package')
7
- _('Remove package')
8
- _('Update for host')
9
- _('Install Applicable Errata')
10
- _('Update package')
11
- _('Update')
12
- _('Install package group')
13
- _('Package Profile Update')
14
- _('Configure capsule')
15
- _('Auto-attach subscriptions')
16
- _('Create repos')
17
- _('Create')
18
- _('Remove package group')
19
- _('Install erratum')
20
- _('Register Host')
21
- _('Remove subscriptions')
22
- _('Unregister Host')
23
- _('Delete Activation Key')
24
- _('Abstract async task')
25
- _('Incremental Update')
26
- _('Destroy')
27
- _('Synchronize capsule content')
28
- _('Product Create')
29
- _('Export')
30
- _('Delete Product')
31
- _('Delete')
32
- _('Auto attach subscriptions')
33
- _('Reindex subscriptions')
34
- _('Errata mail')
35
- _('Attach subscriptions')
36
- _('Incremental Update of 0 Content View Version(s) ')
37
- _('Import Puppet classes')
38
- _('Import facts')
39
- _('Filtered index content')
40
- _('Upload into')
41
- _('Action with sub plans')
42
- _('Upload errata into')
43
- _('Remove from Environment')
44
- _('Sync SUSE subscriptions')
45
- _('Enable')
46
- _('Index errata')
47
- _('Remove Version')
48
- _('Index package groups')
49
- _('Add Sync Plan Products')
50
- _('Sync SUSE subscriptions (Products)')
51
- _('Remove Content')
52
- _('Index content')
53
- _('Disable')
54
- _('Sync SUSE subscriptions (Repositories)')
55
- _('Subscribe SCC Product')
56
- _('Remove Versions and Associations')
57
- _('Synchronize')
58
- _('Publish')
59
- _('Update Sync Plan Products')
60
- _('Promotion')
61
- _('Update Sync Plan')
1
+ _("Subscribe SCC Product")
2
+ _("Sync SUSE subscriptions")
3
+ _("Update SUSE repositories")
4
+ _("Sync SUSE subscriptions (Products)")
5
+ _("Sync SUSE subscriptions (Repositories)")
@@ -1,265 +1,194 @@
1
- # German translations for foreman_scc_manager package.
2
- # Copyright (C) 2017 THE PACKAGE'S COPYRIGHT HOLDER
1
+ # SOME DESCRIPTIVE TITLE.
2
+ # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3
3
  # This file is distributed under the same license as the foreman_scc_manager package.
4
- # FIRST AUTHOR <EMAIL@ADDRESS>, 2017.
5
- #
4
+ # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
+ #
6
+ # Translators:
7
+ # Wiederoder <stefanwiederoder@googlemail.com>, 2019
8
+ # Bryan Kearney <bryan.kearney@gmail.com>, 2019
9
+ # simon11 <simon.stieger.98@live.de>, 2019
10
+ # Crited <Alexander.Stoll@netways.de>, 2019
11
+ # Michael Moll, 2019
12
+ # Lukas K. <kallies@puzzle.ch>, 2019
13
+ # Markus Bucher <bucher@atix.de>, 2019
14
+ #
15
+ #, fuzzy
6
16
  msgid ""
7
17
  msgstr ""
8
- "Project-Id-Version: foreman_scc_manager 1.0.0\n"
18
+ "Project-Id-Version: foreman_scc_manager 1.7.0\n"
9
19
  "Report-Msgid-Bugs-To: \n"
10
- "PO-Revision-Date: 2017-04-24 12:30+0000\n"
11
- "Last-Translator: ATIX AG <info@atix.de>\n"
12
- "Language-Team: German\n"
13
- "Language: de\n"
20
+ "POT-Creation-Date: 2019-10-22 13:59+0000\n"
21
+ "PO-Revision-Date: 2019-10-17 13:28+0000\n"
22
+ "Last-Translator: Markus Bucher <bucher@atix.de>, 2019\n"
23
+ "Language-Team: German (https://www.transifex.com/foreman/teams/114/de/)\n"
14
24
  "MIME-Version: 1.0\n"
15
25
  "Content-Type: text/plain; charset=UTF-8\n"
16
26
  "Content-Transfer-Encoding: 8bit\n"
17
- "Plural-Forms: nplurals=2; plural=n != 1;\n"
18
- "\n"
19
-
20
- msgid "Abstract async task"
21
- msgstr ""
22
-
23
- msgid "Action with sub plans"
24
- msgstr ""
25
-
26
- msgid "Actions"
27
- msgstr ""
28
-
29
- msgid "Add SCC account"
30
- msgstr "SCC Zugang hinzufügen"
31
-
32
- msgid "Add SUSE Customer Center Account"
33
- msgstr "SUSE Customer Center hinzufügen"
34
-
35
- msgid "Add Sync Plan Products"
36
- msgstr ""
37
-
38
- msgid "Attach subscriptions"
39
- msgstr ""
27
+ "Language: de\n"
28
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
40
29
 
41
- msgid "Auto attach subscriptions"
42
- msgstr ""
30
+ #: ../app/controllers/scc_accounts_controller.rb:64
31
+ msgid "Sync task started."
32
+ msgstr "Sync Job gestartet."
43
33
 
44
- msgid "Auto-attach subscriptions"
45
- msgstr ""
34
+ #: ../app/controllers/scc_accounts_controller.rb:66
35
+ #: ../app/controllers/scc_accounts_controller.rb:86
36
+ msgid "Failed to add task to queue: %s"
37
+ msgstr "Aufgabe konnte nicht in die Warteschlange gestellt werden: %s"
46
38
 
47
- msgid "Base URL"
48
- msgstr "Basis URL"
39
+ #: ../app/controllers/scc_accounts_controller.rb:68
40
+ #: ../app/controllers/scc_accounts_controller.rb:88
41
+ msgid "Lock on SCC account already taken: %s"
42
+ msgstr "Lock für SCC Zugang bereits vergeben: %s"
49
43
 
50
- msgid "Configure capsule"
51
- msgstr ""
44
+ #: ../app/controllers/scc_accounts_controller.rb:81
45
+ msgid "Task to subscribe products started."
46
+ msgstr "Job zum abonnieren von Produkten gestartet."
52
47
 
53
- msgid "Create"
54
- msgstr ""
48
+ #: ../app/controllers/scc_accounts_controller.rb:83
49
+ msgid "No products selected."
50
+ msgstr "Keine Produkte ausgewählt."
55
51
 
56
- msgid "Create repos"
57
- msgstr ""
52
+ #: ../app/lib/actions/scc_manager/subscribe_product.rb:5
53
+ msgid "Product already subscribed!"
54
+ msgstr "Produkt wurde bereits abonniert!"
58
55
 
59
- msgid "Delete"
60
- msgstr ""
56
+ #: ../app/lib/actions/scc_manager/subscribe_product.rb:35 action_names.rb:1
57
+ msgid "Subscribe SCC Product"
58
+ msgstr "SCC Produkt abonnieren"
61
59
 
62
- msgid "Delete %s?"
63
- msgstr ""
60
+ #: ../app/lib/actions/scc_manager/sync.rb:27 action_names.rb:2
61
+ msgid "Sync SUSE subscriptions"
62
+ msgstr "SUSE Abonnements synchronisieren"
64
63
 
65
- msgid "Delete Activation Key"
66
- msgstr ""
64
+ #: ../app/lib/actions/scc_manager/sync_plan_account_repositories.rb:31
65
+ msgid "Update SUSE repositories %s"
66
+ msgstr "SUSE Repositorien %s aktualisieren"
67
67
 
68
- msgid "Delete Lifecycle Environment"
69
- msgstr ""
68
+ #: ../app/lib/actions/scc_manager/sync_plan_account_repositories.rb:31
69
+ msgid "Unknown"
70
+ msgstr "Unbekannt"
70
71
 
71
- msgid "Delete Product"
72
- msgstr ""
72
+ #: ../app/lib/actions/scc_manager/sync_plan_account_repositories.rb:33
73
+ #: action_names.rb:3
74
+ msgid "Update SUSE repositories"
75
+ msgstr "SUSE Repositorien aktualisieren"
73
76
 
74
- msgid "Destroy"
75
- msgstr ""
77
+ #: ../app/lib/actions/scc_manager/sync_products.rb:34 action_names.rb:4
78
+ msgid "Sync SUSE subscriptions (Products)"
79
+ msgstr "SUSE Abonnements (Produkte) synchronisieren"
76
80
 
77
- msgid "Destroy Content Host"
78
- msgstr ""
81
+ #: ../app/lib/actions/scc_manager/sync_repositories.rb:33 action_names.rb:5
82
+ msgid "Sync SUSE subscriptions (Repositories)"
83
+ msgstr "SUSE Abonnements (Repositorien) synchronisieren"
79
84
 
80
- msgid "Disable"
81
- msgstr ""
85
+ #: ../app/models/scc_account.rb:58
86
+ msgid "never synced"
87
+ msgstr "Nie synchronisiert"
82
88
 
83
- msgid "Edit"
84
- msgstr ""
89
+ #: ../app/models/scc_account.rb:105
90
+ msgid "Interval cannot be nil"
91
+ msgstr "Intervall darf nicht Null sein"
85
92
 
86
- msgid "Edit %s"
87
- msgstr ""
93
+ #: ../app/models/scc_account.rb:112
94
+ msgid "Interval not set correctly"
95
+ msgstr "Intervall nicht richtig gesetzt"
88
96
 
89
- msgid "Enable"
90
- msgstr ""
97
+ #: ../app/models/scc_account.rb:117
98
+ msgid "Cron expression is not valid!"
99
+ msgstr "Cron-Ausdruck ungültig!"
91
100
 
92
- msgid "Errata mail"
93
- msgstr ""
101
+ #: ../app/models/scc_account_sync_plan_task_group.rb:5
102
+ msgid "SUSE Subscription"
103
+ msgstr "SUSE Abonnement"
94
104
 
95
- msgid "Export"
105
+ #: ../app/views/scc_account_sync_plan_task_groups/_scc_account_sync_plan_task_groups.html.erb:1
106
+ msgid "SUSE Subscription: "
96
107
  msgstr ""
97
108
 
98
- msgid "Failed to add task to queue: %s"
99
- msgstr "Task konnte nicht in die Warteschlange eingereiht werden: %s"
100
-
101
- msgid "Filtered index content"
102
- msgstr ""
109
+ #: ../app/views/scc_accounts/_form.html.erb:6
110
+ msgid "SUSE Customer Center account"
111
+ msgstr "SUSE Customer Center Konto"
103
112
 
113
+ #: ../app/views/scc_accounts/_form.html.erb:13
104
114
  msgid ""
105
- "Foreman plugin to sync SUSE Customer Center products and repositories into "
106
- "Katello."
107
- msgstr ""
108
- "Foreman plugin um SUSE Customer Center Producte and Repositories in Katello "
109
- "zu synchronisieren."
110
-
111
- msgid "Hypervisors"
112
- msgstr ""
113
-
114
- msgid "Hypervisors update"
115
- msgstr ""
116
-
117
- msgid "Import Puppet classes"
115
+ "Use your 'Organization credentials' obtained from the SUSE Customer Center."
118
116
  msgstr ""
117
+ "Verwenden Sie die \"Organisationszugangsdaten\" aus dem SUSE Customer "
118
+ "Center."
119
119
 
120
- msgid "Import facts"
121
- msgstr ""
122
-
123
- msgid "Incremental Update"
124
- msgstr ""
125
-
126
- msgid "Incremental Update of 0 Content View Version(s) "
127
- msgstr ""
128
-
129
- msgid "Index content"
130
- msgstr ""
131
-
132
- msgid "Index errata"
133
- msgstr ""
134
-
135
- msgid "Index package groups"
136
- msgstr ""
137
-
138
- msgid "Install Applicable Errata"
139
- msgstr ""
140
-
141
- msgid "Install erratum"
142
- msgstr ""
143
-
144
- msgid "Install package"
145
- msgstr ""
146
-
147
- msgid "Install package group"
148
- msgstr ""
120
+ #: ../app/views/scc_accounts/_form.html.erb:15
121
+ msgid "Base URL"
122
+ msgstr "Basis URL"
149
123
 
150
- msgid "Last synced"
151
- msgstr "Zuletzt synchronisiert"
124
+ #: ../app/views/scc_accounts/_form.html.erb:16
125
+ msgid "Interval"
126
+ msgstr "Intervall"
152
127
 
153
- msgid "Lock on SCC account already taken: %s"
154
- msgstr "Lock für SCC Zugang bereits vergeben: %s"
128
+ #: ../app/views/scc_accounts/_form.html.erb:17
129
+ msgid "Sync Date"
130
+ msgstr "Synchronisationsdatum"
155
131
 
156
- msgid "Package Profile Update"
157
- msgstr ""
132
+ #: ../app/views/scc_accounts/_form.html.erb:24
133
+ msgid "Test Connection"
134
+ msgstr "Verbindung testen"
158
135
 
159
- msgid "Please sync your SUSE subscriptions first."
160
- msgstr "Bitte synchronisieren Sie zuerst Ihre SUSE Abonnements."
136
+ #: ../app/views/scc_accounts/edit.html.erb:1
137
+ msgid "Edit %s"
138
+ msgstr "%s bearbeiten"
161
139
 
162
- msgid "Product Create"
163
- msgstr ""
140
+ #: ../app/views/scc_accounts/index.html.erb:2
141
+ msgid "SUSE subscriptions"
142
+ msgstr "SUSE Abonnements"
164
143
 
165
- msgid "Product already subscribed!"
166
- msgstr "Produkt bereits abonniert!"
144
+ #: ../app/views/scc_accounts/index.html.erb:3
145
+ msgid "Add SCC account"
146
+ msgstr "SCC Konto hinzufügen"
167
147
 
148
+ #: ../app/views/scc_accounts/index.html.erb:9
168
149
  msgid "Products"
169
- msgstr ""
170
-
171
- msgid "Promotion"
172
- msgstr ""
173
-
174
- msgid "Publish"
175
- msgstr ""
150
+ msgstr "Produkte"
176
151
 
177
- msgid "Register Host"
178
- msgstr ""
179
-
180
- msgid "Reindex subscriptions"
181
- msgstr ""
182
-
183
- msgid "Remove Content"
184
- msgstr ""
185
-
186
- msgid "Remove Version"
187
- msgstr ""
152
+ #: ../app/views/scc_accounts/index.html.erb:10
153
+ msgid "Last synced"
154
+ msgstr "Letzte Synchronisation"
188
155
 
189
- msgid "Remove Versions and Associations"
190
- msgstr ""
156
+ #: ../app/views/scc_accounts/index.html.erb:11
157
+ msgid "Actions"
158
+ msgstr "Aktionen"
191
159
 
192
- msgid "Remove from Environment"
193
- msgstr ""
160
+ #: ../app/views/scc_accounts/index.html.erb:24
161
+ msgid "Select products"
162
+ msgstr "Produkte auswählen"
194
163
 
195
- msgid "Remove package"
196
- msgstr ""
164
+ #: ../app/views/scc_accounts/index.html.erb:25
165
+ msgid "Sync"
166
+ msgstr "Synchronisation"
197
167
 
198
- msgid "Remove package group"
199
- msgstr ""
168
+ #: ../app/views/scc_accounts/index.html.erb:28
169
+ msgid "Delete %s?"
170
+ msgstr "%s löschen?"
200
171
 
201
- msgid "Remove subscriptions"
202
- msgstr ""
172
+ #: ../app/views/scc_accounts/new.html.erb:1
173
+ msgid "Add SUSE Customer Center Account"
174
+ msgstr "SUSE Customer Center Konto hinzufügen"
203
175
 
176
+ #: ../app/views/scc_accounts/show.html.erb:25
204
177
  msgid "SUSE Customer Center"
205
178
  msgstr "SUSE Customer Center"
206
179
 
207
- msgid "SUSE Customer Center account"
208
- msgstr "SUSE Customer Center Zugang"
180
+ #: ../app/views/scc_accounts/show.html.erb:36
181
+ msgid "Please sync your SUSE subscriptions first."
182
+ msgstr "Bitte synchronisieren Sie zuerst Ihre SUSE Abonnements."
209
183
 
184
+ #: ../lib/foreman_scc_manager/engine.rb:45
210
185
  msgid "SUSE Subscriptions"
211
186
  msgstr "SUSE Abonnements"
212
187
 
213
- msgid "SUSE subscriptions"
214
- msgstr "SUSE Abonnements"
215
-
216
- msgid "Subscribe SCC Product"
217
- msgstr "SCC Produkt abonnieren"
218
-
219
- msgid "Sync"
220
- msgstr "Aktualisieren"
221
-
222
- msgid "Sync SUSE subscriptions"
223
- msgstr "SUSE Abonnements aktualisieren"
224
-
225
- msgid "Sync SUSE subscriptions (Products)"
226
- msgstr "SUSE Abonnements aktualisieren (Produkte)"
227
-
228
- msgid "Sync SUSE subscriptions (Repositories)"
229
- msgstr "SUSE Abonnements aktualisieren (Repositories)"
230
-
231
- msgid "Sync task started."
232
- msgstr "Sync task gestartet."
233
-
234
- msgid "Synchronize"
235
- msgstr "Synchronisieren"
236
-
237
- msgid "Synchronize capsule content"
238
- msgstr ""
239
-
240
- msgid "Test Connection"
241
- msgstr "Verbindung testen"
242
-
243
- msgid "Unregister Host"
244
- msgstr ""
245
-
246
- msgid "Update"
247
- msgstr ""
248
-
249
- msgid "Update Sync Plan"
250
- msgstr ""
251
-
252
- msgid "Update Sync Plan Products"
253
- msgstr ""
254
-
255
- msgid "Update for host"
256
- msgstr ""
257
-
258
- msgid "Update package"
259
- msgstr ""
260
-
261
- msgid "Upload errata into"
262
- msgstr ""
263
-
264
- msgid "Upload into"
188
+ #: gemspec.rb:2
189
+ msgid ""
190
+ "Foreman plugin to sync SUSE Customer Center products and repositories into "
191
+ "Katello."
265
192
  msgstr ""
193
+ "Foreman Plugin um SUSE Customer Center Produkte und Repositorien in Katello "
194
+ "zu importieren."