foreman_scc_manager 1.8.6 → 1.8.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -17,6 +17,9 @@ msgstr ""
17
17
  "Plural-Forms: nplurals=2; plural=n != 1;\n"
18
18
  "\n"
19
19
 
20
+ msgid "(WARNING: Please check your SUSE subscription)"
21
+ msgstr ""
22
+
20
23
  msgid "Actions"
21
24
  msgstr ""
22
25
 
@@ -26,6 +29,9 @@ msgstr "Add SCC account"
26
29
  msgid "Add SUSE Customer Center Account"
27
30
  msgstr "Add SUSE Customer Center Account"
28
31
 
32
+ msgid "Associated GPG key of scc_account"
33
+ msgstr ""
34
+
29
35
  msgid "Base URL"
30
36
  msgstr "Base URL"
31
37
 
@@ -38,6 +44,12 @@ msgstr ""
38
44
  msgid "Cron expression is not valid!"
39
45
  msgstr ""
40
46
 
47
+ msgid "Date and time relative to which the sync interval is run"
48
+ msgstr ""
49
+
50
+ msgid "Delete"
51
+ msgstr ""
52
+
41
53
  msgid "Delete %s?"
42
54
  msgstr ""
43
55
 
@@ -62,9 +74,6 @@ msgstr ""
62
74
  msgid "Interval not set correctly"
63
75
  msgstr ""
64
76
 
65
- msgid "Last Sync time of scc_account"
66
- msgstr ""
67
-
68
77
  msgid "Last synced"
69
78
  msgstr "Last synced"
70
79
 
@@ -86,6 +95,9 @@ msgstr ""
86
95
  msgid "No products selected."
87
96
  msgstr ""
88
97
 
98
+ msgid "None"
99
+ msgstr ""
100
+
89
101
  msgid "Password of scc_account"
90
102
  msgstr ""
91
103
 
@@ -182,6 +194,12 @@ msgstr ""
182
194
  msgid "Update scc_account"
183
195
  msgstr ""
184
196
 
197
+ msgid "Use GPG key for SUSE products"
198
+ msgstr ""
199
+
200
+ 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."
201
+ msgstr ""
202
+
185
203
  msgid "Use your 'Organization credentials' obtained from the SUSE Customer Center."
186
204
  msgstr ""
187
205
 
File without changes
@@ -8,8 +8,8 @@ msgid ""
8
8
  msgstr ""
9
9
  "Project-Id-Version: foreman_scc_manager 1.0.0\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2020-03-02 13:47+0000\n"
12
- "PO-Revision-Date: 2020-03-02 13:47+0000\n"
11
+ "POT-Creation-Date: 2021-03-02 07:16+0000\n"
12
+ "PO-Revision-Date: 2021-03-02 07:16+0000\n"
13
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
15
15
  "Language: \n"
@@ -31,17 +31,17 @@ msgid "Name of the scc_account"
31
31
  msgstr ""
32
32
 
33
33
  #: ../app/controllers/api/v2/scc_accounts_controller.rb:33
34
- #: ../app/controllers/api/v2/scc_accounts_controller.rb:64
34
+ #: ../app/controllers/api/v2/scc_accounts_controller.rb:65
35
35
  msgid "Login id of scc_account"
36
36
  msgstr ""
37
37
 
38
38
  #: ../app/controllers/api/v2/scc_accounts_controller.rb:34
39
- #: ../app/controllers/api/v2/scc_accounts_controller.rb:65
39
+ #: ../app/controllers/api/v2/scc_accounts_controller.rb:66
40
40
  msgid "Password of scc_account"
41
41
  msgstr ""
42
42
 
43
43
  #: ../app/controllers/api/v2/scc_accounts_controller.rb:35
44
- #: ../app/controllers/api/v2/scc_accounts_controller.rb:66
44
+ #: ../app/controllers/api/v2/scc_accounts_controller.rb:67
45
45
  msgid "URL of SUSE for scc_account"
46
46
  msgstr ""
47
47
 
@@ -50,31 +50,35 @@ msgid "Interval for syncing scc_account"
50
50
  msgstr ""
51
51
 
52
52
  #: ../app/controllers/api/v2/scc_accounts_controller.rb:37
53
- msgid "Last Sync time of scc_account"
53
+ msgid "Date and time relative to which the sync interval is run"
54
+ msgstr ""
55
+
56
+ #: ../app/controllers/api/v2/scc_accounts_controller.rb:38
57
+ msgid "Associated GPG key of scc_account"
54
58
  msgstr ""
55
59
 
56
- #: ../app/controllers/api/v2/scc_accounts_controller.rb:41
60
+ #: ../app/controllers/api/v2/scc_accounts_controller.rb:42
57
61
  msgid "Create an scc_account"
58
62
  msgstr ""
59
63
 
60
- #: ../app/controllers/api/v2/scc_accounts_controller.rb:48
64
+ #: ../app/controllers/api/v2/scc_accounts_controller.rb:49
61
65
  msgid "Update scc_account"
62
66
  msgstr ""
63
67
 
64
- #: ../app/controllers/api/v2/scc_accounts_controller.rb:55
68
+ #: ../app/controllers/api/v2/scc_accounts_controller.rb:56
65
69
  msgid "Delete scc_account"
66
70
  msgstr ""
67
71
 
68
- #: ../app/controllers/api/v2/scc_accounts_controller.rb:61
69
72
  #: ../app/controllers/api/v2/scc_accounts_controller.rb:62
73
+ #: ../app/controllers/api/v2/scc_accounts_controller.rb:63
70
74
  msgid "Test connection for scc_account"
71
75
  msgstr ""
72
76
 
73
- #: ../app/controllers/api/v2/scc_accounts_controller.rb:89
77
+ #: ../app/controllers/api/v2/scc_accounts_controller.rb:90
74
78
  msgid "Sync scc_account"
75
79
  msgstr ""
76
80
 
77
- #: ../app/controllers/api/v2/scc_accounts_controller.rb:103
81
+ #: ../app/controllers/api/v2/scc_accounts_controller.rb:104
78
82
  msgid "Bulk subscription of scc_products for scc_account"
79
83
  msgstr ""
80
84
 
@@ -90,25 +94,25 @@ msgstr ""
90
94
  msgid "Subscribe product"
91
95
  msgstr ""
92
96
 
93
- #: ../app/controllers/scc_accounts_controller.rb:64
97
+ #: ../app/controllers/scc_accounts_controller.rb:71
94
98
  msgid "Sync task started."
95
99
  msgstr ""
96
100
 
97
- #: ../app/controllers/scc_accounts_controller.rb:66
98
- #: ../app/controllers/scc_accounts_controller.rb:86
101
+ #: ../app/controllers/scc_accounts_controller.rb:73
102
+ #: ../app/controllers/scc_accounts_controller.rb:93
99
103
  msgid "Failed to add task to queue: %s"
100
104
  msgstr ""
101
105
 
102
- #: ../app/controllers/scc_accounts_controller.rb:68
103
- #: ../app/controllers/scc_accounts_controller.rb:88
106
+ #: ../app/controllers/scc_accounts_controller.rb:75
107
+ #: ../app/controllers/scc_accounts_controller.rb:95
104
108
  msgid "Lock on SCC account already taken: %s"
105
109
  msgstr ""
106
110
 
107
- #: ../app/controllers/scc_accounts_controller.rb:81
111
+ #: ../app/controllers/scc_accounts_controller.rb:88
108
112
  msgid "Task to subscribe products started."
109
113
  msgstr ""
110
114
 
111
- #: ../app/controllers/scc_accounts_controller.rb:83
115
+ #: ../app/controllers/scc_accounts_controller.rb:90
112
116
  msgid "No products selected."
113
117
  msgstr ""
114
118
 
@@ -116,11 +120,11 @@ msgstr ""
116
120
  msgid "Product already subscribed!"
117
121
  msgstr ""
118
122
 
119
- #: ../app/lib/actions/scc_manager/subscribe_product.rb:35 action_names.rb:68
123
+ #: ../app/lib/actions/scc_manager/subscribe_product.rb:46 action_names.rb:5
120
124
  msgid "Subscribe SCC Product"
121
125
  msgstr ""
122
126
 
123
- #: ../app/lib/actions/scc_manager/sync.rb:27 action_names.rb:69
127
+ #: ../app/lib/actions/scc_manager/sync.rb:27 action_names.rb:4
124
128
  msgid "Sync SUSE subscriptions"
125
129
  msgstr ""
126
130
 
@@ -133,31 +137,31 @@ msgid "Unknown"
133
137
  msgstr ""
134
138
 
135
139
  #: ../app/lib/actions/scc_manager/sync_plan_account_repositories.rb:33
136
- #: action_names.rb:70
140
+ #: action_names.rb:9
137
141
  msgid "Update SUSE repositories"
138
142
  msgstr ""
139
143
 
140
- #: ../app/lib/actions/scc_manager/sync_products.rb:34 action_names.rb:71
144
+ #: ../app/lib/actions/scc_manager/sync_products.rb:36 action_names.rb:3
141
145
  msgid "Sync SUSE subscriptions (Products)"
142
146
  msgstr ""
143
147
 
144
- #: ../app/lib/actions/scc_manager/sync_repositories.rb:33 action_names.rb:72
148
+ #: ../app/lib/actions/scc_manager/sync_repositories.rb:34 action_names.rb:2
145
149
  msgid "Sync SUSE subscriptions (Repositories)"
146
150
  msgstr ""
147
151
 
148
- #: ../app/models/scc_account.rb:59
152
+ #: ../app/models/scc_account.rb:62
149
153
  msgid "never synced"
150
154
  msgstr ""
151
155
 
152
- #: ../app/models/scc_account.rb:106
156
+ #: ../app/models/scc_account.rb:109
153
157
  msgid "Interval cannot be nil"
154
158
  msgstr ""
155
159
 
156
- #: ../app/models/scc_account.rb:113
160
+ #: ../app/models/scc_account.rb:116
157
161
  msgid "Interval not set correctly"
158
162
  msgstr ""
159
163
 
160
- #: ../app/models/scc_account.rb:118
164
+ #: ../app/models/scc_account.rb:121
161
165
  msgid "Cron expression is not valid!"
162
166
  msgstr ""
163
167
 
@@ -170,41 +174,48 @@ msgstr ""
170
174
  msgid "SUSE Subscription: "
171
175
  msgstr ""
172
176
 
173
- #: ../app/views/scc_accounts/_form.html.erb:6
177
+ #: ../app/views/scc_accounts/_form.html.erb:7
174
178
  msgid "SUSE Customer Center account"
175
179
  msgstr ""
176
180
 
177
- #: ../app/views/scc_accounts/_form.html.erb:13
181
+ #: ../app/views/scc_accounts/_form.html.erb:14
178
182
  msgid "Use your 'Organization credentials' obtained from the SUSE Customer Center."
179
183
  msgstr ""
180
184
 
181
- #: ../app/views/scc_accounts/_form.html.erb:15
185
+ #: ../app/views/scc_accounts/_form.html.erb:16
182
186
  msgid "Base URL"
183
187
  msgstr ""
184
188
 
185
- #: ../app/views/scc_accounts/_form.html.erb:17
189
+ #: ../app/views/scc_accounts/_form.html.erb:18
186
190
  msgid "Sync interval"
187
191
  msgstr ""
188
192
 
189
- #: ../app/views/scc_accounts/_form.html.erb:17
193
+ #: ../app/views/scc_accounts/_form.html.erb:18
190
194
  msgid ""
191
195
  "The sync interval is used to periodically update the SCC authentication tokens"
192
196
  " of any imported products."
193
197
  msgstr ""
194
198
 
195
- #: ../app/views/scc_accounts/_form.html.erb:22
196
- msgid "Use GPG key for SUSE products"
199
+ #: ../app/views/scc_accounts/_form.html.erb:19
200
+ msgid "Sync Date"
197
201
  msgstr ""
198
202
 
199
- #: ../app/views/scc_accounts/_form.html.erb:22
200
- 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."
203
+ #: ../app/views/scc_accounts/_form.html.erb:23
204
+ msgid "None"
201
205
  msgstr ""
202
206
 
203
- #: ../app/views/scc_accounts/_form.html.erb:18
204
- msgid "Sync Date"
207
+ #: ../app/views/scc_accounts/_form.html.erb:24
208
+ msgid "Use GPG key for SUSE products"
205
209
  msgstr ""
206
210
 
207
- #: ../app/views/scc_accounts/_form.html.erb:25
211
+ #: ../app/views/scc_accounts/_form.html.erb:26
212
+ msgid ""
213
+ "Use this setting if you want to automatically add a GPG key to your SUSE produ"
214
+ "cts upon subscription. You can change this setting in the 'Content' > 'Product"
215
+ "s' menu, later."
216
+ msgstr ""
217
+
218
+ #: ../app/views/scc_accounts/_form.html.erb:31
208
219
  msgid "Test Connection"
209
220
  msgstr ""
210
221
 
@@ -248,15 +259,23 @@ msgstr ""
248
259
  msgid "Add SUSE Customer Center Account"
249
260
  msgstr ""
250
261
 
251
- #: ../app/views/scc_accounts/show.html.erb:25
262
+ #: ../app/views/scc_accounts/show.html.erb:1
263
+ msgid "Product Selection for Account %s"
264
+ msgstr ""
265
+
266
+ #: ../app/views/scc_accounts/show.html.erb:17
267
+ msgid "(WARNING: Please check your SUSE subscription)"
268
+ msgstr ""
269
+
270
+ #: ../app/views/scc_accounts/show.html.erb:33
252
271
  msgid "SUSE Customer Center"
253
272
  msgstr ""
254
273
 
255
- #: ../app/views/scc_accounts/show.html.erb:36
274
+ #: ../app/views/scc_accounts/show.html.erb:44
256
275
  msgid "Please sync your SUSE subscriptions first."
257
276
  msgstr ""
258
277
 
259
- #: ../lib/foreman_scc_manager/engine.rb:66
278
+ #: ../lib/foreman_scc_manager/engine.rb:77
260
279
  msgid "SUSE Subscriptions"
261
280
  msgstr ""
262
281
 
@@ -9,6 +9,7 @@ one:
9
9
  friendly_name: number one
10
10
  description: "<p> lorem ipsum dolor sit amet </p>"
11
11
  product_type: base
12
+ subscription_valid: nil
12
13
 
13
14
  two:
14
15
  scc_account_id: test_account1
@@ -19,6 +20,7 @@ two:
19
20
  friendly_name: number two
20
21
  description: "<p> lorem ipsum dolor sit amet </p><p> lorem lorem lorem </p>"
21
22
  product_type: extras
23
+ subscription_valid: true
22
24
 
23
25
  three:
24
26
  scc_account_id: test_account1
@@ -29,6 +31,7 @@ three:
29
31
  friendly_name: number three
30
32
  description: lorem ipsum dolor sit amet
31
33
  product_type: base
34
+ subscription_valid: nil
32
35
 
33
36
  # create a couple of products as scc_extensions
34
37
  <% 1.upto(10) do |i| %>
@@ -41,5 +44,6 @@ p_extension_<%= i %>:
41
44
  friendly_name: number <%= i%>
42
45
  description: lorem ipsum dolor sit amet
43
46
  product_type: extension
47
+ subscription_valid: nil
44
48
  <% end %>
45
49
 
@@ -102,6 +102,12 @@ class SccAccountUpdateProductsTest < ActiveSupport::TestCase
102
102
  assert_equal @test_product.pretty_name, @updated_product.pretty_name
103
103
  assert_equal @test_product.pretty_description, @updated_product.description
104
104
  assert_equal @test_product.pretty_description, @updated_product.pretty_description
105
+
106
+ assert @updated_product.subscription_valid
107
+ @invalid_products = @account.scc_products.where.not(scc_id: scc_products(:one).scc_id)
108
+ @invalid_products.each do |ip|
109
+ assert_not ip.subscription_valid
110
+ end
105
111
  end
106
112
  end
107
113
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_scc_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.6
4
+ version: 1.8.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - ATIX AG
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-10 00:00:00.000000000 Z
11
+ date: 2021-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rdoc
@@ -155,6 +155,9 @@ files:
155
155
  - db/migrate/20190417202427_add_recurring_sync.foreman_scc_manager.rb
156
156
  - db/migrate/20200520281300_fix_scc_permissions.rb
157
157
  - db/migrate/20201119084201_add_gpg_key_to_scc_account.rb
158
+ - db/migrate/20210205082733_add_subscription_valid_to_scc_products_and_repos.rb
159
+ - db/migrate/20210210104407_add_root_repository_id_to_scc_repository.rb
160
+ - db/migrate/20210224095050_connect_katello_root_repository_to_scc_repository.rb
158
161
  - lib/foreman_scc_manager.rb
159
162
  - lib/foreman_scc_manager/engine.rb
160
163
  - lib/foreman_scc_manager/version.rb
@@ -163,9 +166,13 @@ files:
163
166
  - locale/Makefile
164
167
  - locale/action_names.rb
165
168
  - locale/de/LC_MESSAGES/foreman_scc_manager.mo
169
+ - locale/de/foreman_scc_manager.edit.po
166
170
  - locale/de/foreman_scc_manager.po
171
+ - locale/de/foreman_scc_manager.po.time_stamp
167
172
  - locale/en/LC_MESSAGES/foreman_scc_manager.mo
173
+ - locale/en/foreman_scc_manager.edit.po
168
174
  - locale/en/foreman_scc_manager.po
175
+ - locale/en/foreman_scc_manager.po.time_stamp
169
176
  - locale/foreman_scc_manager.pot
170
177
  - locale/gemspec.rb
171
178
  - test/controllers/api/v2/scc_accounts_test.rb